Specification-carrying generic byte-table kernels #
These structures retain the model operation used to generate each lazy table together with its
refinement theorem. Their executable run methods delegate to the arity-specific direct lookup
paths, while their equations compose the generic lookup proof with the reference definition.
A lazily memoized binary table certified against a reference model specification.
- model : Model → Model → Model
Operation used to generate the table.
Lazy table generated from
model.The table and its declared model agree definitionally or by proof.
The generation model equals the reference definition.
Instances For
Create a certified binary kernel whose table is generated lazily from its reference model.
The named constructor lets format packages use its table equation without unfolding the model operation. The definition remains transparent to Lean.
Instances For
Execute a certified binary table kernel on two encoded operands.
Instances For
Decoding certified binary execution yields the reference binary specification.
A lazily memoized unary table certified against a reference model specification.
- model : Model → Model
Operation used to generate the table.
Lazy table generated from
model.The table and its declared model agree.
The generation model equals the reference definition.
Instances For
Create a certified unary kernel whose table is generated lazily from its reference model.
Instances For
Execute a certified unary table kernel on one encoded operand.
Instances For
Decoding certified unary execution yields the reference unary specification.
A lazily memoized ternary table certified against a reference model specification.
- model : Model → Model → Model → Model
Operation used to generate the table.
Lazy table generated from
model.The table and its declared model agree.
The generation model equals the reference definition.
Instances For
Create a certified ternary kernel whose table is generated lazily from its reference model.
Instances For
Execute a certified ternary table kernel on three encoded operands.
Instances For
Decoding certified ternary execution yields the reference ternary specification.