Lean 4 formalization of the security properties of VEIL: Lightweight Zero-Knowledge for Hash-Based Multilinear Proof Systems (ePrint 2026/683).
The axioms, definitions, and theorem statements from the paper are encoded in Lean and the proofs are machine-checked by Lean's kernel.
veil.succinct.xyz presents the paper's definitions and theorems side-by-side with their Lean formalizations to make human review of the trusted base as easy as possible.
The repository is split into two kinds of code:
- Trusted base —
*/Defs.leanand*/Protocol.leanfiles, plusShared/TrustedBase.lean. These contain the axioms, definitions, and theorem statements. Lean cannot check that these match the paper, so they must be audited by humans. They are written for readability, with paper citations and variable names matching the paper. - Proof files —
*/Completeness.lean,*/Binding.lean,*/Soundness.lean,*/Zkness.lean, and the rest ofShared/. These contain only proofs that the trusted-base theorems hold. They are checked automatically by Lean's kernel and should not need human review.
See CLAUDE.md for the full convention and project layout.
Install elan (the Lean version manager), then:
lake exe cache get # download precompiled Mathlib oleans
lake build # compile and type-check all theoremslake build runs Lean's kernel over every proof in the project and also verifies that no spurious axioms were introduced. For independent kernel-level validation, run lake env leanchecker afterward; see the Lean reference on validating proofs for background (note: some instructions on that page may be outdated).
Dual-licensed under either of Apache License, Version 2.0 or MIT license at your option.