Smooth & Binary Batched FRI Round-0 Soundness, Affine Correlated Agreement, and BCS Composition #
This module proves unconditional round-by-round soundness
(Cslib.Crypto.Protocols.BCS.IOPRoundByRoundSoundness — initialization on false tuples,
preservation on good transitions, and terminal rejection), marginal challenge projections, and
unconditional round-0 unweighted affine-word escape upper bounds for the (params.m + 2)-round
smooth batched FRI IOP Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP (with per-round folding arity
l⁽ⁱ⁾ = 2 ^ stepLog i ≥ 2) and its binary 2-to-1 specialization
Cslib.Crypto.Protocols.FRI.friBatchIOP
([BSCI+23], accepted Journal of the ACM 2023 manuscript,
Section 8.2 on printed pp. 36–40 and Section 8.2.1 on printed pp. 41–43), together with conditional
whole-protocol uniform escape and two-channel BCS random-oracle composition steps
([BSCS16]; [CY24]).
Summary of the round-by-round invariant and round-0 probability bounds #
- Smooth & binary round-by-round invariant (
friSmoothBatchDoomed,friSmoothBatchGoodStep,friSmoothBatchIOP_rbrSound, and binary corollaries).friSmoothBatchIOP_rbrSoundestablishes initialization on any false tuplestmt ∉ params.batchProximityLang t e(init_doomed), preservation offriSmoothBatchDoomedon good round transitions (step_doomed), and terminal verifier rejection (iopVerify = false) of any complete doomed transcript (reject_of_doomed). In this Lean ordering, the uniform round-0batching challengex = c₀.batchCoeffs : Fin t → Fselects the affine wordstmt.eval xfirst, and an adaptive prover can choose its next oracle (f⁽⁰⁾, round1) after seeingc₀. After round0((_, c₀) :: rest),friSmoothBatchDoomeddelegates to single-wordfriSmoothDoomedonstmt.eval c₀.batchCoeffsandfriBatchTailTranscript rest, absorbing any discrepancy between the reported oraclef⁽⁰⁾andstmt.eval xviasum_agree_friSmoothOracleFilterWeight_le. - Marginal challenge projections and 1-line tail reuse.
Via
FRIBatchChal.equivProd, uniform sampling onFRIBatchChal F d q tprojects to uniformFin t → FunderbatchCoeffs(toOuterMeasure_uniform_friBatchChal_batchCoeffs) and to uniformFRIChal F d qundertoFRIChal(toOuterMeasure_uniform_friBatchChal_toFRIChal), reducing every non-empty prefix escape probability (toOuterMeasure_not_friSmoothBatchGoodStep_cons), query-round escape (friSmoothBatchQueryRound_escape_le), and folding-round escape (friSmoothBatchCommitRound_escape_le_of_weightedCurveGap) directly toCslibFrontier/Crypto/Protocols/FRI/Soundness.leanwith zero duplicated folding or query proofs. - Round-0 probability upper bounds from affine correlated agreement, and whole-protocol steps.
The unique-decoding (
smoothBatchRound0GapBound_of_unique,smoothBatchRound0Escape_of_unique), discrete Johnson (smoothBatchRound0GapBound_of_johnson_discrete,smoothBatchRound0Escape_of_johnson_discrete), and closed-form Johnson /η-gap (smoothBatchRound0GapBound_of_johnson,smoothBatchRound0Escape_of_johnson,smoothBatchRound0Escape_of_johnson_eta) results supply round-0probability upper bounds (with exact denominator|F|and no list-size premise) on the chance that the affine wordstmt.eval xis within Hamming distanceeofparams.initialCodefor a false tuple under their respective parameter conditions. At batch sizet = 0, the false wordstmt.eval x = stmt.baseis independent of the challenge and its actual round-0escape probability is0(while thet-uniform theorems still supply valid upper bounds). Whole- protocol steps (friSmoothBatchRBREscape_of_escape,friSmoothBatchBCS_romSoundness_bound_of_escape,FRI.friSmoothBatchBCS_romSoundness_bound_of_prover_verifier_of_escape) still require escape estimates (WeightedCurveGapBound) for the remainingmfolding rounds alongside the query bound. All binaryFRIParamstheorems are proved as short corollaries viaFRIParams.toSmoothandfriBatchIOP_eq_friSmoothBatchIOP.
Scope and relationship to the source theorems #
- Round-
0event vs. Section 8.2.1 Eq. (8.8) (printed pp. 41–42): In [BSCI+23], Section 8.2.1 defines the round-0bad eventE⁽⁰⁾usingμ⁽⁰⁾-weighted agreement of the reported oraclef⁽⁰⁾, whereμ⁽⁰⁾(s) = 1only wheref⁽⁰⁾(s)matches the affine evaluationstmt.eval x sand0otherwise. High weighted agreement off⁽⁰⁾therefore implies high unweighted agreement of the affine wordstmt.eval x, whereas a prover that reports a value different fromstmt.eval xeverywhere makesμ⁽⁰⁾ ≡ 0and shows why the reverse implication can fail. The cutoffs differ as well: forn = 2 ^ dandB = n - e - 1, Lean's round-0event (SmoothBatchRound0GapBound,SmoothBatchRound0Escape,¬ friSmoothBatchGoodStep ... [] π c) tests unweighted agreement strictly aboveB / n, whereas the paper'sE⁽⁰⁾uses the cutoffmax(α, √ρ · (1 + 1 / (2 * m)))(for example, withn = 16, k = 4, e = 7, α = 1 / 2, m = 3, Lean's cutoff8 / 16admits nine agreeing positions while the paper's cutoff7 / 12starts at ten). Consequently, for a tuple with common agreement at mostB / n(stmt ∉ params.batchProximityLang t e), the Lean round-0event contains the paper's eventE⁽⁰⁾whenever the paper's cutoffmax(α, √ρ · (1 + 1 / (2 * m)))is at leastB / n. - Explicit Siegel constants and direct
η: The closed-form round-0upper bounds (friSmoothBatchJohnsonRound0Bound,1800 * (mJ + 1) ^ 6 * (2 ^ d) ^ 2 / (ρ * |F|), and115200 * (2 ^ d) ^ 2 / (ρ * η ^ 6 * |F|)) are this library's original explicit Siegel finite bounds fromCslibFrontier/Foundations/Data/Code/ProximityGap/Curve.lean, not the paper's displayed(m + 1 / 2) ^ 7 / (3 * ρ ^ (3 / 2))expression (not uniformly smaller at smallmJ, and Eq. (1.3) usesmin(η, √ρ / 20)whereassmoothBatchRound0Escape_of_johnson_etausesηdirectly). - Whole-protocol summed IOP soundness: Full summed interactive smooth and binary batched FRI
soundness (in the setting of JACM Lemma 8.2 / Section 8.2.1 and Theorem 8.3) is completed in
CslibFrontier.Crypto.Protocols.FRI.BatchJohnsonSoundness; exact correspondence with the paper's displayed constants remains open on#5968.
Main definitions #
Cslib.Crypto.Protocols.FRI.friBatchTailTranscript,Cslib.Crypto.Protocols.FRI.friSmoothBatchDoomed,Cslib.Crypto.Protocols.FRI.friSmoothBatchGoodStep,Cslib.Crypto.Protocols.FRI.friBatchDoomed,Cslib.Crypto.Protocols.FRI.friBatchGoodStep: transcript-tail projection and smooth / binary round-by-round doomed and good-step predicates.Cslib.Crypto.Protocols.FRI.FRIBatchRound0GapBound,Cslib.Crypto.Protocols.FRI.FRIBatchRound0Escape,Cslib.Crypto.Protocols.FRI.SmoothBatchRound0GapBound,Cslib.Crypto.Protocols.FRI.SmoothBatchRound0Escape,Cslib.Crypto.Protocols.FRI.friSmoothBatchJohnsonRound0Bound(and binary counterpartsBatchRound0GapBound,BatchRound0Escape,friBatchJohnsonRound0Bound): code-parameterized, smooth, and binary integer /ℝ≥0∞round-0unweighted affine-word escape contracts and explicit-constant Johnson round-0budget.Cslib.Crypto.Protocols.FRI.friSmoothBatchRBRError&Cslib.Crypto.Protocols.FRI.friBatchRBRError: uniform per-round escape error combining round-0batching escapeε_batchwithfriSmoothRBRError/friRBRError.
Main results #
Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP_rbrSound&Cslib.Crypto.Protocols.FRI.friBatchIOP_rbrSound: unconditionalIOPRoundByRoundSoundnessfor smooth and binary batched FRI.Cslib.Crypto.Protocols.FRI.uniformOfFintype_friBatchChal_map_batchCoeffs,Cslib.Crypto.Protocols.FRI.uniformOfFintype_friBatchChal_map_toFRIChal,Cslib.Crypto.Protocols.FRI.toOuterMeasure_uniform_friBatchChal_batchCoeffs,Cslib.Crypto.Protocols.FRI.toOuterMeasure_uniform_friBatchChal_toFRIChal,Cslib.Crypto.Protocols.FRI.toOuterMeasure_not_friSmoothBatchGoodStep_cons,Cslib.Crypto.Protocols.FRI.friSmoothBatchQueryRound_escape_le,Cslib.Crypto.Protocols.FRI.friSmoothBatchCommitRound_escape_le_of_weightedCurveGap: marginal challenge laws and 1-line smooth tail escape reductions (with binary corollaries).Cslib.Crypto.Protocols.FRI.friBatchRound0Escape_of_gapBound,Cslib.Crypto.Protocols.FRI.friSmoothBatchRound0_escape_le_of_escape,Cslib.Crypto.Protocols.FRI.smoothBatchRound0GapBound_of_unique,Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_unique,Cslib.Crypto.Protocols.FRI.smoothBatchRound0GapBound_of_johnson_discrete,Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_johnson_discrete,Cslib.Crypto.Protocols.FRI.smoothBatchRound0GapBound_of_johnson,Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_johnson,Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_johnson_eta: unconditional round-0batching discharges across all four regimes (with binary corollaries).Cslib.Crypto.Protocols.FRI.friSmoothBatchRBREscape_of_escape,Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_romSoundness_bound_of_escape,FRI.friSmoothBatchBCS_romSoundness_bound_of_prover_verifier_of_escape(and binary corollaries): conditional uniform per-round escape and adaptive two-channel BCS ROM composition steps.
References #
- E. Ben-Sasson, D. Carmon, Y. Ishai, S. Kopparty, S. Saraf, Proximity Gaps for Reed–Solomon Codes
- E. Ben-Sasson, I. Bentov, Y. Horesh, M. Riabzev, Fast Reed–Solomon Interactive Oracle Proofs of Proximity
- E. Ben-Sasson, A. Chiesa, N. Spooner, Interactive Oracle Proofs
- A. Chiesa, E. Yogev, Building Cryptographic Proofs from Hash Functions
Section 1: Shared Tail Transcript & Smooth Batched Round-by-Round Invariant #
Project a batched FRI transcript tail to the corresponding single-word FRI transcript tail
by applying FRIBatchChal.toFRIChal to each round challenge.
Smooth batched FRI round-by-round doomed-state predicate at agreement upper bound B : ℕ:
- On the empty prefix
[](prior to sampling the round-0batching vector), every shared agreement setD' ⊆ Fin (2 ^ d)on which(stmt.base, stmt.terms)matches codewords inparams.initialCodehas cardinality at mostB. - On any non-empty prefix
(_, c₀) :: rest, delegates directly to single-wordfriSmoothDoomedon the affine evaluationstmt.eval c₀.batchCoeffsand projected tailfriBatchTailTranscript rest.
For e < 2 ^ d, the empty prefix is smooth-doomed at B = 2 ^ d - e - 1 if and only if
stmt ∉ params.batchProximityLang t e.
Smooth batched FRI round-by-round good-step predicate: for active rounds
pref.length ≤ params.m + 1, extending pref by (π, c) preserves friSmoothBatchDoomed; for
unreachable lengths params.m + 2 ≤ pref.length, holds trivially (True).
On the empty prefix [], friSmoothBatchGoodStep holds at challenge c if and only if no
codeword c' ∈ params.initialCode agrees with stmt.eval c.batchCoeffs on more than B
coordinates.
On any non-empty prefix (π₀, c₀) :: rest, friSmoothBatchGoodStep reduces unconditionally to
single-word friSmoothGoodStep on stmt.eval c₀.batchCoeffs and friBatchTailTranscript rest.
Unconditional round-by-round soundness invariant for friSmoothBatchIOP: for every batch
size t : ℕ and distance threshold e : ℕ, friSmoothBatchIOP params t satisfies
IOPRoundByRoundSoundness with respect to params.batchProximityLang t e,
friSmoothBatchDoomed params t (2 ^ params.d - e - 1), and
friSmoothBatchGoodStep params t (2 ^ params.d - e - 1).
Section 2: Marginal Challenge Projections and Smooth Tail Escape Lifts #
Projecting a uniform FRIBatchChal F d q t onto toFRIChal yields the uniform distribution
on FRIChal F d q.
Outer-measure marginal identity for FRIBatchChal.batchCoeffs under the uniform distribution.
Outer-measure marginal identity for FRIBatchChal.toFRIChal under the uniform distribution.
Exact reduction of any non-empty prefix escape probability in friSmoothBatchIOP
(pref = (π₀, c₀) :: rest) to the corresponding single-word friSmoothIOP escape probability on
stmt.eval c₀.batchCoeffs and friBatchTailTranscript rest.
Unconditional query-round escape bound for friSmoothBatchIOP: when
pref.length = params.m + 1 and pref is doomed at threshold B, the probability over a uniform
FRIBatchChal that all q query repetitions pass is at most (B / 2 ^ d) ^ q.
Conditional step (smooth batched folding-round escape bound assuming
WeightedCurveGapBound): for any folding round (1 ≤ pref.length and pref.length ≤ params.m)
that is doomed at threshold B, the escape probability over a uniform FRIBatchChal is at most
B_commit / |F|.
Section 3: Smooth Round-0 Unweighted Affine-Word Escape Contracts and Discharges #
Code-parameterized integer round-0 batching proximity-gap contract relative to an initial
linear code C : Submodule F (OracleTable d F): for every false tuple
stmt ∉ friBatchProximityLang C t e, any set T of batching vectors x : Fin t → F whose affine
evaluation stmt.eval x achieves unweighted agreement > 2 ^ d - e - 1 with C satisfies
|F| * #T ≤ B_batch * |F| ^ t.
Code-parameterized ℝ≥0∞ round-0 batching escape contract relative to an initial linear
code C : Submodule F (OracleTable d F): for every false tuple
stmt ∉ friBatchProximityLang C t e, a uniformly sampled batching vector x : Fin t → F lands at
unweighted agreement > 2 ^ d - e - 1 with C with probability at most ε_batch.
Convert a code-parameterized integer FRIBatchRound0GapBound budget B_batch into
FRIBatchRound0Escape with escape bound (B_batch : ℝ≥0∞) / |F|.
Polymorphic integer smooth round-0 batching proximity-gap contract (specialization of
FRIBatchRound0GapBound to params.initialCode).
Polymorphic ℝ≥0∞ smooth round-0 batching escape contract (specialization of
FRIBatchRound0Escape to params.initialCode).
Conditional step (smooth round-0 batching escape bound assuming
SmoothBatchRound0Escape): for any false tuple stmt ∉ params.batchProximityLang t e and any
round-0 announcement table π, the probability over a uniform FRIBatchChal that round 0
escapes friSmoothBatchDoomed is at most ε_batch.
Unconditional unique-decoding SmoothBatchRound0GapBound for (t + 1)-word smooth batched
FRI (applying [BSCI+23], Theorems 1.6 and 4.1).
Unconditional unique-decoding SmoothBatchRound0Escape upper bound for (t + 1)-word
smooth batched FRI: bounds the round-0 unweighted affine-word escape probability by
(2 ^ params.d : ℝ≥0∞) / |F| uniformly for all t : ℕ whenever
2 * e + params.dim 0 ≤ 2 ^ d.
Unconditional explicit-parameter Johnson SmoothBatchRound0GapBound for (t + 1)-word
smooth batched FRI (in the setting of [BSCI+23], Theorem 1.6 on
printed p. 6).
Unconditional explicit-parameter Johnson SmoothBatchRound0Escape upper bound for
(t + 1)-word smooth batched FRI.
Explicit Siegel integer round-0 batching budget for (t + 1)-word smooth FRI in the Johnson
regime with multiplicity slack mJ: (1800 * (mJ + 1) ^ 6 * (2 ^ params.d) ^ 3) / params.dim 0.
Original explicit-constant Johnson SmoothBatchRound0GapBound for (t + 1)-word smooth
batched FRI up to (e : ℝ) / 2 ^ d ≤ 1 - √ρ - √ρ / (2 * mJ) (in the setting of
[BSCI+23], Theorem 1.6 on printed p. 6).
Original explicit-constant Johnson SmoothBatchRound0Escape upper bound for (t + 1)-word
smooth batched FRI up to (e : ℝ) / 2 ^ d ≤ 1 - √ρ - √ρ / (2 * mJ) (in the setting of
[BSCI+23], Theorem 1.6 on printed p. 6).
Original explicit-constant η-gap Johnson SmoothBatchRound0Escape upper bound for
(t + 1)-word smooth batched FRI up to (e : ℝ) / 2 ^ d ≤ 1 - √ρ - η (using η directly rather
than min(η, √ρ / 20) in Eq. (1.3)).
Section 4: Conditional Smooth Uniform RBR Escape & Adaptive Two-Channel BCS ROM #
Uniform per-round escape error for (params.m + 2)-round friSmoothBatchIOP: the maximum of
the round-0 batching escape ε_batch and friSmoothRBRError params e B_commit.
Conditional step (uniform smooth batched FRI round-by-round escape bound assuming
SmoothBatchRound0Escape and WeightedCurveGapBound).
Conditional step (adaptive two-channel BCS-FRI ROM soundness for friSmoothBatchIOP assuming
SmoothBatchRound0Escape and WeightedCurveGapBound)
([BSCS16]; [CY24]).
Conditional step (adaptive two-channel BCS-FRI ROM soundness for friSmoothBatchIOP with
separate prover/verifier Merkle budgets assuming SmoothBatchRound0Escape and
WeightedCurveGapBound) ([BSCS16]; [CY24]).
Section 5: Binary 2-to-1 Batched FRI Definitions, Bridges, and Corollaries #
Batched FRI round-by-round doomed-state predicate at agreement upper bound B : ℕ.
Batched FRI round-by-round good-step predicate.
Polymorphic integer round-0 batching proximity-gap contract (specialization of
FRIBatchRound0GapBound to params.initialCode).
Polymorphic ℝ≥0∞ round-0 batching escape contract (specialization of
FRIBatchRound0Escape to params.initialCode).
Explicit Siegel integer round-0 batching budget for (t + 1)-word binary FRI in the Johnson
regime with multiplicity slack mJ: (1800 * (mJ + 1) ^ 6 * (2 ^ params.d) ^ 3) / params.dim 0.
Exact equivalence between binary friBatchDoomed and smooth friSmoothBatchDoomed at
params.toSmooth.
Exact equivalence between binary friBatchGoodStep and smooth friSmoothBatchGoodStep at
params.toSmooth.
For e < 2 ^ d, the empty prefix is doomed at B = 2 ^ d - e - 1 if and only if
stmt ∉ params.batchProximityLang t e.
On the empty prefix [], friBatchGoodStep holds at challenge c if and only if no codeword
c' ∈ params.initialCode agrees with stmt.eval c.batchCoeffs on more than B coordinates.
On any non-empty prefix (π₀, c₀) :: rest, friBatchGoodStep reduces unconditionally to
single-word friGoodStep on stmt.eval c₀.batchCoeffs and friBatchTailTranscript rest.
Unconditional round-by-round soundness invariant for friBatchIOP (corollary of
friSmoothBatchIOP_rbrSound).
Exact reduction of any non-empty prefix escape probability in friBatchIOP
(pref = (π₀, c₀) :: rest) to the corresponding single-word friIOP escape probability.
Unconditional query-round escape bound for friBatchIOP (corollary of
friSmoothBatchQueryRound_escape_le).
Conditional step (batched folding-round escape bound assuming WeightedLineGapBound)
(corollary of friSmoothBatchCommitRound_escape_le_of_weightedCurveGap).
Convert an integer BatchRound0GapBound budget B_batch into BatchRound0Escape.
Conditional step (round-0 batching escape bound assuming BatchRound0Escape).
Unconditional unique-decoding BatchRound0GapBound (corollary of
smoothBatchRound0GapBound_of_unique).
Unconditional unique-decoding BatchRound0Escape upper bound (corollary of
smoothBatchRound0Escape_of_unique).
Unconditional explicit-parameter Johnson BatchRound0GapBound (corollary of
smoothBatchRound0GapBound_of_johnson_discrete).
Unconditional explicit-parameter Johnson BatchRound0Escape upper bound (corollary of
smoothBatchRound0Escape_of_johnson_discrete).
Original explicit-constant Johnson BatchRound0GapBound (corollary of
smoothBatchRound0GapBound_of_johnson).
Original explicit-constant Johnson BatchRound0Escape upper bound (corollary of
smoothBatchRound0Escape_of_johnson).
Original explicit-constant η-gap Johnson BatchRound0Escape upper bound (corollary of
smoothBatchRound0Escape_of_johnson_eta).
Conditional step (uniform batched FRI round-by-round escape bound assuming BatchRound0Escape
and WeightedLineGapBound) (corollary of friSmoothBatchRBREscape_of_escape).
Conditional step (adaptive two-channel BCS-FRI ROM soundness for friBatchIOP assuming
BatchRound0Escape and WeightedLineGapBound) (corollary of
friSmoothBatchBCS_romSoundness_bound_of_escape).
Conditional step (adaptive two-channel BCS-FRI ROM soundness for friBatchIOP with separate
prover/verifier Merkle budgets assuming BatchRound0Escape and WeightedLineGapBound)
(corollary of friSmoothBatchBCS_romSoundness_bound_of_prover_verifier_of_escape).