Skip to content

Interface: RuleComparisonWitness

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RuleComparisonWitness

Defined in: src/types/inference.ts:2489

A witness the engine replayed pair by pair before answering.

antecedents: RuleComparisonPair[]

Defined in: src/types/inference.ts:2491

The positive antecedent pairs.


constraints: RuleComparisonPair[]

Defined in: src/types/inference.ts:2495

The conclusion constraint pairs (structural identity under σ); every constraint of the specific rule is the specific of one pair at least.


guards: RuleComparisonPair[]

Defined in: src/types/inference.ts:2497

The guard pairs (structural identity under σ).


head: number

Defined in: src/types/inference.ts:2499

The degree of the conclusion pair.


mapping: RuleComparisonMapping[]

Defined in: src/types/inference.ts:2501

σ: the general rule’s nodes and their images.


negations: RuleComparisonPair[]

Defined in: src/types/inference.ts:2503

The negated antecedent pairs.