jacopy.proof.strategies.ExpandAndSimplify

class jacopy.proof.strategies.ExpandAndSimplify

Bases: Strategy

Default strategy: form the obstruction, expand, simplify, check 0.

The plan names this ExpandAndSimplify: unfold every definition the engine knows about, then drive the canonical-form pipeline (flatten / canonicalize / distribute / sort_product / collect_terms) until the residual settles. If it lands on Integer 0 the proof closes; otherwise ProofFailure carries the surviving residual.

product_rule is run in between, definition rewrites often leave Act over Product composition and Act over Sum shapes that simplify() alone doesn’t unfold. Running Leibniz / linearity expansion once is the minimum needed to reduce everyday Cartan-calculus equalities to cancellation.

__init__()

Methods

__init__()

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

Produce a ProofChain witnessing lhs == rhs.

Attributes

name

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

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