Skip to content

Type Alias: HeadMatching

@kortexya/reasoninglayer


@kortexya/reasoninglayer / 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.

{ mode: "crisp"; }


{ mode: "graded"; preorder?: SortPreorderGranularity; }

mode: "graded"

optional preorder?: SortPreorderGranularity

The fuzzy preorder the head meet completes.

  • 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 with tnorm, cut by minDegree and reported on the proof node as ProofDto.headMatch. Closed-world proofs only: the engine refuses it with openWorld.