Skip to main content

Module kernel

Module kernel 

Source
Expand description

Kernel — query execution, proof emission, receipt assembly.

ARD section 8 (execution model), 11 (proof requirements), 13 (WASM ABI).

The kernel never sees strings. It accepts only Catalog, FactBlock8s, Rule8s, and QueryAtom8s, and emits answers + proof + receipt.

Structs§

Decision
One answer row: bindings for the output positions.
Kernel
The Prolog8 kernel. Owns a catalog, fact blocks, and rule set.

Enums§

QueryResult
Result of running a query.

Constants§

MAX_DERIVE_DEPTH
Maximum recursive rule-chaining depth in derive_atom. Prevents infinite loops on recursive rules while supporting PARARULE-Plus depth-5 chains.