English

Automating Bitvector and Finite Field Equivalence Proofs in Lean

Logic in Computer Science 2026-05-15 v1

Abstract

Efforts to verify Zero-Knowledge Proof circuit encodings have highlighted the challenge of proving the correctness of quantifier-free statements that make use of both bitvector and finite field operations. Existing verification workflows are either manual or rely on SMT solvers, which scale poorly on some classes of problems for reasons that include difficulties with conversion operators and challenges reasoning about inequalities. To address these limitations, we present a novel Lean tactic BitModEq that leverages range lemmas and case analysis to produce verified translations from finite fields to bitvectors. Our approach, combined with bit-blasting, outperforms state-of-the-art SMT solvers, solving 19% more ZKP arithmetization benchmarks.

Keywords

Cite

@article{arxiv.2605.15163,
  title  = {Automating Bitvector and Finite Field Equivalence Proofs in Lean},
  author = {Elizaveta Pertseva and Valentin Robert and Clark Barrett and James Parker},
  journal= {arXiv preprint arXiv:2605.15163},
  year   = {2026}
}
R2 v1 2026-07-22T07:12:56.222Z