Interface: ProofDto
@kortexya/reasoninglayer / ProofDto
Interface: ProofDto
Section titled “Interface: ProofDto”Defined in: src/types/inference.ts:206
Properties
Section titled “Properties”absence?
Section titled “absence?”
optionalabsence?:GovernanceAbsenceProbe[]
Defined in: src/types/inference.ts:234
What a closed-world negation step found absent (kind absent), one probe
per pattern of its clause. Absent on every other node.
aggregation?
Section titled “aggregation?”
optionalaggregation?:AggregationEvidence
Defined in: src/types/inference.ts:318
Evidence for the arithmetic step that joins an aggregate’s contributor proofs. Present only on a node that computed an aggregate.
certainty
Section titled “certainty”certainty:
number
Defined in: src/types/inference.ts:302
Certainty of this proof step.
conclusion?
Section titled “conclusion?”
optionalconclusion?:ProofConclusionDto
Defined in: src/types/inference.ts:291
The conclusion this node established, as a structured term. Read the sort and the features here, not from goalDisplay, which is a display convenience only. Absent on a node the engine reports no conclusion for.
goalDisplay?
Section titled “goalDisplay?”
optionalgoalDisplay?:string
Defined in: src/types/inference.ts:285
Human-readable rendering of the goal proven at this step — the conclusion,
e.g. iam_permission(action: "view_file", object: "design.pdf", subject: "alice").
Lets a client render a readable proof tree without resolving term IDs.
goalTermId?
Section titled “goalTermId?”
optionalgoalTermId?:string
Defined in: src/types/inference.ts:259
Term ID of the CONCLUSION this node proved.
Remarks
Section titled “Remarks”This is a fetchable id: it joins to client.query.findBySort() and
client.terms.getTerm(). Two solutions of one goal carry the SAME id only
when they prove the same conclusion — a goal with several solutions
therefore reports several distinct ids.
ABSENT when no conclusion was materialised: a PROVE with no preceding
CHAIN stores nothing. Read it as optional and fall back deliberately —
ProofDto.goalDisplay renders the node without an id. When it is
present it names a STORED term: a subsort conclusion proved under a
parent goal from a tabled answer carries the id findBySort() lists for
it, and so do the proof’s leaves.
With ProofDto.goalDisplay it is the conclusion’s identity:
de-duplicate solutions by goalTermId when present, else by
goalDisplay — never by ProofDto.ruleHeadTermId.
Before engine issue #281 this field named the rule’s instantiated head, so
every solution of one goal shared one id and getTerm() answered 404 for
it. That id is now ProofDto.ruleHeadTermId.
headMatch?
Section titled “headMatch?”
optionalheadMatch?:GradedHeadMatch
Defined in: src/types/inference.ts:323
The graded meet the rule head was matched with. Present only on a rule application made under graded head matching.
kind:
ProofKind
Defined in: src/types/inference.ts:229
How this goal was established. Always present — a client never has to infer it from the node’s shape.
Remarks
Section titled “Remarks”proved— a rule was applied, soruleTermIdandruleLabelare filled. Either it fired in this search, or the goal was a conclusion a forward chain had materialised and the engine recovered the rule from its recorded derivation.fact— a stored fact with no recorded derivation.residuated— an open-world leaf: unknown, never false.unattributed— a sound answer whose derivation the engine could not report.truncated— established, but its derivation was not expanded: a depth or cycle bound, or an answer replayed from the tabling cache.absent— a closed-world negation step that held; ProofDto.absence names what was found absent and the node names no record.
A goal carrying constraints is a CONJUNCTION: its root holds one
subproof per clause and reports the strongest kind they carry — proved
when any clause was proved by a rule, else fact.
residuated?
Section titled “residuated?”
optionalresiduated?:boolean
Defined in: src/types/inference.ts:313
True iff this node is a residuated (suspended/unknown) leaf — an open-world antecedent with neither a witnessing fact nor a deriving rule.
Remarks
Section titled “Remarks”Unknown, never false: a residuated leaf means the engine could not decide the goal, not that the goal is refuted. Distinct from SolutionDto.residuatedSorts, which names the sorts of a solution’s residuated antecedents rather than marking an individual node of the proof tree.
ruleHeadTermId?
Section titled “ruleHeadTermId?”
optionalruleHeadTermId?:string
Defined in: src/types/inference.ts:279
Term ID of the rule’s instantiated HEAD — the template the search unified with.
Remarks
Section titled “Remarks”Present only on a rule application, and only when it differs from
ProofDto.goalTermId. It is rule scaffolding, NOT a fetchable id:
client.terms.getTerm() refuses it deliberately.
It identifies the RULE’s head template, not one application of the rule:
every solution one rule proves shares it. Solutions sharing a
ruleHeadTermId were proved by the same rule — measured, four distinct
unpaid(number: …) conclusions of one rule carried one id. It does not
identify a conclusion and must not be used to de-duplicate solutions; the
conclusion’s identity is ProofDto.goalTermId when present, else
ProofDto.goalDisplay.
ruleLabel?
Section titled “ruleLabel?”
optionalruleLabel?:string
Defined in: src/types/inference.ts:296
Human-readable rendering of the rule applied at this step (its head Ψ-term). Absent for a stored fact / axiom (no rule was applied).
ruleTermId?
Section titled “ruleTermId?”
optionalruleTermId?:string
Defined in: src/types/inference.ts:261
The rule term ID used to prove this goal.
subproofs?
Section titled “subproofs?”
optionalsubproofs?:ProofDto[]
Defined in: src/types/inference.ts:300
Sub-proofs for intermediate goals.
substitution
Section titled “substitution”substitution:
HomoiconicSubstitutionDto
Defined in: src/types/inference.ts:298
The substitution applied at this proof step.