jacopy.proof.strategies.UnrollToFoundations

class jacopy.proof.strategies.UnrollToFoundations(inner)

Bases: Strategy

Meta-strategy: run an inner strategy against a foundational engine.

The wrapped Strategy sees an ExpansionEngine switched into "foundational" mode, every theorem-classified Definition fires as usual, but the resulting ProofStep carries 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 engine that is already foundational the strategy uses it verbatim; an efficient engine is rebuilt via ExpansionEngine.with_mode(), and engine=None falls back to default_engine() in foundational mode.

Parameters:

inner (Strategy)

__init__(inner)
Parameters:

inner (Strategy)

Return type:

None

Methods

__init__(inner)

prove(lhs, rhs, *[, registry, engine])

Produce a ProofChain witnessing lhs == rhs.

Attributes

inner

name

prove(lhs, rhs, *, registry=None, engine=None)

Produce a ProofChain witnessing lhs == rhs.

Raises ProofFailure if the strategy cannot close the gap. Implementations may ignore either registry or engine depending on how they work.

Parameters:
Return type:

ProofChain