Documentation

CslibFrontier.Crypto.Protocols.FRI.BatchJohnsonSoundness.BinaryJohnsonIOP

Binary 2-to-1 Closed-Form Johnson & η-Gap Batched FRI Commit-Phase and Interactive IOP Bounds #

Binary 2-to-1 corollaries of the closed-form Johnson and η-gap commit-phase and interactive IOP soundness bounds (and contrapositives) for friBatchIOP ([BSCI+23], Lemma 8.2 and Theorem 8.3).

Main results #

References #

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_proximity_le_of_johnson {F : Type} [Field F] [Fintype F] (params : FRIParams F) (t : ℕ) {e mJ : ℕ} (hmJ : 1 ≤ mJ) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - √(↑(params.dim 0) / 2 ^ params.d) / (2 * ↑mJ)) {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 ≤ ENNReal.ofReal (friBatchJohnsonCommitError params mJ)

Original explicit-constant Johnson batched FRI commit-phase upper bound (batchProximityLang) (corollary of friSmoothBatchCommitGame_proximity_le_of_johnson).

theorem Cslib.Crypto.Protocols.FRI.friBatchIOP_interactiveGame_proximity_le_of_johnson {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e mJ : ℕ} (hmJ : 1 ≤ mJ) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(params.dim 0) / 2 ^ params.d) - √(↑(params.dim 0) / 2 ^ params.d) / (2 * ↑mJ)) {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 ≤ ENNReal.ofReal (friBatchJohnsonCommitError params mJ) + (↑(2 ^ params.d - e - 1) / 2 ^ params.d) ^ params.q

Original explicit-constant Johnson interactive batched FRI soundness upper bound (batchProximityLang) (corollary of friSmoothBatchIOP_interactiveGame_proximity_le_of_johnson).

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_proximity_le_of_johnson_eta {F : Type} [Field F] [Fintype F] (params : FRIParams F) (t : ℕ) {e : ℕ} {η : ℝ} (hη : 0 < η) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(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 ≤ ENNReal.ofReal (friBatchJohnsonEtaCommitError params η)

Original explicit-constant η-gap Johnson batched FRI commit-phase upper bound (batchProximityLang) (corollary of friSmoothBatchCommitGame_proximity_le_of_johnson_eta).

theorem Cslib.Crypto.Protocols.FRI.friBatchIOP_interactiveGame_proximity_le_of_johnson_eta {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRIParams F) (t : ℕ) {e : ℕ} {η : ℝ} (hη : 0 < η) (he : ↑e / 2 ^ params.d ≤ 1 - √(↑(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 ≤ ENNReal.ofReal (friBatchJohnsonEtaCommitError params η) + (↑(2 ^ params.d - e - 1) / 2 ^ params.d) ^ params.q

Original explicit-constant η-gap Johnson interactive batched FRI soundness upper bound (batchProximityLang) (corollary of friSmoothBatchIOP_interactiveGame_proximity_le_of_johnson_eta).

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_le_of_johnson {F : Type} [Field F] [Fintype F] (params : FRIParams F) (t : ℕ) {mJ : ℕ} (hmJ : 1 ≤ mJ) {α : ℝ} {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 α (√(↑(params.dim 0) / 2 ^ params.d) * (1 + 1 / (2 * ↑mJ))); (friBatchCommitGame params t ⌊α₀ * 2 ^ params.d⌋₊ stmt P) true ≤ ENNReal.ofReal (friBatchJohnsonCommitError params mJ)

Original explicit-constant real-α Johnson batched FRI commit-phase upper bound (corollary of friSmoothBatchCommitGame_le_of_johnson).

theorem Cslib.Crypto.Protocols.FRI.friBatchCommitGame_le_of_johnson_eta {F : Type} [Field F] [Fintype F] (params : FRIParams F) (t : ℕ) {η α : ℝ} (hη : 0 < η) {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 α (√(↑(params.dim 0) / 2 ^ params.d) + η); (friBatchCommitGame params t ⌊α₀ * 2 ^ params.d⌋₊ stmt P) true ≤ ENNReal.ofReal (friBatchJohnsonEtaCommitError params η)

Original explicit-constant real-α η-gap batched FRI commit-phase upper bound (corollary of friSmoothBatchCommitGame_le_of_johnson_eta).

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

Original explicit-constant real-α Johnson interactive batched FRI soundness upper bound (corollary of friSmoothBatchIOP_interactiveGame_le_of_johnson).

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

Contrapositive original explicit-constant real-α Johnson interactive batched FRI soundness (corollary of friSmoothBatchIOP_sound_of_johnson).

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

Original explicit-constant real-α η-gap interactive batched FRI soundness upper bound (corollary of friSmoothBatchIOP_interactiveGame_le_of_johnson_eta).

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

Contrapositive original explicit-constant real-α η-gap interactive batched FRI soundness (corollary of friSmoothBatchIOP_sound_of_johnson_eta).