Type Alias: CtlCounterExample
@kortexya/reasoninglayer / Temporal / CtlCounterExample
Type Alias: CtlCounterExample
CtlCounterExample = {
kind:"finite_path";trace:number[]; } | {cycle:number[];kind:"lasso";prefix:number[]; }
Defined in: src/types/temporal.ts:137
A counterexample witness for a failing CTL formula.
Remarks
A union discriminated by kind:
finite_path—traceis a sequence of state IDss₀ → s₁ → … → sₖshowing how the formula fails starting ats₀.lasso— a finiteprefixfollowed by an infinitely repeatingcycle, demonstrating persistent failure (used forEG/AGviolations).
Example
if (result.counterexample?.kind === 'lasso') { console.log(result.counterexample.prefix, result.counterexample.cycle);}