Expand description
Reading a lean4export NDJSON stream straight into the kernel core.
The export is already a maximally shared DAG: every name, level and expression is a numbered record defined before it is used. Each record becomes one interned node, so the export’s sharing is preserved exactly and nothing is ever expanded into a tree. Declarations are checked the moment they arrive; nothing of the input is retained but the interned DAG.
Structs§
Enums§
- Verdict
- The verdict of checking one export, in the Arena’s exit-code protocol.
Traits§
- Decl
Meter - Observes each declaration the reader hands to the kernel:
beginjust before the kernel checks it andendjust after, with its name, its record kind and whether it was admitted. A measurement hook; checking never depends on it.
Functions§
- check_
export - Checks a whole export stream.
- check_
export_ in - Checks a whole export into the caller’s kernel, which keeps everything admitted — a command that exits once it has reported need never pay for tearing the kernel down.
- check_
export_ observed check_export_sized, observed asobserveasks.- check_
export_ sized check_export_withfor an input whose size is known, so the stores are sized once.- check_
export_ with - Checks a whole export with a kernel configured by
configurefirst. - load_
refs - Loads a file of named reference terms into
k’s store.