jacopy.proof.strategies.PortfolioStrategy¶
- class jacopy.proof.strategies.PortfolioStrategy(strategies)¶
Bases:
StrategyTry a sequence of strategies; the first that closes wins.
The mechanized form of the symbolic-p policy (“try the operator-level route first, fall back to unrolling”): each member strategy gets a chance in order, and only when all of them fail does the portfolio raise — with a combined message naming every member’s failure so the caller sees the whole picture, and carrying the last member’s diagnostic report.
- __init__(strategies)¶
- Return type:
None
Methods
__init__(strategies)prove(lhs, rhs, *[, registry, engine])Produce a
ProofChainwitnessinglhs == rhs.Attributes
namestrategies- 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: