Documentation

CslibFrontier.Crypto.Protocols.FRI.Soundness.SmoothBCS

Smooth BCS-FRI Random-Oracle Soundness Composition #

Composes friSmoothIOP_rbrSound and the conditional smooth round-by-round escape bounds with the two-channel BCS random-oracle compiler bounds (bcsROMSoundness_bound, bcsROMSoundness_bound_of_prover_verifier) for friSmoothIOP.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_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) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (BCS.OracleTable params.d F) (FRIChal F params.d params.q)) (BCS.OracleTable params.d F × BCS.BCSProof (params.m + 1) F)} {t_FS Q_MT : ℕ} (hFS : OracleComp.IsCostBounded BCS.bcsFSCost P t_FS) (hMT : OracleComp.IsCostBounded BCS.bcsMTCost (BCS.bcsSoundnessProg (friSmoothIOP params) encSym (params.proximityLang e) P) Q_MT) :
(BCS.bcsSoundnessGame (friSmoothIOP params) encSym (params.proximityLang e) P σ) true ≤ ↑(t_FS + (params.m + 1)) * (friSmoothSupRBRError params e ε_commit + ↑(t_FS + (params.m + 1)) * (1 / ↑(Fintype.card (FRIChal F params.d params.q)))) + ↑Q_MT * (↑(3 * Q_MT + (params.m + 1) * (t_FS + (params.m + 1))) * (1 / 2 ^ σ))

Conditional step (adaptive two-channel smooth BCS-FRI ROM soundness assuming WeightedCurveEscapePerRound): composes friSmoothIOP_rbrSound and friSmoothRBREscape_of_weightedCurveEscapePerRound (friSmoothSupRBRError) with Cslib.Crypto.Protocols.BCS.bcsROMSoundness_bound ([BSCS16], [BSCI+23]); discharging WeightedCurveEscapePerRound is left to the caller.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_of_prover_verifier_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) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (BCS.OracleTable params.d F) (FRIChal F params.d params.q)) (BCS.OracleTable params.d F × BCS.BCSProof (params.m + 1) 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 : BCS.OracleTable params.d F) (prf : BCS.BCSProof (params.m + 1) F), (x, prf) ∈ P.support → ∀ op ∈ prf.openings, op.path.length ≤ L_path) :
(BCS.bcsSoundnessGame (friSmoothIOP params) encSym (params.proximityLang e) P σ) true ≤ ↑(t_FS + (params.m + 1)) * (friSmoothSupRBRError params e ε_commit + ↑(t_FS + (params.m + 1)) * (1 / ↑(Fintype.card (FRIChal F params.d params.q)))) + ↑(t_MT + params.proofOracleQueries * (L_path + 1)) * (↑(3 * (t_MT + params.proofOracleQueries * (L_path + 1)) + (params.m + 1) * (t_FS + (params.m + 1))) * (1 / 2 ^ σ))

Conditional step (adaptive two-channel smooth BCS-FRI ROM soundness with separate prover/verifier Merkle budgets assuming WeightedCurveEscapePerRound): bounds verifier Merkle cost via isCostBounded_bcsMTCost_friSmoothVerifyROM (q_V = params.proofOracleQueries * (L_path + 1)) and composes with Cslib.Crypto.Protocols.BCS.bcsROMSoundness_bound_of_prover_verifier; discharging WeightedCurveEscapePerRound is left to the caller.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_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) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (BCS.OracleTable params.d F) (FRIChal F params.d params.q)) (BCS.OracleTable params.d F × BCS.BCSProof (params.m + 1) F)} {t_FS Q_MT : ℕ} (hFS : OracleComp.IsCostBounded BCS.bcsFSCost P t_FS) (hMT : OracleComp.IsCostBounded BCS.bcsMTCost (BCS.bcsSoundnessProg (friSmoothIOP params) encSym (params.proximityLang e) P) Q_MT) :
(BCS.bcsSoundnessGame (friSmoothIOP params) encSym (params.proximityLang e) P σ) true ≤ ↑(t_FS + (params.m + 1)) * (friSmoothRBRError params e B_commit + ↑(t_FS + (params.m + 1)) * (1 / ↑(Fintype.card (FRIChal F params.d params.q)))) + ↑Q_MT * (↑(3 * Q_MT + (params.m + 1) * (t_FS + (params.m + 1))) * (1 / 2 ^ σ))

Conditional step (adaptive two-channel smooth BCS-FRI ROM soundness assuming WeightedCurveGapBound): discharging WeightedCurveGapBound is left to the caller.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_of_prover_verifier_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) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (BCS.OracleTable params.d F) (FRIChal F params.d params.q)) (BCS.OracleTable params.d F × BCS.BCSProof (params.m + 1) 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 : BCS.OracleTable params.d F) (prf : BCS.BCSProof (params.m + 1) F), (x, prf) ∈ P.support → ∀ op ∈ prf.openings, op.path.length ≤ L_path) :
(BCS.bcsSoundnessGame (friSmoothIOP params) encSym (params.proximityLang e) P σ) true ≤ ↑(t_FS + (params.m + 1)) * (friSmoothRBRError params e B_commit + ↑(t_FS + (params.m + 1)) * (1 / ↑(Fintype.card (FRIChal F params.d params.q)))) + ↑(t_MT + params.proofOracleQueries * (L_path + 1)) * (↑(3 * (t_MT + params.proofOracleQueries * (L_path + 1)) + (params.m + 1) * (t_FS + (params.m + 1))) * (1 / 2 ^ σ))

Conditional step (adaptive two-channel smooth BCS-FRI ROM soundness with separate prover/verifier Merkle budgets assuming WeightedCurveGapBound): discharging WeightedCurveGapBound is left to the caller.

theorem Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_of_uniqueCurveGap {F : Type} [Field F] [Fintype F] [DecidableEq F] (params : FRISmoothParams F) {e : ℕ} (huniq : 2 * e + params.dim 0 ≤ 2 ^ params.d) (hgap : UniqueCurveGapHypothesis params e) {encSym : F → List Bool} {decSym : List Bool → F} (hdec : Function.LeftInverse decSym encSym) (σ : ℕ) {P : OracleComp (BCS.BCSROMSpec (BCS.OracleTable params.d F) (FRIChal F params.d params.q)) (BCS.OracleTable params.d F × BCS.BCSProof (params.m + 1) F)} {t_FS Q_MT : ℕ} (hFS : OracleComp.IsCostBounded BCS.bcsFSCost P t_FS) (hMT : OracleComp.IsCostBounded BCS.bcsMTCost (BCS.bcsSoundnessProg (friSmoothIOP params) encSym (params.proximityLang e) P) Q_MT) :
(BCS.bcsSoundnessGame (friSmoothIOP params) encSym (params.proximityLang e) P σ) true ≤ ↑(t_FS + (params.m + 1)) * (friSmoothRBRError params e (2 ^ params.d - 2 ^ (params.d - params.firstStepLog)) + ↑(t_FS + (params.m + 1)) * (1 / ↑(Fintype.card (FRIChal F params.d params.q)))) + ↑Q_MT * (↑(3 * Q_MT + (params.m + 1) * (t_FS + (params.m + 1))) * (1 / 2 ^ σ))

Conditional step (unique-decoding smooth BCS-FRI ROM soundness assuming UniqueCurveGapHypothesis): combines weightedCurveGapBound_of_uniqueCurveGap (B_commit = 2 ^ d - 2 ^ (d - firstStepLog)) with friSmoothBCS_romSoundness_bound_of_weightedCurveGap; discharging UniqueCurveGapHypothesis is left to the caller.