Interface: SolutionDto
@kortexya/reasoninglayer / SolutionDto
Interface: SolutionDto
Section titled “Interface: SolutionDto”Defined in: src/types/inference.ts:344
A solution from backward chaining.
Contains variable bindings, an optional proof tree, certainty score, and open-world inference metadata.
Properties
Section titled “Properties”certainty
Section titled “certainty”certainty:
number
Defined in: src/types/inference.ts:356
Certainty score (0.0 to 1.0).
conclusion?
Section titled “conclusion?”
optionalconclusion?:ProofConclusionDto
Defined in: src/types/inference.ts:354
The conclusion this solution established, as a structured term: the proof root’s ProofDto.conclusion. Present also when the conclusion was never stored. Absent only when the solution names no term.
evidenceMatched?
Section titled “evidenceMatched?”
optionalevidenceMatched?:number|null
Defined in: src/types/inference.ts:358
Number of matched antecedents (open-world only).
evidenceRatio?
Section titled “evidenceRatio?”
optionalevidenceRatio?:number|null
Defined in: src/types/inference.ts:360
Evidence ratio for open-world inference (matched/total antecedents). Null in closed-world mode.
evidenceSupport?
Section titled “evidenceSupport?”
optionalevidenceSupport?:number|null
Defined in: src/types/inference.ts:373
Deep evidential support in [0, 1] (open-world only): the fraction of
ground-fact leaves the proof rests on that are actually witnessed by facts,
computed recursively over the proof tree.
Remarks
Section titled “Remarks”Unlike evidenceRatio (shallow, top-level), this sees through chained derivations, so residuation inside a derived sub-goal is reflected. It is the epistemic ranking axis, orthogonal to certainty (the residuation-faithful degree): rank candidate solutions by this to prefer the ones actually grounded in evidence.
matchedSorts?
Section titled “matchedSorts?”
optionalmatchedSorts?:string[]
Defined in: src/types/inference.ts:384
Sort names of the matched (witnessed or derived) antecedents. Open-world only.
Remarks
Section titled “Remarks”The named counterpart of evidenceMatched, so a sealed differential can be re-verified from the response alone. The engine omits the key when the list is empty.
nullMoment?
Section titled “nullMoment?”
optionalnullMoment?:number|null
Defined in: src/types/inference.ts:404
The per-observation null calibration this candidate’s head carries,
priced with the query’s λ: null_llr_rate + λ·null_hit_rate (log-odds
rules only).
Remarks
Section titled “Remarks”With FuzzyProveResponse.logoddsObservationCount a reader
reproduces the degree’s − k·(…) term exactly.
proof?
Section titled “proof?”
optionalproof?:ProofDto|null
Defined in: src/types/inference.ts:348
Proof tree showing how the solution was derived. Null if proof generation was disabled.
residuatedAntecedents?
Section titled “residuatedAntecedents?”
optionalresiduatedAntecedents?:ResiduatedAntecedent[]
Defined in: src/types/inference.ts:410
The residuated antecedents, each with the log-odds it would fold if it were witnessed (open-world, log-odds rules only): what this candidate still asks for, and what the answer is worth to it.
residuatedSorts?
Section titled “residuatedSorts?”
optionalresiduatedSorts?:string[]
Defined in: src/types/inference.ts:375
Sort names that were residuated (suspended due to missing information). Open-world only.
scoreDecomposition?
Section titled “scoreDecomposition?”
optionalscoreDecomposition?:LogOddsScoreDecompositionDto
Defined in: src/types/inference.ts:394
How certainty was arrived at, term by term.
Remarks
Section titled “Remarks”Present when the solution was scored by the log-odds model. It is the audit trail for a ranking: which antecedents were credited, which facts witnessed them, and what each contributed — so a caller can say WHY one solution outranked another rather than only that it did.
substitution
Section titled “substitution”substitution:
HomoiconicSubstitutionDto
Defined in: src/types/inference.ts:346
Variable substitution (bindings from variables to values).