jacopy.ProofStep¶
- class jacopy.ProofStep(before, after, rule, justification='', children=None, *, provenance_tag=None, owner=None, role=None, cites=None, key=None, registry_facts=(), source=None)¶
Bases:
objectOne rewrite:
before → afterunderrule.- Parameters:
- __init__(before, after, rule, justification='', children=None, *, provenance_tag=None, owner=None, role=None, cites=None, key=None, registry_facts=(), source=None)¶
Methods
__init__(before, after, rule[, ...])add_child(step)Nest
stepunder this one as a sub-proof.format([indent, max_depth])Render this step as text; recurse into children up to
max_depth.Attributes
afterbeforechildrenThe cited
Theoremwhen this step is a theorem citation, elseNone."definition","assumption","theorem","axiom"(no role recorded),"computation"orNone— seeclassification_label().justificationStructural key of the rule that fired (
Definition.key);Nonefor a hand-built step.The structure whose rule fired this step (
Nonewhen the rule is structure-free or the step was built by hand)."axiom","theorem", orNone.The registry answers (
RegistryFact) this step's computation consulted;()when it consulted none or its producer does not record them."definition","assumption"(a declared axiom),"theorem", orNonewhen the step recorded none (hand-built / legacy).ruleThe literature citations of the rule that fired — a tuple of
jacopy.bibliography.Citation, orNonewhen the rule names no source (structural rewrites, hand-built steps).- property provenance_tag: str | None¶
"axiom","theorem", orNone.Set by the expansion engine when a
Definitionfires, the tag records whether the rewrite was taken axiomatically or whether it’s derivable, whichUnrollToFoundationsreads to decide whether to attach a sub-proof.- Type:
Classification of this step
- property classification: str | None¶
"definition","assumption","theorem","axiom"(no role recorded),"computation"orNone— seeclassification_label(). The renderers print it as(definition)etc.- Type:
Reader-facing label
- property owner¶
The structure whose rule fired this step (
Nonewhen the rule is structure-free or the step was built by hand).
- property role: str | None¶
"definition","assumption"(a declared axiom),"theorem", orNonewhen the step recorded none (hand-built / legacy).- Type:
Logical role of the fired rule
- property key¶
Structural key of the rule that fired (
Definition.key);Nonefor a hand-built step.
- property registry_facts: tuple¶
The registry answers (
RegistryFact) this step’s computation consulted;()when it consulted none or its producer does not record them.
- property source¶
The literature citations of the rule that fired — a tuple of
jacopy.bibliography.Citation, orNonewhen the rule names no source (structural rewrites, hand-built steps). Display metadata only.