Documentation

CslibFrontier.Crypto.Protocols.FRI.Soundness.SmoothInteractive

Smooth FRI Per-Round Escape Aggregation and Summed Interactive Soundness #

Combines friSmoothIOP_rbrSound, friSmoothQueryRound_escape_le, and friSmoothCommitRound_escape_le_of_weightedCurveEscapePerRound to bound uniform (sup) round-by-round escape, friSmoothCommitGame, and full iopInteractiveGame (friSmoothIOP params).

theorem Cslib.Crypto.Protocols.FRI.friSmoothPerRoundEscape_of_weightedCurveEscapePerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e : ℕ} {ε_commit : Fin params.m → ENNReal} (hesc : WeightedCurveEscapePerRound params (2 ^ params.d - e - 1) ε_commit) (stmt : BCS.OracleTable params.d F) :
stmt ∉ params.proximityLang e → ∀ (j : Fin (params.m + 1)) (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (π : BCS.OracleTable params.d F), pref.length = ↑j → friSmoothDoomed params (2 ^ params.d - e - 1) stmt pref → (Probability.PMF.uniformOfFintype (FRIChal F params.d params.q)).toOuterMeasure {c : FRIChal F params.d params.q | ¬friSmoothGoodStep params (2 ^ params.d - e - 1) stmt pref π c} ≤ friSmoothRoundEscape params e ε_commit j

Conditional step (indexed smooth per-round escape bound assuming WeightedCurveEscapePerRound): discharging WeightedCurveEscapePerRound is left to the caller.

theorem Cslib.Crypto.Protocols.FRI.friSmoothRBREscape_of_weightedCurveEscapePerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e : ℕ} {ε_commit : Fin params.m → ENNReal} (hesc : WeightedCurveEscapePerRound params (2 ^ params.d - e - 1) ε_commit) (stmt : BCS.OracleTable params.d F) :
stmt ∉ params.proximityLang e → ∀ (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (π : BCS.OracleTable params.d F), friSmoothDoomed params (2 ^ params.d - e - 1) stmt pref → (Probability.PMF.uniformOfFintype (FRIChal F params.d params.q)).toOuterMeasure {c : FRIChal F params.d params.q | ¬friSmoothGoodStep params (2 ^ params.d - e - 1) stmt pref π c} ≤ friSmoothSupRBRError params e ε_commit

Conditional step (all-prefix smooth sup RBR escape bound assuming WeightedCurveEscapePerRound): discharging WeightedCurveEscapePerRound is left to the caller.

theorem Cslib.Crypto.Protocols.FRI.friSmoothRBREscape_of_weightedCurveGap {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e B_commit : ℕ} (hgap : WeightedCurveGapBound params (2 ^ params.d - e - 1) B_commit) (stmt : BCS.OracleTable params.d F) :
stmt ∉ params.proximityLang e → ∀ (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (π : BCS.OracleTable params.d F), friSmoothDoomed params (2 ^ params.d - e - 1) stmt pref → (Probability.PMF.uniformOfFintype (FRIChal F params.d params.q)).toOuterMeasure {c : FRIChal F params.d params.q | ¬friSmoothGoodStep params (2 ^ params.d - e - 1) stmt pref π c} ≤ friSmoothRBRError params e B_commit

Conditional step (uniform smooth round-by-round escape bound assuming WeightedCurveGapBound): discharging WeightedCurveGapBound is left to the caller.

theorem Cslib.Crypto.Protocols.FRI.friSmoothCommitGame_le_of_weightedCurveEscapePerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e : ℕ} {ε_commit : Fin params.m → ENNReal} (hesc : WeightedCurveEscapePerRound params (2 ^ params.d - e - 1) ε_commit) {stmt : BCS.OracleTable params.d F} (hfar : stmt ∉ params.proximityLang e) (P : BCS.InteractiveIOPProver params.d F (FRIChal F params.d params.q)) :
(friSmoothCommitGame params (2 ^ params.d - e - 1) stmt P) true ≤ ∑ i : Fin params.m, ε_commit i

Conditional step (single-word smooth FRI commit-phase union bound assuming WeightedCurveEscapePerRound): for stmt ∉ params.proximityLang e, friSmoothCommitGame exceeds agreement B = 2 ^ d - e - 1 with probability at most ∑ i : Fin params.m, ε_commit i.

theorem Cslib.Crypto.Protocols.FRI.friSmoothCommitGame_le_of_weightedCurveGapPerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e : ℕ} {B_commit : Fin params.m → ℕ} (hgap : WeightedCurveGapPerRound params (2 ^ params.d - e - 1) B_commit) {stmt : BCS.OracleTable params.d F} (hfar : stmt ∉ params.proximityLang e) (P : BCS.InteractiveIOPProver params.d F (FRIChal F params.d params.q)) :
(friSmoothCommitGame params (2 ^ params.d - e - 1) stmt P) true ≤ ∑ i : Fin params.m, ↑(B_commit i) / ↑(Fintype.card F)

Conditional step (single-word smooth FRI commit-phase union bound assuming WeightedCurveGapPerRound): specializes friSmoothCommitGame_le_of_weightedCurveEscapePerRound to integer bad-scalar budgets B_commit : Fin params.m → ℕ.

theorem Cslib.Crypto.Protocols.FRI.friSmoothIOP_interactiveGame_le_of_weightedCurveEscapePerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e : ℕ} {ε_commit : Fin params.m → ENNReal} (hesc : WeightedCurveEscapePerRound params (2 ^ params.d - e - 1) ε_commit) {stmt : BCS.OracleTable params.d F} (hfar : stmt ∉ params.proximityLang e) (P : BCS.InteractiveIOPProver params.d F (FRIChal F params.d params.q)) :
(BCS.iopInteractiveGame (friSmoothIOP params) stmt P) true ≤ friSmoothSumError params e ε_commit

Conditional step (summed interactive soundness for single-word friSmoothIOP assuming WeightedCurveEscapePerRound): for stmt ∉ params.proximityLang e and any adaptive prover P, iopInteractiveGame (friSmoothIOP params) stmt P true ≤ friSmoothSumError params e ε_commit.

theorem Cslib.Crypto.Protocols.FRI.friSmoothIOP_interactiveGame_le_of_weightedCurveGapPerRound {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e : ℕ} {B_commit : Fin params.m → ℕ} (hgap : WeightedCurveGapPerRound params (2 ^ params.d - e - 1) B_commit) {stmt : BCS.OracleTable params.d F} (hfar : stmt ∉ params.proximityLang e) (P : BCS.InteractiveIOPProver params.d F (FRIChal F params.d params.q)) :
(BCS.iopInteractiveGame (friSmoothIOP params) stmt P) true ≤ friSmoothSumError params e fun (i : Fin params.m) => ↑(B_commit i) / ↑(Fintype.card F)

Conditional step (summed interactive soundness for single-word friSmoothIOP assuming WeightedCurveGapPerRound): specializes friSmoothIOP_interactiveGame_le_of_weightedCurveEscapePerRound to integer bad-scalar budgets B_commit : Fin params.m → ℕ.