Documentation

CslibFrontier.Crypto.Protocols.FRI.BatchSoundness

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 #

  1. Smooth & binary round-by-round invariant (friSmoothBatchDoomed, friSmoothBatchGoodStep, friSmoothBatchIOP_rbrSound, and binary corollaries). friSmoothBatchIOP_rbrSound establishes initialization on any false tuple stmt ∉ params.batchProximityLang t e (init_doomed), preservation of friSmoothBatchDoomed on 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-0 batching challenge x = c₀.batchCoeffs : Fin t → F selects the affine word stmt.eval x first, and an adaptive prover can choose its next oracle (f⁽⁰⁾, round 1) after seeing c₀. After round 0 ((_, c₀) :: rest), friSmoothBatchDoomed delegates to single-word friSmoothDoomed on stmt.eval c₀.batchCoeffs and friBatchTailTranscript rest, absorbing any discrepancy between the reported oracle f⁽⁰⁾ and stmt.eval x via sum_agree_friSmoothOracleFilterWeight_le.
  2. Marginal challenge projections and 1-line tail reuse. Via FRIBatchChal.equivProd, uniform sampling on FRIBatchChal F d q t projects to uniform Fin t → F under batchCoeffs (toOuterMeasure_uniform_friBatchChal_batchCoeffs) and to uniform FRIChal F d q under toFRIChal (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 to CslibFrontier/Crypto/Protocols/FRI/Soundness.lean with zero duplicated folding or query proofs.
  3. 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-0 probability upper bounds (with exact denominator |F| and no list-size premise) on the chance that the affine word stmt.eval x is within Hamming distance e of params.initialCode for a false tuple under their respective parameter conditions. At batch size t = 0, the false word stmt.eval x = stmt.base is independent of the challenge and its actual round-0 escape probability is 0 (while the t-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 remaining m folding rounds alongside the query bound. All binary FRIParams theorems are proved as short corollaries via FRIParams.toSmooth and friBatchIOP_eq_friSmoothBatchIOP.

Scope and relationship to the source theorems #

Main definitions #

Main results #

References #

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.

def Cslib.Crypto.Protocols.FRI.friSmoothBatchDoomed {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) :
List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t) → Prop

Smooth batched FRI round-by-round doomed-state predicate at agreement upper bound B : ℕ:

  • On the empty prefix [] (prior to sampling the round-0 batching vector), every shared agreement set D' ⊆ Fin (2 ^ d) on which (stmt.base, stmt.terms) matches codewords in params.initialCode has cardinality at most B.
  • On any non-empty prefix (_, c₀) :: rest, delegates directly to single-word friSmoothDoomed on the affine evaluation stmt.eval c₀.batchCoeffs and projected tail friBatchTailTranscript rest.
theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchDoomed_nil_iff_not_mem_batchProximityLang {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) (stmt : FRIBatchStmt F params.d t) {e : ℕ} (he : e < 2 ^ params.d) :
friSmoothBatchDoomed params t (2 ^ params.d - e - 1) stmt [] ↔ stmt ∉ params.batchProximityLang t e

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.

def Cslib.Crypto.Protocols.FRI.friSmoothBatchGoodStep {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F) (c : FRIBatchChal F params.d params.q t) :

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).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchGoodStep_nil_iff {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (π : BCS.OracleTable params.d F) (c : FRIBatchChal F params.d params.q t) :
friSmoothBatchGoodStep params t B stmt [] π c ↔ ∀ c' ∈ params.initialCode, {s : Fin (2 ^ params.d) | stmt.eval c.batchCoeffs s = c' s}.card ≤ B

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.

