Documentation

CslibFrontier.Crypto.Protocols.FRI.BatchJohnsonSoundness.SmoothUnique

Smooth Unique-Decoding Batched FRI IOP Soundness and BCS-FRI ROM Bounds #

Unconditional commit-phase, interactive IOP, and adaptive two-channel BCS random-oracle soundness bounds for friSmoothBatchIOP in the unique-decoding regime ([BSCI+23], Section 8.2; [BSCS16]; [CY24]).

Main results #

References #

Exact identity between the integer-numerator ℝ≥0∞ unique-decoding smooth batched commit error ((2 * 2 ^ d - 2 ^ (d - totalLog)) : ℝ≥0∞) / |F| and ENNReal.ofReal (friSmoothBatchUniqueCommitError params).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchCommitGame_proximity_le_of_unique {F : Type} [Field F] [Fintype F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) {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 ≤ ↑(2 * 2 ^ params.d - 2 ^ (params.d - params.totalLog)) / ↑(Fintype.card F)

Unconditional unique-decoding smooth batched FRI commit-phase upper bound (batchProximityLang).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP_interactiveGame_proximity_le_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) {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 ≤ ↑(2 * 2 ^ params.d - 2 ^ (params.d - params.totalLog)) / ↑(Fintype.card F) + (↑(2 ^ params.d - e - 1) / 2 ^ params.d) ^ params.q

Unconditional unique-decoding interactive smooth batched FRI soundness upper bound (batchProximityLang).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchCommitGame_le_of_unique {F : Type} [Field F] [Fintype F] (params : FRISmoothParams F) (t : ℕ) {α : ℝ} {stmt : FRIBatchStmt F params.d t} (hagree_le : ∀ (D' : Finset (Fin (2 ^ params.d))), ∀ v₀ ∈ params.initialCode, ∀ (v : Fin t → BCS.OracleTable params.d F), (∀ (j : Fin t), v j ∈ params.initialCode) → (∀ s ∈ D', stmt.base s = v₀ s ∧ ∀ (j : Fin t), stmt.terms j s = v j s) → ↑D'.card / 2 ^ params.d ≤ α) (P : BCS.InteractiveIOPProver params.d F (FRIBatchChal F params.d params.q t)) :
have α₀ := max α ((1 + ↑(params.dim 0) / 2 ^ params.d) / 2); (friSmoothBatchCommitGame params t ⌊α₀ * 2 ^ params.d⌋₊ stmt P) true ≤ ENNReal.ofReal (friSmoothBatchUniqueCommitError params)

Unconditional real-α unique-decoding smooth batched FRI commit-phase upper bound (unique-decoding counterpart of [BSCI+23], Lemma 8.2 on printed pp. 38–39, bridged via friBatchFloorThreshold_bounds).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP_interactiveGame_le_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {α : ℝ} (hα : (1 + ↑(params.dim 0) / 2 ^ params.d) / 2 ≤ α) {stmt : FRIBatchStmt F params.d t} (hfar : stmt ∉ params.batchCorrAgreeLang t α) (P : BCS.InteractiveIOPProver params.d F (FRIBatchChal F params.d params.q t)) :

Unconditional real-α unique-decoding interactive smooth batched FRI soundness upper bound (unique-decoding counterpart of [BSCI+23], Theorem 8.3 on printed pp. 39–40).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchIOP_sound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {α : ℝ} (hα : (1 + ↑(params.dim 0) / 2 ^ params.d) / 2 ≤ α) (stmt : FRIBatchStmt F params.d t) (P : BCS.InteractiveIOPProver params.d F (FRIBatchChal F params.d params.q t)) (hacc : ENNReal.ofReal (friSmoothBatchUniqueCommitError params + α ^ params.q) < (BCS.iopInteractiveGame (friSmoothBatchIOP params t) stmt P) true) :
stmt ∈ params.batchCorrAgreeLang t α

Contrapositive real-α unique-decoding interactive smooth batched FRI soundness.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_romSoundness_bound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) {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 (2 ^ params.d / ↑(Fintype.card F)) e (2 ^ params.d - 2 ^ (params.d - params.firstStepLog)) + ↑(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 ^ σ))

Unconditional adaptive two-channel smooth batched BCS-FRI ROM soundness in the unique-decoding regime ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_romSoundness_bound_of_prover_verifier_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) {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 (2 ^ params.d / ↑(Fintype.card F)) e (2 ^ params.d - 2 ^ (params.d - params.firstStepLog)) + ↑(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 ^ σ))

Unconditional adaptive two-channel smooth batched BCS-FRI ROM soundness with separate prover/verifier Merkle budgets in the unique-decoding regime ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friSmoothBatchBCS_corrAgree_romSoundness_bound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) (t : ℕ) {α : ℝ} (hα : (1 + ↑(params.dim 0) / 2 ^ params.d) / 2 ≤ α) (hα_le : α ≤ 1) {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.batchCorrAgreeLang t α) P) Q_MT) :
(BCS.bcsSoundnessGame (friSmoothBatchIOP params t) encSym (params.batchCorrAgreeLang t α) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (max (2 ^ params.d / ↑(Fintype.card F)) (max (↑(2 ^ params.d - 2 ^ (params.d - params.firstStepLog)) / ↑(Fintype.card F)) (ENNReal.ofReal (α ^ params.q))) + ↑(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 ^ σ))

Unconditional adaptive two-channel smooth batched BCS-FRI ROM soundness on batchCorrAgreeLang in the unique-decoding regime ((1 + ρ) / 2 ≤ α ≤ 1; [BSCS16]; [CY24]).