ADR 0005: Lean backend and proof acceptance
Context
Lean kernel checks give stronger assurance than bounded SMT results, but only if the proof contains no sorry, admit or added axioms, and the Lean model's correspondence to the JavaScript code remains a separate obligation.
Decision
- Lean 4 and
lakeare external tools detected byveritas doctor; when absent, Lean claims areunsupportedwith a clear reason. - Generated Lean files are compiled with
lake build. A claim iskernel_checkedonly if the build succeeds and#print axiomsfor the theorem lists nothing beyond Lean's standard axioms (propext,Classical.choice,Quot.sound). Anysorry,admit, other axiom ornative_decidemakes the claim fail. - The model-to-implementation correspondence is reported as an unmet obligation unless separately established.
Consequences
Reports distinguish smt_bounded from kernel_checked assurance.