engine.proof¶
Schema-facing proof, derivation, and rule-description models.
Attributes¶
Classes¶
Base model for proof and derivation structures using rdflib node types. |
|
Discriminator values for proof payload claim kinds. |
|
A graph-scoped claim represented directly as a triple. |
|
A graph-scoped claim represented as a structural element. |
|
A graph-scoped contradiction witness used in proof outputs. |
|
A free-text claim for baseline or partially structured proofs. |
|
Structured semantic metadata attached to a rule or proof step. |
|
Stable engine-level identifier for an applied rule. |
|
Reference to an authoritative or explanatory source for a rule. |
|
One variable binding captured when a rule application fired. |
|
Engine-native trace for one contradiction-triggering rule application. |
|
Engine-native trace for one fired rule application. |
|
Optional grounding metadata back to an input document. |
|
A leaf proof node containing a claim and optional grounding. |
|
One direct proof step combining premises, rule attribution, and conclusions. |
|
A reconstructed or agent-proposed direct proof for evaluation. |
Module Contents¶
- class engine.proof.ProofModel(/, **data: Any)¶
Bases:
pydantic.BaseModelBase model for proof and derivation structures using rdflib node types.
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class engine.proof.ProofPayloadKind¶
Bases:
enum.StrEnumDiscriminator values for proof payload claim kinds.
- TRIPLE = 'triple'¶
- STRUCTURAL_ELEMENT = 'structural_element'¶
- CONTRADICTION = 'contradiction'¶
- TEXT_CLAIM = 'text_claim'¶
- class engine.proof.TripleFact(/, **data: Any)¶
Bases:
axiom.structural_element.GraphBackedA graph-scoped claim represented directly as a triple.
- kind: Literal['triple'] = 'triple'¶
- triple: axiom.common.Triple = None¶
- class engine.proof.StructuralClaim(/, **data: Any)¶
Bases:
axiom.structural_element.GraphBackedA graph-scoped claim represented as a structural element.
- kind: Literal['structural_element'] = 'structural_element'¶
- element: axiom.structural_element.StructuralElement = None¶
- class engine.proof.ContradictionClaim(/, **data: Any)¶
Bases:
axiom.structural_element.GraphBackedA graph-scoped contradiction witness used in proof outputs.
- kind: Literal['contradiction'] = 'contradiction'¶
- witness: TripleFact = None¶
- class engine.proof.TextClaim(/, **data: Any)¶
Bases:
axiom.structural_element.GraphBackedA free-text claim for baseline or partially structured proofs.
- kind: Literal['text_claim'] = 'text_claim'¶
- engine.proof.ProofPayload¶
- class engine.proof.RuleDescription(/, **data: Any)¶
Bases:
ProofModelStructured semantic metadata attached to a rule or proof step.
- references: list[AuthorityReference] = None¶
- class engine.proof.RuleId(/, **data: Any)¶
Bases:
ProofModelStable engine-level identifier for an applied rule.
- class engine.proof.AuthorityReference(/, **data: Any)¶
Bases:
ProofModelReference to an authoritative or explanatory source for a rule.
- kind: Literal['normative_spec', 'non_normative_spec', 'implementation_reference', 'structural_interpretation'] = None¶
- uri: rdflib.term.URIRef = None¶
- class engine.proof.VariableBinding(/, **data: Any)¶
Bases:
ProofModelOne variable binding captured when a rule application fired.
- value: rdflib.term.Node = None¶
- class engine.proof.ContradictionRecord(/, **data: Any)¶
Bases:
ProofModelEngine-native trace for one contradiction-triggering rule application.
- context: axiom.common.ContextIdentifier = None¶
- premises: list[TripleFact] = None¶
- bindings: list[VariableBinding] = None¶
- witness: TripleFact | None = None¶
- class engine.proof.DerivationRecord(/, **data: Any)¶
Bases:
ProofModelEngine-native trace for one fired rule application.
- context: axiom.common.ContextIdentifier = None¶
- conclusions: list[TripleFact] = None¶
- premises: list[TripleFact] = None¶
- bindings: list[VariableBinding] = None¶
- class engine.proof.SourceSpan(/, **data: Any)¶
Bases:
ProofModelOptional grounding metadata back to an input document.
- class engine.proof.ProofLeaf(/, **data: Any)¶
Bases:
ProofModelA leaf proof node containing a claim and optional grounding.
- node_kind: Literal['leaf'] = 'leaf'¶
- claim: ProofPayload = None¶
- grounding: list[SourceSpan] = None¶
- class engine.proof.RuleApplication(/, **data: Any)¶
Bases:
ProofModelOne direct proof step combining premises, rule attribution, and conclusions.
- node_kind: Literal['rule_application'] = 'rule_application'¶
- conclusions: list[ProofPayload] = None¶
- description: RuleDescription | None = None¶
- derivation: DerivationRecord | None = None¶
- classmethod from_rule(rule: engine.rules.Rule, *, conclusions: list[ProofPayload], premises: list[ProofNode] | None = None, derivation: DerivationRecord | None = None, rationale: str | None = None, stated_theorem_name: str | None = None) RuleApplication¶
Construct a proof step from a defined rule and its shared description.
- classmethod from_description(description: RuleDescription, *, conclusions: list[ProofPayload], premises: list[ProofNode] | None = None, derivation: DerivationRecord | None = None, rationale: str | None = None, stated_theorem_name: str | None = None) RuleApplication¶
Construct a proof step from agent-provided descriptive semantics alone.
- check_derivation_alignment() RuleApplication¶
Require
rule_idordescriptionand keep attached derivation metadata aligned.
- engine.proof.ProofNode¶
- class engine.proof.DirectProof(/, **data: Any)¶
Bases:
ProofModelA reconstructed or agent-proposed direct proof for evaluation.
- context: axiom.common.ContextIdentifier = None¶
- goal: ProofPayload = None¶