@[simp]
theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchGoodStep_cons {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (π₀ : BCS.OracleTable params.d F) (c₀ : FRIBatchChal F params.d params.q t) (rest : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F) (c : FRIBatchChal F params.d params.q t) :
friSmoothBatchGoodStep params t B stmt ((π₀, c₀) :: rest) π c ↔ friSmoothGoodStep params B (stmt.eval c₀.batchCoeffs) (friBatchTailTranscript rest) π c.toFRIChal

On any non-empty prefix (π₀, c₀) :: rest, friSmoothBatchGoodStep reduces unconditionally to single-word friSmoothGoodStep on stmt.eval c₀.batchCoeffs and friBatchTailTranscript rest.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP_rbrSound {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (t e : ℕ) :
BCS.IOPRoundByRoundSoundness (friSmoothBatchIOP params t) (params.batchProximityLang t e) (friSmoothBatchDoomed params t (2 ^ params.d - e - 1)) (friSmoothBatchGoodStep params t (2 ^ params.d - e - 1))

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 batchCoeffs yields the uniform distribution on Fin t → F.

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.

theorem Cslib.Crypto.Protocols.FRI.toOuterMeasure_not_friSmoothBatchGoodStep_cons {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (π₀ : BCS.OracleTable params.d F) (c₀ : FRIBatchChal F params.d params.q t) (rest : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friSmoothBatchGoodStep params t B stmt ((π₀, c₀) :: rest) π c} = (Probability.PMF.uniformOfFintype (FRIChal F params.d params.q)).toOuterMeasure {c' : FRIChal F params.d params.q | ¬friSmoothGoodStep params B (stmt.eval c₀.batchCoeffs) (friBatchTailTranscript rest) π c'}

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.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchQueryRound_escape_le {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (hlen : pref.length = params.m + 1) (π : BCS.OracleTable params.d F) (hdoomed : friSmoothBatchDoomed params t B stmt pref) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friSmoothBatchGoodStep params t B stmt pref π c} ≤ (↑B / 2 ^ params.d) ^ params.q

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.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchCommitRound_escape_le_of_weightedCurveGap {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {B B_commit : ℕ} (hgap : WeightedCurveGapBound params B B_commit) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (hpos : 1 ≤ pref.length) (hle : pref.length ≤ params.m) (π : BCS.OracleTable params.d F) (hdoomed : friSmoothBatchDoomed params t B stmt pref) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friSmoothBatchGoodStep params t B stmt pref π c} ≤ ↑B_commit / ↑(Fintype.card F)

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.

theorem Cslib.Crypto.Protocols.FRI.FRIBatchRound0GapBound.mono {F : Type} [Field F] [Fintype F] [DecidableEq F] {d : ℕ} {C : Submodule F (BCS.OracleTable d F)} {t e B₁ B₂ : ℕ} (h : FRIBatchRound0GapBound C t e B₁) (hle : B₁ ≤ B₂) :

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.

theorem Cslib.Crypto.Protocols.FRI.FRIBatchRound0Escape.mono {F : Type} [Field F] [Fintype F] [DecidableEq F] {d : ℕ} {C : Submodule F (BCS.OracleTable d F)} {t e : ℕ} {ε₁ ε₂ : ENNReal} (h : FRIBatchRound0Escape C t e ε₁) (hle : ε₁ ≤ ε₂) :
theorem Cslib.Crypto.Protocols.FRI.friBatchRound0Escape_of_gapBound {F : Type} [Field F] [Fintype F] [DecidableEq F] {d : ℕ} (C : Submodule F (BCS.OracleTable d F)) {t e B_batch : ℕ} (hgap : FRIBatchRound0GapBound C t e B_batch) :
FRIBatchRound0Escape C t e (↑B_batch / ↑(Fintype.card F))

Convert a code-parameterized integer FRIBatchRound0GapBound budget B_batch into FRIBatchRound0Escape with escape bound (B_batch : ℝ≥0∞) / |F|.

@[reducible, inline]

Polymorphic integer smooth round-0 batching proximity-gap contract (specialization of FRIBatchRound0GapBound to params.initialCode).

@[reducible, inline]

Polymorphic ℝ≥0∞ smooth round-0 batching escape contract (specialization of FRIBatchRound0Escape to params.initialCode).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchRound0_escape_le_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} {ε_batch : ENNReal} (hescape : SmoothBatchRound0Escape params t e ε_batch) {stmt : FRIBatchStmt F params.d t} (hnot : stmt ∉ params.batchProximityLang t e) (π : BCS.OracleTable params.d F) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friSmoothBatchGoodStep params t (2 ^ params.d - e - 1) stmt [] π c} ≤ ε_batch

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.

theorem Cslib.Crypto.Protocols.FRI.smoothBatchRound0GapBound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) :
SmoothBatchRound0GapBound params t e (2 ^ params.d)

Unconditional unique-decoding SmoothBatchRound0GapBound for (t + 1)-word smooth batched FRI (applying [BSCI+23], Theorems 1.6 and 4.1).

theorem Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) :
SmoothBatchRound0Escape params t e (2 ^ params.d / ↑(Fintype.card F))

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.

