jacopy.ProofResult¶
- class jacopy.ProofResult(goal: 'Goal', status: 'str', requires: 'Tuple[Assumption, ...]' = (), provenance: 'Tuple[Provenance, ...]' = (), chain: 'Optional[ProofChain]' = None, residual: 'Optional[Expr]' = None, budget: 'Budget' = <factory>, generality: 'str' = 'generic-function', owner: 'object' = None, reason: 'str' = '', version: 'str' = <factory>)¶
Bases:
object- Parameters:
- __init__(goal, status, requires=(), provenance=(), chain=None, residual=None, budget=<factory>, generality='generic-function', owner=None, reason='', version=<factory>)¶
Methods
__init__(goal, status[, requires, ...])from_chain(chain, goal, *[, status, ...])Classify
chainagainstgoal.from_theorem(theorem, *[, registry, owners])Wrap a
Theorem(the old(chain, theorem)return shape).invalid(goal, reason, **kw)summary()CLOSEDalways reads "under" its assumptions; an instance proof says so; a residual is shown as a residual, not as a counterexample.Attributes
chaincloseddeclaredgeneralityThe recorded-but-unverified assumptions (never dropped).
ownerprovenancereasonrequiresresidualThe record's
from_axiomsprose no step accounts for: visible, never dropped, NOT a verification input (prose is not a trust boundary; the chain's structural record is).theorems_citedgoalstatusbudgetversion- property legacy: Tuple[Assumption, ...]¶
The recorded-but-unverified assumptions (never dropped).
- property textual: Tuple[Assumption, ...]¶
The record’s
from_axiomsprose no step accounts for: visible, never dropped, NOT a verification input (prose is not a trust boundary; the chain’s structural record is).
- summary()¶
CLOSEDalways reads “under” its assumptions; an instance proof says so; a residual is shown as a residual, not as a counterexample.- Return type:
- classmethod from_chain(chain, goal, *, status=None, max_steps=None, generality='generic-function', owner=None, extra=(), reason='', side_steps=())¶
Classify
chainagainstgoal. The chain must start atgoal.lhs; its final expression decidesCLOSED(equal togoal.rhs) orRESIDUAL;status="BUDGET"records an exhausted budget.side_stepsare a SEPARATE computation (e.g. the right-hand side’s normalization) whose assumptions and provenance count but which is not part of the transcript. Assumptions the chain does not record structurally are kept aslegacy, never ignored.- Parameters:
chain (ProofChain)
goal (Goal)
status (str | None)
max_steps (int | None)
generality (str)
extra (Sequence[Assumption])
reason (str)
- Return type:
- classmethod from_theorem(theorem, *, registry=None, owners=None)¶
Wrap a
Theorem(the old(chain, theorem)return shape). The record’s closure is taken as CLOSED; textualfrom_axiomsentries no step accounts for, and a chain that does not literally runlhs → rhs, are kept aslegacyassumptions.registry/ownersonly inform the model oracle (default off).- Return type: