Documentation

CslibFrontier.Crypto.Protocols.FRI.BatchJohnsonSoundness.BinaryJohnsonROM

Binary 2-to-1 Closed-Form Johnson & η-Gap Batched BCS-FRI Random-Oracle Soundness Bounds #

Adaptive two-channel BCS random-oracle soundness bounds for binary 2-to-1 friBatchIOP in the closed-form Johnson and η-gap regimes, on both batchProximityLang and batchCorrAgreeLang ([BSCI+23]; [BSCS16]; [CY24]).

Main results #

References #

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_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)) {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 (ENNReal.ofReal (1800 * (↑mJ + 1) ^ 6 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * ↑(Fintype.card F)))) e (friJohnsonCommitBound params mJ) + ↑(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 ^ σ))

Original explicit-constant Johnson adaptive two-channel batched BCS-FRI ROM soundness ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_of_prover_verifier_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)) {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 (ENNReal.ofReal (1800 * (↑mJ + 1) ^ 6 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * ↑(Fintype.card F)))) e (friJohnsonCommitBound params mJ) + ↑(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 ^ σ))

Original explicit-constant Johnson adaptive two-channel batched BCS-FRI ROM soundness with separate prover/verifier Merkle budgets ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_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) - η) {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 (ENNReal.ofReal (115200 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * η ^ 6 * ↑(Fintype.card F)))) e (friJohnsonEtaCommitBound params η) + ↑(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 ^ σ))

Original explicit-constant η-gap Johnson adaptive two-channel batched BCS-FRI ROM soundness ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_romSoundness_bound_of_prover_verifier_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) - η) {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 (ENNReal.ofReal (115200 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * η ^ 6 * ↑(Fintype.card F)))) e (friJohnsonEtaCommitBound params η) + ↑(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 ^ σ))

Original explicit-constant η-gap Johnson adaptive two-channel batched BCS-FRI ROM soundness with separate prover/verifier Merkle budgets ([BSCS16]; [CY24]).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_corrAgree_romSoundness_bound_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)) ≤ α) (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 (ENNReal.ofReal (1800 * (↑mJ + 1) ^ 6 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * ↑(Fintype.card F)))) (max (↑(friJohnsonCommitBound params mJ) / ↑(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 ^ σ))

Original explicit-constant real-α Johnson adaptive two-channel batched BCS-FRI ROM soundness on batchCorrAgreeLang (corollary of friSmoothBatchBCS_corrAgree_romSoundness_bound_of_johnson).

theorem Cslib.Crypto.Protocols.FRI.friBatchBCS_corrAgree_romSoundness_bound_of_prover_verifier_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)) ≤ α) (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_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.batchCorrAgreeLang t α) P σ) true ≤ ↑(t_FS + (params.m + 2)) * (max (ENNReal.ofReal (1800 * (↑mJ + 1) ^ 6 * (2 ^ params.d) ^ 2 / (↑(params.dim 0) / 2 ^ params.d * ↑(Fintype.card F)))) (max (↑(friJohnsonCommitBound params mJ) / ↑(Fintype.card F)) (ENNReal.ofReal (α ^ params.q))) + ↑(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 ^ σ))

Original explicit-constant real-α Johnson adaptive two-channel batched BCS-FRI ROM soundness with separate prover/verifier Merkle budgets on batchCorrAgreeLang (corollary of friSmoothBatchBCS_corrAgree_romSoundness_bound_of_prover_verifier_of_johnson).