theorem Cslib.Crypto.Protocols.FRI.smoothBatchRound0GapBound_of_johnson_discrete {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e m₀ D₀ B_batch : ℕ} (hm₀ : 1 ≤ m₀) (hk_le : params.dim 0 ≤ 2 ^ params.d - e) (hinterp : 2 ^ params.d * (m₀ * (m₀ + 1) / 2) < (Code.Sudan.monomials (params.dim 0 - 1) D₀).card) (hroot : D₀ < m₀ * (2 ^ params.d - e)) (hbound : Code.ProximityGap.johnsonCurveBound (2 ^ params.d) m₀ (params.dim 0 - 1) D₀ 1 (2 ^ params.d) ≤ B_batch) :
SmoothBatchRound0GapBound params t e B_batch

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).

theorem Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_johnson_discrete {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e m₀ D₀ B_batch : ℕ} (hm₀ : 1 ≤ m₀) (hk_le : params.dim 0 ≤ 2 ^ params.d - e) (hinterp : 2 ^ params.d * (m₀ * (m₀ + 1) / 2) < (Code.Sudan.monomials (params.dim 0 - 1) D₀).card) (hroot : D₀ < m₀ * (2 ^ params.d - e)) (hbound : Code.ProximityGap.johnsonCurveBound (2 ^ params.d) m₀ (params.dim 0 - 1) D₀ 1 (2 ^ params.d) ≤ B_batch) :
SmoothBatchRound0Escape params t e (↑B_batch / ↑(Fintype.card F))

Unconditional explicit-parameter Johnson SmoothBatchRound0Escape upper bound for (t + 1)-word smooth batched FRI.

@[reducible, inline]

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.

theorem Cslib.Crypto.Protocols.FRI.smoothBatchRound0GapBound_of_johnson {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e mJ : ℕ} (hmJ : 1 ≤ mJ) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - √(↑(params.dim 0) / 2 ^ params.d) / (2 * ↑mJ)) :

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).

theorem Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_johnson {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e mJ : ℕ} (hmJ : 1 ≤ mJ) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - √(↑(params.dim 0) / 2 ^ params.d) / (2 * ↑mJ)) :
SmoothBatchRound0Escape params t e (ENNReal.ofReal (1800 * (↑mJ + 1) ^ 6 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * ↑(Fintype.card F))))

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).

theorem Cslib.Crypto.Protocols.FRI.smoothBatchRound0Escape_of_johnson_eta {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} {η : ℝ} (hη : 0 < η) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - η) :
SmoothBatchRound0Escape params t e (ENNReal.ofReal (115200 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * η ^ 6 * ↑(Fintype.card F))))

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 #

noncomputable def Cslib.Crypto.Protocols.FRI.friSmoothBatchRBRError {F : Type} [Field F] [Fintype F] (params : FRISmoothParams F) (ε_batch : ENNReal) (e B_commit : ℕ) :

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.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchRBREscape_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e B_commit : ℕ} {ε_batch : ENNReal} (hbatch : SmoothBatchRound0Escape params t e ε_batch) (hgap : WeightedCurveGapBound params (2 ^ params.d - e - 1) B_commit) (stmt : FRIBatchStmt F params.d t) :
stmt ∉ params.batchProximityLang t e → ∀ (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F), friSmoothBatchDoomed params t (2 ^ params.d - e - 1) stmt pref → (Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friSmoothBatchGoodStep params t (2 ^ params.d - e - 1) stmt pref π c} ≤ friSmoothBatchRBRError params ε_batch e B_commit

Conditional step (uniform smooth batched FRI round-by-round escape bound assuming SmoothBatchRound0Escape and WeightedCurveGapBound).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_romSoundness_bound_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e B_commit : ℕ} {ε_batch : ENNReal} (hbatch : SmoothBatchRound0Escape params t e ε_batch) (hgap : WeightedCurveGapBound params (2 ^ params.d - e - 1) B_commit) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (FRIBatchStmt F params.d t) (FRIBatchChal F params.d params.q t)) (FRIBatchStmt F params.d t × BCS.BCSProof (params.m + 2) F)} {t_FS Q_MT : ℕ} (hFS : OracleComp.IsCostBounded BCS.bcsFSCost P t_FS) (hMT : OracleComp.IsCostBounded BCS.bcsMTCost (BCS.bcsSoundnessProg (friSmoothBatchIOP params t) encSym (params.batchProximityLang t e) P) Q_MT) :
(BCS.bcsSoundnessGame (friSmoothBatchIOP params t) encSym (params.batchProximityLang t e) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (friSmoothBatchRBRError params ε_batch e B_commit + ↑(t_FS + (params.m + 2)) * (1 / ↑(Fintype.card (FRIBatchChal F params.d params.q t)))) + ↑Q_MT * (↑(3 * Q_MT + (params.m + 2) * (t_FS + (params.m + 2))) * (1 / 2 ^ σ))

Conditional step (adaptive two-channel BCS-FRI ROM soundness for friSmoothBatchIOP assuming SmoothBatchRound0Escape and WeightedCurveGapBound) ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_romSoundness_bound_of_prover_verifier_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e B_commit : ℕ} {ε_batch : ENNReal} (hbatch : SmoothBatchRound0Escape params t e ε_batch) (hgap : WeightedCurveGapBound params (2 ^ params.d - e - 1) B_commit) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (FRIBatchStmt F params.d t) (FRIBatchChal F params.d params.q t)) (FRIBatchStmt F params.d t × BCS.BCSProof (params.m + 2) F)} {t_MT t_FS L_path : ℕ} (hMT : OracleComp.IsCostBounded BCS.bcsMTCost P t_MT) (hFS : OracleComp.IsCostBounded BCS.bcsFSCost P t_FS) (hops : ∀ (x : FRIBatchStmt F params.d t) (prf : BCS.BCSProof (params.m + 2) F), (x, prf) ∈ P.support → ∀ op ∈ prf.openings, op.path.length ≤ L_path) :
(BCS.bcsSoundnessGame (friSmoothBatchIOP params t) encSym (params.batchProximityLang t e) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (friSmoothBatchRBRError params ε_batch e B_commit + ↑(t_FS + (params.m + 2)) * (1 / ↑(Fintype.card (FRIBatchChal F params.d params.q t)))) + ↑(t_MT + params.proofOracleQueries * (L_path + 1)) * (↑(3 * (t_MT + params.proofOracleQueries * (L_path + 1)) + (params.m + 2) * (t_FS + (params.m + 2))) * (1 / 2 ^ σ))

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 #

def Cslib.Crypto.Protocols.FRI.friBatchDoomed {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) :
List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t) → Prop

Batched FRI round-by-round doomed-state predicate at agreement upper bound B : ℕ.

def Cslib.Crypto.Protocols.FRI.friBatchGoodStep {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F) (c : FRIBatchChal F params.d params.q t) :

Batched FRI round-by-round good-step predicate.

@[reducible, inline]
abbrev Cslib.Crypto.Protocols.FRI.BatchRound0GapBound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t e B_batch : ℕ) :

Polymorphic integer round-0 batching proximity-gap contract (specialization of FRIBatchRound0GapBound to params.initialCode).

theorem Cslib.Crypto.Protocols.FRI.BatchRound0GapBound.mono {F : Type} [Field F] [Fintype F] [DecidableEq F] {params : FRIParams F} {t e B₁ B₂ : ℕ} (h : BatchRound0GapBound params t e B₁) (hle : B₁ ≤ B₂) :
BatchRound0GapBound params t e B₂
@[reducible, inline]
abbrev Cslib.Crypto.Protocols.FRI.BatchRound0Escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t e : ℕ) (ε_batch : ENNReal) :

Polymorphic ℝ≥0∞ round-0 batching escape contract (specialization of FRIBatchRound0Escape to params.initialCode).

theorem Cslib.Crypto.Protocols.FRI.BatchRound0Escape.mono {F : Type} [Field F] [Fintype F] [DecidableEq F] {params : FRIParams F} {t e : ℕ} {ε₁ ε₂ : ENNReal} (h : BatchRound0Escape params t e ε₁) (hle : ε₁ ≤ ε₂) :
BatchRound0Escape params t e ε₂
@[reducible, inline]

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.

@[reducible, inline]
noncomputable abbrev Cslib.Crypto.Protocols.FRI.friBatchRBRError {F : Type} [Field F] [Fintype F] (params : FRIParams F) (ε_batch : ENNReal) (e B_commit : ℕ) :

Uniform per-round escape error for (params.m + 2)-round friBatchIOP.

theorem Cslib.Crypto.Protocols.FRI.friBatchDoomed_iff_friSmoothBatchDoomed {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) :
friBatchDoomed params t B stmt pref ↔ friSmoothBatchDoomed params.toSmooth t B stmt pref

