Documentation

CslibFrontier.Crypto.Protocols.FRI.BatchJohnsonSoundness.BinaryUnique

Binary 2-to-1 Unique-Decoding Batched FRI IOP Soundness and BCS-FRI ROM Bounds #

Binary 2-to-1 corollaries of the unique-decoding batched FRI commit-phase, interactive IOP, and adaptive two-channel BCS random-oracle soundness bounds ([BSCI+23], Section 8.2; [BSCS16]; [CY24]).

Main results #

References #

theorem Cslib.Crypto.Protocols.FRI.friBatchUniqueCommitError_ennreal_eq {F : Type} [Field F] [Fintype F] (params : FRIParams F) :
↑(2 * 2 ^ params.d - 2 ^ (params.d - params.m)) / ↑(Fintype.card F) = ENNReal.ofReal (friBatchUniqueCommitError params)

Exact identity between the integer-numerator ℝ≥0∞ unique-decoding batched commit error and ENNReal.ofReal (friBatchUniqueCommitError params).

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_proximity_le_of_unique {F : Type} [Field F] [Fintype F] (params : FRIParams 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)) :
(friBatchCommitGame params t (2 ^ params.d - e - 1) stmt P) true ≤ ↑(2 * 2 ^ params.d - 2 ^ (params.d - params.m)) / ↑(Fintype.card F)

Unconditional unique-decoding batched FRI commit-phase upper bound (batchProximityLang) (corollary of friSmoothBatchCommitGame_proximity_le_of_unique).

theorem Cslib.Crypto.Protocols.FRI.friBatchIOP_interactiveGame_proximity_le_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams 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 (friBatchIOP params t) stmt P) true ≤ ↑(2 * 2 ^ params.d - 2 ^ (params.d - params.m)) / ↑(Fintype.card F) + (↑(2 ^ params.d - e - 1) / 2 ^ params.d) ^ params.q

Unconditional unique-decoding interactive batched FRI soundness upper bound (batchProximityLang) (corollary of friSmoothBatchIOP_interactiveGame_proximity_le_of_unique).

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_le_of_unique {F : Type} [Field F] [Fintype F] (params : FRIParams 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); (friBatchCommitGame params t ⌊α₀ * 2 ^ params.d⌋₊ stmt P) true ≤ ENNReal.ofReal (friBatchUniqueCommitError params)

Unconditional real-α unique-decoding batched FRI commit-phase upper bound (corollary of friSmoothBatchCommitGame_le_of_unique).

theorem Cslib.Crypto.Protocols.FRI.friBatchIOP_interactiveGame_le_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams 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 batched FRI soundness upper bound (corollary of friSmoothBatchIOP_interactiveGame_le_of_unique).

theorem Cslib.Crypto.Protocols.FRI.friBatchIOP_sound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams 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 (friBatchUniqueCommitError params + α ^ params.q) < (BCS.iopInteractiveGame (friBatchIOP params t) stmt P) true) :
stmt ∈ params.batchCorrAgreeLang t α

Contrapositive real-α unique-decoding interactive batched FRI soundness (corollary of friSmoothBatchIOP_sound_of_unique).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams 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 (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 (2 ^ params.d / ↑(Fintype.card F)) e (2 ^ (params.d - 1)) + ↑(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 batched BCS-FRI ROM soundness in the unique-decoding regime ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_of_prover_verifier_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams 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 (friBatchIOP params t) encSym (params.batchProximityLang t e) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (friBatchRBRError params (2 ^ params.d / ↑(Fintype.card F)) e (2 ^ (params.d - 1)) + ↑(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 batched BCS-FRI ROM soundness with separate prover/verifier Merkle budgets in the unique-decoding regime ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_corrAgree_romSoundness_bound_of_unique {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams 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 (friBatchIOP params t) encSym (params.batchCorrAgreeLang t α) P) Q_MT) :
(BCS.bcsSoundnessGame (friBatchIOP params t) encSym (params.batchCorrAgreeLang t α) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (max (2 ^ params.d / ↑(Fintype.card F)) (max (↑(2 ^ (params.d - 1)) / ↑(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 batched BCS-FRI ROM soundness on batchCorrAgreeLang in the unique-decoding regime (corollary of friSmoothBatchBCS_corrAgree_romSoundness_bound_of_unique).