Creates a new proof builder with a goal formula.
The target formula to prove
Adds a premise (given assumption) to the proof.
The premise formula
Optionalcomment: stringOptional explanation for the premise
This builder instance for chaining
Adds an axiom step to the proof.
The axiom payload containing formulas and schema
Optionalcomment: stringOptional explanation for the axiom
This builder instance for chaining
Adds a derived step to the proof using a Hilbert calculus rule.
The derived step payload containing formulas, schema, and step references
Optionalcomment: stringOptional explanation for the derivation
This builder instance for chaining
Reiterates (repeats) a previously proved step. Allows referring to a formula from an earlier step in the proof.
The index of the step to reiterate (1-based)
Optionalcomment: stringOptional explanation for the reiteration
This builder instance for chaining
Adds multiple steps in sequence using a callback function. Useful for building complex proofs programmatically.
A callback that receives the current builder and adds steps
This builder instance for chaining
Gets the current state of the proof without building. Useful for inspection during construction.
The current HilbertProof instance
A builder class for constructing Hilbert-style proofs. Provides a chainable API for adding proof steps.
Example