Exact equivalence between binary friBatchDoomed and smooth friSmoothBatchDoomed at params.toSmooth.

theorem Cslib.Crypto.Protocols.FRI.friBatchGoodStep_iff_friSmoothBatchGoodStep {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F) (c : FRIBatchChal F params.d params.q t) :
friBatchGoodStep params t B stmt pref π c ↔ friSmoothBatchGoodStep params.toSmooth t B stmt pref π c

Exact equivalence between binary friBatchGoodStep and smooth friSmoothBatchGoodStep at params.toSmooth.

theorem Cslib.Crypto.Protocols.FRI.friBatchDoomed_nil_iff_not_mem_batchProximityLang {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t : ℕ) (stmt : FRIBatchStmt F params.d t) {e : ℕ} (he : e < 2 ^ params.d) :
friBatchDoomed params t (2 ^ params.d - e - 1) stmt [] ↔ stmt ∉ params.batchProximityLang t e

For e < 2 ^ d, the empty prefix is doomed at B = 2 ^ d - e - 1 if and only if stmt ∉ params.batchProximityLang t e.

theorem Cslib.Crypto.Protocols.FRI.friBatchGoodStep_nil_iff {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (π : BCS.OracleTable params.d F) (c : FRIBatchChal F params.d params.q t) :
friBatchGoodStep params t B stmt [] π c ↔ ∀ c' ∈ params.initialCode, {s : Fin (2 ^ params.d) | stmt.eval c.batchCoeffs s = c' s}.card ≤ B

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.

@[simp]
theorem Cslib.Crypto.Protocols.FRI.friBatchGoodStep_cons {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (π₀ : BCS.OracleTable params.d F) (c₀ : FRIBatchChal F params.d params.q t) (rest : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F) (c : FRIBatchChal F params.d params.q t) :
friBatchGoodStep params t B stmt ((π₀, c₀) :: rest) π c ↔ friGoodStep params B (stmt.eval c₀.batchCoeffs) (friBatchTailTranscript rest) π c.toFRIChal

On any non-empty prefix (π₀, c₀) :: rest, friBatchGoodStep reduces unconditionally to single-word friGoodStep on stmt.eval c₀.batchCoeffs and friBatchTailTranscript rest.

theorem Cslib.Crypto.Protocols.FRI.friBatchIOP_rbrSound {F : Type} [Field F] [DecidableEq F] (params : FRIParams F) (t e : ℕ) :
BCS.IOPRoundByRoundSoundness (friBatchIOP params t) (params.batchProximityLang t e) (friBatchDoomed params t (2 ^ params.d - e - 1)) (friBatchGoodStep params t (2 ^ params.d - e - 1))

Unconditional round-by-round soundness invariant for friBatchIOP (corollary of friSmoothBatchIOP_rbrSound).

theorem Cslib.Crypto.Protocols.FRI.toOuterMeasure_not_friBatchGoodStep_cons {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (π₀ : BCS.OracleTable params.d F) (c₀ : FRIBatchChal F params.d params.q t) (rest : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friBatchGoodStep params t B stmt ((π₀, c₀) :: rest) π c} = (Probability.PMF.uniformOfFintype (FRIChal F params.d params.q)).toOuterMeasure {c' : FRIChal F params.d params.q | ¬friGoodStep params B (stmt.eval c₀.batchCoeffs) (friBatchTailTranscript rest) π c'}

Exact reduction of any non-empty prefix escape probability in friBatchIOP (pref = (π₀, c₀) :: rest) to the corresponding single-word friIOP escape probability.

theorem Cslib.Crypto.Protocols.FRI.friBatchQueryRound_escape_le {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (hlen : pref.length = params.m + 1) (π : BCS.OracleTable params.d F) (hdoomed : friBatchDoomed params t B stmt pref) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friBatchGoodStep params t B stmt pref π c} ≤ (↑B / 2 ^ params.d) ^ params.q

Unconditional query-round escape bound for friBatchIOP (corollary of friSmoothBatchQueryRound_escape_le).

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitRound_escape_le_of_weightedLineGap {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {B B_commit : ℕ} (hgap : WeightedLineGapBound params B B_commit) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (hpos : 1 ≤ pref.length) (hle : pref.length ≤ params.m) (π : BCS.OracleTable params.d F) (hdoomed : friBatchDoomed params t B stmt pref) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friBatchGoodStep params t B stmt pref π c} ≤ ↑B_commit / ↑(Fintype.card F)

Conditional step (batched folding-round escape bound assuming WeightedLineGapBound) (corollary of friSmoothBatchCommitRound_escape_le_of_weightedCurveGap).

theorem Cslib.Crypto.Protocols.FRI.batchRound0Escape_of_gapBound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) {t e B_batch : ℕ} (hgap : BatchRound0GapBound params t e B_batch) :
BatchRound0Escape params t e (↑B_batch / ↑(Fintype.card F))

Convert an integer BatchRound0GapBound budget B_batch into BatchRound0Escape.

theorem Cslib.Crypto.Protocols.FRI.friBatchRound0_escape_le_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e : ℕ} {ε_batch : ENNReal} (hescape : BatchRound0Escape params t e ε_batch) {stmt : FRIBatchStmt F params.d t} (hnot : stmt ∉ params.batchProximityLang t e) (π : BCS.OracleTable params.d F) :
(Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friBatchGoodStep params t (2 ^ params.d - e - 1) stmt [] π c} ≤ ε_batch

