Skip to main content

Crate aver_cert

Crate aver_cert 

Source
Expand description

Compiler-independent artifact certification for Aver WebAssembly.

This crate owns the byte-derived certificate engine, the public certificate format, and the exact Lean soundness wall. It deliberately has no dependency on the Aver compiler, language runtime, or memory runtime.

Modules§

bridge_statement
The plan-equals-source bridge statement, rendered from declared structure.
format
Stable, compiler-independent certificate format declarations.
kernels
The paranoid kernel set: every proof checker the pinned Lean release ships, run over one leanexport of the checked module closure.
lean_gate
Lexical gates the certificate producer and the checker share.
output
The one way the checker writes to the terminal.
sorry_free_export
The export the kernels that do not accept sorryAx read under --paranoid (see crate::kernels::Kernel::admits_sorry): the witness closure without the declarations that depend on sorryAx.
wall
Checker-owned Lean soundness wall.

Enums§

CheckVerdict
Developer preflight result. A green value means the checker-owned witness elaborated successfully while trusting the local Lake .olean graph. It is deliberately distinct from Verdict: only verify performs the final fresh-environment replay required for certification.
Explanation
Kernels
Which kernels give the final verdict of verify_with.
Verdict

Constants§

ARTIFACT_DECODE_LINE
Emitted on a green verdict. All trust-bearing byte facts and claim metadata are checked by the embedded Lean wall; Rust performs no parallel verdict reconstruction.

Functions§

check
Fast developer/CI preflight which trusts locally built or explicitly cached .olean imports. Rust validation, lake build, and fresh elaboration of the checker-owned witness still run; only the final leanchecker --fresh whole-closure replay is omitted.
explain
verify
verify_with
verify with a choice of the kernels that replay the witness closure.