Type Alias: HeadMatching
@kortexya/reasoninglayer / HeadMatching
Type Alias: HeadMatching
Section titled “Type Alias: HeadMatching”HeadMatching = {
mode:"crisp"; } | {mode:"graded";preorder?:SortPreorderGranularity; }
Defined in: src/types/inference.ts:1034
How a goal meets the head of a rule it may be resolved with.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ mode: "crisp"; }
Type Literal
Section titled “Type Literal”{ mode: "graded"; preorder?: SortPreorderGranularity; }
mode:
"graded"
preorder?
Section titled “preorder?”
optionalpreorder?:SortPreorderGranularity
The fuzzy preorder the head meet completes.
Remarks
Section titled “Remarks”crisp: native resolution, the default.graded: also resolves a goal with a rule whose head sort is graded-below the goal sort in the declared fuzzy preorder. The degree of the head meet is folded into the answer withtnorm, cut byminDegreeand reported on the proof node as ProofDto.headMatch. Closed-world proofs only: the engine refuses it withopenWorld.