Conditional step (round-0 batching escape bound assuming BatchRound0Escape).

theorem Cslib.Crypto.Protocols.FRI.batchRound0GapBound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) :
BatchRound0GapBound params t e (2 ^ params.d)

Unconditional unique-decoding BatchRound0GapBound (corollary of smoothBatchRound0GapBound_of_unique).

theorem Cslib.Crypto.Protocols.FRI.batchRound0Escape_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) :
BatchRound0Escape params t e (2 ^ params.d / ↑(Fintype.card F))

Unconditional unique-decoding BatchRound0Escape upper bound (corollary of smoothBatchRound0Escape_of_unique).

theorem Cslib.Crypto.Protocols.FRI.batchRound0GapBound_of_johnson_discrete {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e m₀ D₀ B_batch : ℕ} (hm₀ : 1 ≤ m₀) (hk_le : params.dim 0 ≤ 2 ^ params.d - e) (hinterp : 2 ^ params.d * (m₀ * (m₀ + 1) / 2) < (Code.Sudan.monomials (params.dim 0 - 1) D₀).card) (hroot : D₀ < m₀ * (2 ^ params.d - e)) (hbound : Code.ProximityGap.johnsonCurveBound (2 ^ params.d) m₀ (params.dim 0 - 1) D₀ 1 (2 ^ params.d) ≤ B_batch) :
BatchRound0GapBound params t e B_batch

Unconditional explicit-parameter Johnson BatchRound0GapBound (corollary of smoothBatchRound0GapBound_of_johnson_discrete).

theorem Cslib.Crypto.Protocols.FRI.batchRound0Escape_of_johnson_discrete {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e m₀ D₀ B_batch : ℕ} (hm₀ : 1 ≤ m₀) (hk_le : params.dim 0 ≤ 2 ^ params.d - e) (hinterp : 2 ^ params.d * (m₀ * (m₀ + 1) / 2) < (Code.Sudan.monomials (params.dim 0 - 1) D₀).card) (hroot : D₀ < m₀ * (2 ^ params.d - e)) (hbound : Code.ProximityGap.johnsonCurveBound (2 ^ params.d) m₀ (params.dim 0 - 1) D₀ 1 (2 ^ params.d) ≤ B_batch) :
BatchRound0Escape params t e (↑B_batch / ↑(Fintype.card F))

Unconditional explicit-parameter Johnson BatchRound0Escape upper bound (corollary of smoothBatchRound0Escape_of_johnson_discrete).

theorem Cslib.Crypto.Protocols.FRI.batchRound0GapBound_of_johnson {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e mJ : ℕ} (hmJ : 1 ≤ mJ) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - √(↑(params.dim 0) / 2 ^ params.d) / (2 * ↑mJ)) :

Original explicit-constant Johnson BatchRound0GapBound (corollary of smoothBatchRound0GapBound_of_johnson).

theorem Cslib.Crypto.Protocols.FRI.batchRound0Escape_of_johnson {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e mJ : ℕ} (hmJ : 1 ≤ mJ) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - √(↑(params.dim 0) / 2 ^ params.d) / (2 * ↑mJ)) :
BatchRound0Escape params t e (ENNReal.ofReal (1800 * (↑mJ + 1) ^ 6 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * ↑(Fintype.card F))))

