jacopy.proof.strategies.UnrollToFoundations¶
- class jacopy.proof.strategies.UnrollToFoundations(inner)¶
Bases:
StrategyMeta-strategy: run an inner strategy against a foundational engine.
The wrapped
Strategysees anExpansionEngineswitched into"foundational"mode, every theorem-classifiedDefinitionfires as usual, but the resultingProofStepcarries the theorem’s own sub-proof attached as children rather than being taken as given. Axioms still appear as leaves, so the transcript bottoms out exactly at the declared foundations of the theory.This is the proof mode the plan calls “full unroll”: you pay the construction cost of every theorem’s justification, but the chain is self-contained. When a caller passes an
enginethat is already foundational the strategy uses it verbatim; an efficient engine is rebuilt viaExpansionEngine.with_mode(), andengine=Nonefalls back todefault_engine()in foundational mode.- Parameters:
inner (Strategy)
Methods
Attributes
innername- prove(lhs, rhs, *, registry=None, engine=None)¶
Produce a
ProofChainwitnessinglhs == rhs.Raises
ProofFailureif the strategy cannot close the gap. Implementations may ignore eitherregistryorenginedepending on how they work.- Parameters:
lhs (Expr)
rhs (Expr)
registry (PropertyRegistry | None)
engine (ExpansionEngine | None)
- Return type: