A Simplified Round-by-round Soundness Proof of FRI & Lean Formalization
Albert Garreta (Nethermind), Yoichi Hirai (ZKSecurity), Nicolas Mohnblatt (ZKSecurity), Benedikt Wagner (Ethereum Foundation)
Accepted paper presented at ZKProof 8 in Rome, May 9–10, 2026.
Speakers

Yoichi Hirai
ZKSecurity

Nicolas Mohnblatt
ZKSecurity
About this talk
At ZKProof 8 in Rome, Nicolas Mohnblatt and Yoichi Hirai gave a two-part talk: a new, much simpler proof that FRI is sound, followed by a machine-checked Lean formalization of that proof.
Why prove FRI again?
FRI already has security proofs, but they are notoriously hard to follow. Mohnblatt gave three reasons for a new one:
- Accessibility: a proof more people can actually read and check.
- Formal verification: a simpler proof is much easier to formalize.
- Insight: a new proof might teach us something new about FRI.
The proof is joint work by Albert Garreta, Nicolas Mohnblatt and Benedikt Wagner. The formalization is Yoichi Hirai's work.
A quick recap of FRI
FRI is an interactive oracle proof of proximity for Reed-Solomon codes: the prover wants to convince the verifier that a function is in (or close to) a Reed-Solomon code. Soundness says the verifier should rarely accept functions that are far from the code, with an error bound that depends on that distance. This work bounds the error over the whole range of distances, which Mohnblatt noted is useful beyond SNARKs.
The code is evaluated over roots of unity. Squaring every element of the domain halves both its size and the degree bound, giving a smaller code with the same rate. A fold operation uses verifier randomness to map a codeword on one domain to the next, smaller one. Crucially, it is local: computing the fold at x² only requires the original function at x and −x.
The protocol has two phases:
- Folding (commit) phase. The verifier sends a random challenge and the prover answers with the folded function, repeating until the function is small enough for the verifier to read in full.
- Query phase. The verifier checks that the final function is a codeword. It then picks a position in the initial function, opens it and its sibling, recomputes the fold and compares it with the next layer, continuing down the layers. This is repeated for several queries.
The proof in one picture
The proof treats the prover's functions as a layered graph, where each node is a position in a codeword and edges follow the squaring between domains. Wherever a fold is inconsistent, the lower node is marked. Paths that pass through a marked node lead to rejection (red); all others are paths where the verifier notices nothing (green). The probability that a single query is accepted is simply the number of green paths divided by the total number of paths.
The hard part is linking the green paths to the distance between the initial function and the code. Ideally, agreement with a codeword on the green nodes would propagate from each layer up to the previous one, but that statement is false. What the authors prove instead is a relaxed version: if the set of green nodes is large enough, agreement propagates upward except with negligible probability over the verifier's challenge. "Large enough" is a parameter of the analysis, θ, and this step reduces to a coding-theory property called mutual correlated agreement.
The analysis then splits into two cases:
- Happy case: every set of green nodes is large enough, so agreement propagates all the way up. The initial function then agrees with a codeword on the green nodes, which bounds the acceptance probability in terms of its distance to the code.
- Sad case: some set is too small, which means many rejecting paths, so the acceptance probability is bounded in terms of θ.
The resulting round-by-round soundness theorem combines a mutual correlated agreement error with a query error covering both regimes. As a function of distance, the bound decreases until θ and then plateaus.
A bonus: extraction by erasure decoding
Previous analyses only told you that the initial function was close to the code, so extracting a codeword required error decoding. With this proof, you know exactly where the function agrees with the code: on the green nodes. Everything else can be treated as erasures, so when θ is within the code's capacity, the codeword can be recovered by interpolating from the green nodes.
The paper also proves that FRI's folding phase is a commitment, which Mohnblatt said had not been shown before. It has applications to data availability, the subject of upcoming work with Benedikt Wagner.
Formalizing the proof in Lean
Hirai then described formalizing the paper in Lean, so that the proof is checked mechanically in a type theory rather than by a human reader (or by an AI). The paper was a good candidate: it involves trees, polynomials and elementary probability, with no cryptographic assumptions.
He took the paper to an AI and mathematics workshop in Bologna, where sponsor Harmonic gave participants access to its Aristotle agent, which turns LaTeX documents into formal proofs. Between December and January, he used Aristotle together with Claude Code to formalize all the proofs in the paper, plus perfect completeness, in about 4,000 lines of Lean. One lemma cited from another paper is not yet formalized. He stressed that this was already "ancient" work, since such tools have improved dramatically in the months since.
Hirai's broader argument:
- Mechanized proofs are non-interactive. A paper proof often leaves readers wondering about typos or gaps; a formal proof can be checked without asking the authors, and can connect cryptographic assumptions to an implementation end to end.
- The community needs a shared library. Lean users in mathematics rely on a common library, Mathlib, so everyone works from the same definitions. His formalization defines mutual correlated agreement just for this project, which he said is not the right way to do it. He suggested that a common reference library of definitions is a natural topic for ZKProof's standardization effort.
From the Q&A
- Is the bound better than previous proofs? It's the same bound. Previous proofs reduce to correlated agreement; this one reduces to mutual correlated agreement. So far, every proof of correlated agreement also proves mutual correlated agreement.
- What kind of commitment is FRI's folding phase? A code commitment with a notion of position binding: as long as no bad fold event occurs and the acceptance probability is high, a unique codeword can always be extracted.
Go further
- Watch the full talk
- Read the paper on IACR ePrint (2025/1993)
- Browse the Lean formalization on GitHub
- Read Yoichi Hirai's write-up of the formalization and Nicolas Mohnblatt's "Why does FRI work?" on the zkSecurity blog
This summary was written by the conference team, not by the speakers or the paper's authors. For the authoritative account of this work, please refer to the paper on IACR ePrint.
More ZKProof 8 talks on this topic
Codes, IOPs and hash-based SNARKs
All Polynomial Generators Preserve Distance with Mutual Correlated Agreement
Sarah Bordage (EPFL), Alessandro Chiesa (EPFL), Ziyi Guan (EPFL), Ignacio Manzur (EPFL)
On Reed–Solomon Proximity Gaps Conjectures
Elizabeth Crites (Parity Technologies), Alistair Stewart (Parity Technologies)
Zero-Knowledge IOPPs for Constrained Interleaved Codes
Giacomo Fenzi (EPFL), Alessandro Chiesa (EPFL), Guy Weissenberg (EPFL)
TensorSwitch: Nearly Optimal Polynomial Commitments from Tensor Codes
Benedikt Bünz (NYU), Giacomo Fenzi (EPFL), Ron Rothblum (Succinct), William Wang (New York University)
ERA Codes: Linear-Time Encodable Field-Agnostic Codes for SNARKs
Anubhav Baweja (University of Pennsylvania), Giacomo Fenzi (EPFL), Pratyush Mishra (University of Pennsylvania), Tushar Mopuri (University of Pennsylvania)