Original explicit-constant Johnson BatchRound0Escape upper bound (corollary of smoothBatchRound0Escape_of_johnson).

theorem Cslib.Crypto.Protocols.FRI.batchRound0Escape_of_johnson_eta {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e : ℕ} {η : ℝ} (hη : 0 < η) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - η) :
BatchRound0Escape params t e (ENNReal.ofReal (115200 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * η ^ 6 * ↑(Fintype.card F))))

Original explicit-constant η-gap Johnson BatchRound0Escape upper bound (corollary of smoothBatchRound0Escape_of_johnson_eta).

theorem Cslib.Crypto.Protocols.FRI.friBatchRBREscape_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e B_commit : ℕ} {ε_batch : ENNReal} (hbatch : BatchRound0Escape params t e ε_batch) (hgap : WeightedLineGapBound params (2 ^ params.d - e - 1) B_commit) (stmt : FRIBatchStmt F params.d t) :
stmt ∉ params.batchProximityLang t e → ∀ (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (π : BCS.OracleTable params.d F), friBatchDoomed params t (2 ^ params.d - e - 1) stmt pref → (Probability.PMF.uniformOfFintype (FRIBatchChal F params.d params.q t)).toOuterMeasure {c : FRIBatchChal F params.d params.q t | ¬friBatchGoodStep params t (2 ^ params.d - e - 1) stmt pref π c} ≤ friBatchRBRError params ε_batch e B_commit

Conditional step (uniform batched FRI round-by-round escape bound assuming BatchRound0Escape and WeightedLineGapBound) (corollary of friSmoothBatchRBREscape_of_escape).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e B_commit : ℕ} {ε_batch : ENNReal} (hbatch : BatchRound0Escape params t e ε_batch) (hgap : WeightedLineGapBound params (2 ^ params.d - e - 1) B_commit) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (FRIBatchStmt F params.d t) (FRIBatchChal F params.d params.q t)) (FRIBatchStmt F params.d t × BCS.BCSProof (params.m + 2) F)} {t_FS Q_MT : ℕ} (hFS : OracleComp.IsCostBounded BCS.bcsFSCost P t_FS) (hMT : OracleComp.IsCostBounded BCS.bcsMTCost (BCS.bcsSoundnessProg (friBatchIOP params t) encSym (params.batchProximityLang t e) P) Q_MT) :
(BCS.bcsSoundnessGame (friBatchIOP params t) encSym (params.batchProximityLang t e) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (friBatchRBRError params ε_batch e B_commit + ↑(t_FS + (params.m + 2)) * (1 / ↑(Fintype.card (FRIBatchChal F params.d params.q t)))) + ↑Q_MT * (↑(3 * Q_MT + (params.m + 2) * (t_FS + (params.m + 2))) * (1 / 2 ^ σ))

Conditional step (adaptive two-channel BCS-FRI ROM soundness for friBatchIOP assuming BatchRound0Escape and WeightedLineGapBound) (corollary of friSmoothBatchBCS_romSoundness_bound_of_escape).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_of_prover_verifier_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e B_commit : ℕ} {ε_batch : ENNReal} (hbatch : BatchRound0Escape params t e ε_batch) (hgap : WeightedLineGapBound params (2 ^ params.d - e - 1) B_commit) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (FRIBatchStmt F params.d t) (FRIBatchChal F params.d params.q t)) (FRIBatchStmt F params.d t × BCS.BCSProof (params.m + 2) F)} {t_MT t_FS L_path : ℕ} (hMT : OracleComp.IsCostBounded BCS.bcsMTCost P t_MT) (hFS : OracleComp.IsCostBounded BCS.bcsFSCost P t_FS) (hops : ∀ (x : FRIBatchStmt F params.d t) (prf : BCS.BCSProof (params.m + 2) F), (x, prf) ∈ P.support → ∀ op ∈ prf.openings, op.path.length ≤ L_path) :
(BCS.bcsSoundnessGame (friBatchIOP params t) encSym (params.batchProximityLang t e) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (friBatchRBRError params ε_batch e B_commit + ↑(t_FS + (params.m + 2)) * (1 / ↑(Fintype.card (FRIBatchChal F params.d params.q t)))) + ↑(t_MT + params.proofOracleQueries * (L_path + 1)) * (↑(3 * (t_MT + params.proofOracleQueries * (L_path + 1)) + (params.m + 2) * (t_FS + (params.m + 2))) * (1 / 2 ^ σ))

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).