Documentation

CslibFrontier.Crypto.Protocols.FRI.BatchJohnsonSoundness.BinaryBridge

Binary 2-to-1 Batched FRI Definitions, Smooth Specialization Bridges, and Conditional Escape #

Specializes the smooth batched FRI commit-phase game, escape vector, summed error, and closed-form commit-error formulas to binary 2-to-1 folding (FRIParams, friBatchIOP) via FRIParams.toSmooth ([BSCI+23], Section 8.2).

Main definitions #

Main results #

References #

@[reducible, inline]
noncomputable abbrev Cslib.Crypto.Protocols.FRI.friBatchRoundEscape {F : Type} [Field F] (params : FRIParams F) (ε_batch : ENNReal) (e : ℕ) (ε_commit : Fin params.m → ENNReal) :
Fin (params.m + 2) → ENNReal

Per-round escape budget vector for (params.m + 2)-round friBatchIOP.

@[reducible, inline]
noncomputable abbrev Cslib.Crypto.Protocols.FRI.friBatchSumError {F : Type} [Field F] (params : FRIParams F) (ε_batch : ENNReal) (e : ℕ) (ε_commit : Fin params.m → ENNReal) :

Summed interactive batched FRI soundness error.

def Cslib.Crypto.Protocols.FRI.friBatchFinalPasses {F : Type} [Field F] (params : FRIParams F) (t : ℕ) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) (πFinal : BCS.OracleTable params.d F) (s : Fin (2 ^ params.d)) :

Post-commit single-query acceptance predicate for an (m + 1)-round batched commit prefix pref and final committed oracle πFinal.

noncomputable def Cslib.Crypto.Protocols.FRI.friBatchCommitGame {F : Type} [Field F] [Fintype F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (P : BCS.InteractiveIOPProver params.d F (FRIBatchChal F params.d params.q t)) :

Batched FRI commit-phase game for binary 2-to-1 friBatchIOP.

Closed-form geometric commit-phase error (2 - 1 / 2 ^ m) * (2 ^ d / |F|) in the unique-decoding regime.

noncomputable def Cslib.Crypto.Protocols.FRI.friBatchJohnsonCommitError {F : Type} [Field F] [Fintype F] (params : FRIParams F) (mJ : ℕ) :

Closed-form geometric Siegel commit-phase error upper bound across round-0 batching and all m binary folding rounds of friBatchIOP with multiplicity parameter mJ.

noncomputable def Cslib.Crypto.Protocols.FRI.friBatchJohnsonEtaCommitError {F : Type} [Field F] [Fintype F] (params : FRIParams F) (η : ℝ) :

Closed-form geometric Siegel η-gap commit-phase error upper bound across round-0 batching and all m binary folding rounds of friBatchIOP.

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_eq_friSmoothBatchCommitGame {F : Type} [Field F] [Fintype F] (params : FRIParams F) (t B : ℕ) (stmt : FRIBatchStmt F params.d t) (P : BCS.InteractiveIOPProver params.d F (FRIBatchChal F params.d params.q t)) :
friBatchCommitGame params t B stmt P = friSmoothBatchCommitGame params.toSmooth t B stmt P

Exact equality between binary friBatchCommitGame and smooth friSmoothBatchCommitGame at params.toSmooth.

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitRound_escape_le_of_weightedLineEscapePerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {B : ℕ} {ε_commit : Fin params.m → ENNReal} (hesc : WeightedLineEscapePerRound params B ε_commit) (stmt : FRIBatchStmt F params.d t) (pref : List (BCS.OracleTable params.d F × FRIBatchChal F params.d params.q t)) {i : Fin params.m} (hlen : pref.length = ↑i + 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} ≤ ε_commit i

Conditional step (per-round batched folding escape bound assuming WeightedLineEscapePerRound) (corollary of friSmoothBatchCommitRound_escape_le_of_weightedCurveEscapePerRound).

theorem Cslib.Crypto.Protocols.FRI.sum_friBatchRoundEscape_eq {F : Type} [Field F] (params : FRIParams F) (ε_batch : ENNReal) (e : ℕ) (ε_commit : Fin params.m → ENNReal) :
∑ j : Fin (params.m + 2), friBatchRoundEscape params ε_batch e ε_commit j = friBatchSumError params ε_batch e ε_commit

Exact sum of friBatchRoundEscape across all m + 2 rounds of friBatchIOP.

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_le_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e : ℕ} {ε_batch : ENNReal} {ε_commit : Fin params.m → ENNReal} (hbatch : BatchRound0Escape params t e ε_batch) (hesc : WeightedLineEscapePerRound params (2 ^ params.d - e - 1) ε_commit) {stmt : FRIBatchStmt F params.d t} (hfar : stmt ∉ params.batchProximityLang t e) (P : BCS.InteractiveIOPProver params.d F (FRIBatchChal F params.d params.q t)) :
(friBatchCommitGame params t (2 ^ params.d - e - 1) stmt P) true ≤ ε_batch + ∑ i : Fin params.m, ε_commit i

Conditional step (batched FRI commit-phase union bound assuming BatchRound0Escape and WeightedLineEscapePerRound) (corollary of friSmoothBatchCommitGame_le_of_escape).

theorem Cslib.Crypto.Protocols.FRI.friBatchIOP_interactiveGame_le_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e : ℕ} {ε_batch : ENNReal} {ε_commit : Fin params.m → ENNReal} (hbatch : BatchRound0Escape params t e ε_batch) (hesc : WeightedLineEscapePerRound params (2 ^ params.d - e - 1) ε_commit) {stmt : FRIBatchStmt F params.d t} (hfar : stmt ∉ params.batchProximityLang t e) (P : BCS.InteractiveIOPProver params.d F (FRIBatchChal F params.d params.q t)) :
(BCS.iopInteractiveGame (friBatchIOP params t) stmt P) true ≤ friBatchSumError params ε_batch e ε_commit

Conditional step (summed interactive soundness for friBatchIOP assuming BatchRound0Escape and WeightedLineEscapePerRound) (corollary of friSmoothBatchIOP_interactiveGame_le_of_escape).