Public materials for Counterexamples to Beyond-Johnson Proximity Gaps over Binary Fields, by Quang Dao, Scott Duke Kominers, Justin Thaler, and Kai Zhe Zheng.
Read the paper for the constructions and their consequences for hash-based SNARKs over binary fields. This repository supplies the Lean formalization of its results and exact recomputations of its concrete parameters.
The Lean project proves every numbered theorem,
proposition, corollary and lemma in the paper. Its 3,138 public declarations
are proved without sorry, and their axiom reports contain only Lean's
standard propext, Classical.choice and Quot.sound. The
coverage table maps each paper statement to
the Lean module and declarations that prove it.
Install elan, then run:
cd formalization
lake exe cache get
lake buildLake uses Lean 4.34.0 and pinned revisions of Mathlib and
ArkLib. The expected result is
Build completed successfully. After the build, check the axiom boundary from
the repository root:
python3 scripts/check_lean_contract_axioms.pyscripts/verify_main_parameters.py independently recomputes the Binius64
parameters at rates 1/4 and 1/2 (including the 29.889 and 29.877 probability
exponents), and checks half-rate transfer and Gold hyperplane identities.
scripts/verify_fixed_extension.py checks fixed-extension instances and the
Binius64 padding constant. Counts and identities use exact rational and integer
arithmetic; some decimal comparisons use floating point. The other printed
numbers, including 28.585, 57.17, 90.585, Longfellow and the decision-tree bounds,
are checked in Lean. The scripts need only Python 3.10 or newer:
python3 scripts/verify_main_parameters.py
python3 scripts/verify_fixed_extension.py| Material | Where to start |
|---|---|
| Results and proofs | Paper |
| Paper statements mapped to Lean declarations | Coverage table |
| Main theorem statements in Lean | MainTheorems/ |
| Definitions of agreement, exceptional challenges and lists | PaperSemantics.lean |
The paper's source is maintained privately. Please report corrections through this repository's issues.
The Lean formalization and scripts are licensed under Apache-2.0. The paper and explanatory documentation are licensed under CC BY 4.0. See LICENSE.md.