Documentation

CslibFrontier.Crypto.Protocols.FRI.BatchJohnsonSoundness.SmoothBridge

Conditional Smooth Summed Batched FRI IOP Bridge and Commit-Error Definitions #

Defines the per-round escape vector (friSmoothBatchRoundEscape), summed interactive error (friSmoothBatchSumError), post-commit query predicate (friSmoothBatchFinalPasses), interactive commit-phase game (friSmoothBatchCommitGame), and closed-form smooth commit-phase error formulas (friSmoothBatchUniqueCommitError, friSmoothBatchJohnsonCommitError, friSmoothBatchJohnsonEtaCommitError), and proves conditional commit-phase and interactive IOP soundness bounds for friSmoothBatchIOP from SmoothBatchRound0Escape and WeightedCurveEscapePerRound ([BSCI+23], Section 8.2 and Section 8.2.1).

Main definitions #

Main results #

References #

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchCommitRound_escape_le_of_weightedCurveEscapePerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {B : ℕ} {ε_commit : Fin params.m → ENNReal} (hesc : WeightedCurveEscapePerRound 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 : 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} ≤ ε_commit i

Conditional step (per-round smooth batched folding escape bound assuming WeightedCurveEscapePerRound): at folding round i : Fin params.m (pref.length = i.val + 1) from a prefix doomed at threshold B, the escape probability over a uniform FRIBatchChal is at most ε_commit i.

noncomputable def Cslib.Crypto.Protocols.FRI.friSmoothBatchRoundEscape {F : Type} [Field F] (params : FRISmoothParams F) (ε_batch : ENNReal) (e : ℕ) (ε_commit : Fin params.m → ENNReal) :
Fin (params.m + 2) → ENNReal

Per-round escape budget vector for (params.m + 2)-round friSmoothBatchIOP: ε_batch in round 0, ε_commit i in folding rounds 1, …, m, and ((2 ^ d - e - 1) / 2 ^ d) ^ q in the final query round m + 1.

noncomputable def Cslib.Crypto.Protocols.FRI.friSmoothBatchSumError {F : Type} [Field F] (params : FRISmoothParams F) (ε_batch : ENNReal) (e : ℕ) (ε_commit : Fin params.m → ENNReal) :

Summed interactive smooth batched FRI soundness error ε_batch + (∑ i : Fin m, ε_commit i) + ((2 ^ d - e - 1) / 2 ^ d) ^ q.

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

Exact sum of friSmoothBatchRoundEscape across all m + 2 rounds of friSmoothBatchIOP.

def Cslib.Crypto.Protocols.FRI.friSmoothBatchFinalPasses {F : Type} [Field F] (params : FRISmoothParams 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 smooth batched commit prefix pref and final committed oracle πFinal.

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

Smooth batched FRI commit-phase game (interactive commit-phase setting of [BSCI+23], Lemma 8.2 on printed pp. 38–39 and Section 8.2.1 on printed pp. 41–43): runs m + 1 interactive commit rounds (round 0 batching plus m smooth folding rounds) and samples πFinal ← P pref, returning true iff strictly more than B starting positions in Fin (2 ^ d) pass friSmoothBatchFinalPasses.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchCommitGame_le_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} {ε_batch : ENNReal} {ε_commit : Fin params.m → ENNReal} (hbatch : SmoothBatchRound0Escape params t e ε_batch) (hesc : WeightedCurveEscapePerRound 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)) :
(friSmoothBatchCommitGame params t (2 ^ params.d - e - 1) stmt P) true ≤ ε_batch + ∑ i : Fin params.m, ε_commit i

Conditional step (smooth batched FRI commit-phase union bound assuming SmoothBatchRound0Escape and WeightedCurveEscapePerRound).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP_interactiveGame_le_of_escape {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} {ε_batch : ENNReal} {ε_commit : Fin params.m → ENNReal} (hbatch : SmoothBatchRound0Escape params t e ε_batch) (hesc : WeightedCurveEscapePerRound 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 (friSmoothBatchIOP params t) stmt P) true ≤ friSmoothBatchSumError params ε_batch e ε_commit

Conditional step (summed interactive soundness for friSmoothBatchIOP assuming SmoothBatchRound0Escape and WeightedCurveEscapePerRound).

Closed-form telescoping commit-phase error (2 - 1 / 2 ^ totalLog) * (2 ^ d / |F|) across round-0 batching (2 ^ d / |F|) and all m smooth folding rounds ((1 - 1 / 2 ^ totalLog) * (2 ^ d / |F|)) in the unique-decoding regime (< 2 * 2 ^ d / |F| independently of m, per-round arities l⁽ⁱ⁾, and t).

Closed-form telescoping Siegel commit-phase error upper bound across round-0 batching and all m smooth folding rounds of friSmoothBatchIOP with multiplicity parameter mJ: (2 - 1 / 2 ^ totalLog) * (1800 * (mJ + 1) ^ 6 * (2 ^ d) ^ 2 / ((dim 0 / 2 ^ d) * |F|)) (bounded independently of m, per-round arities l⁽ⁱ⁾, and t; an original explicit Siegel finite bound).

Closed-form telescoping Siegel η-gap commit-phase error upper bound across round-0 batching and all m smooth folding rounds of friSmoothBatchIOP: (2 - 1 / 2 ^ totalLog) * (115200 * (2 ^ d) ^ 2 / ((dim 0 / 2 ^ d) * η ^ 6 * |F|)) (using η directly rather than min(η, √ρ / 20) in Eq. (1.3)).