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>)
Parameters:
Return type:

None

Methods

__init__(goal, status[, requires, ...])

from_chain(chain, goal, *[, status, ...])

Classify chain against goal.

from_theorem(theorem, *[, registry, owners])

Wrap a Theorem (the old (chain, theorem) return shape).

invalid(goal, reason, **kw)

summary()

CLOSED always reads "under" its assumptions; an instance proof says so; a residual is shown as a residual, not as a counterexample.

Attributes

chain

closed

declared

generality

legacy

The recorded-but-unverified assumptions (never dropped).

owner

provenance

reason

requires

residual

textual

The record's from_axioms prose no step accounts for: visible, never dropped, NOT a verification input (prose is not a trust boundary; the chain's structural record is).

theorems_cited

goal

status

budget

version

property legacy: Tuple[Assumption, ...]

The recorded-but-unverified assumptions (never dropped).

property textual: Tuple[Assumption, ...]

The record’s from_axioms prose no step accounts for: visible, never dropped, NOT a verification input (prose is not a trust boundary; the chain’s structural record is).

summary()

CLOSED always reads “under” its assumptions; an instance proof says so; a residual is shown as a residual, not as a counterexample.

Return type:

str

classmethod from_chain(chain, goal, *, status=None, max_steps=None, generality='generic-function', owner=None, extra=(), reason='', side_steps=())

Classify chain against goal. The chain must start at goal.lhs; its final expression decides CLOSED (equal to goal.rhs) or RESIDUAL; status="BUDGET" records an exhausted budget. side_steps are 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 as legacy, never ignored.

Parameters:
Return type:

ProofResult

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; textual from_axioms entries no step accounts for, and a chain that does not literally run lhs → rhs, are kept as legacy assumptions. registry / owners only inform the model oracle (default off).

Return type:

ProofResult