Documentation

CslibFrontier.Crypto.Protocols.FRI.Soundness.Counting

Smooth FRI Fiber-Weight Bounds and Prefix Starting-Point Counting #

Proves pointwise and total bounds on friSmoothPreWeight and friSmoothNextWeight, filtered agreement monotonicity (sum_agree_friSmoothOracleFilterWeight_le), and the exact per-round starting-point counting identity card_filter_friSmoothPrefixPasses_eq.

Smooth Fiber-Weight Bounds #

theorem Cslib.Crypto.Protocols.FRI.friSmoothPreWeight_le {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (stmt : BCS.OracleTable params.d F) (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (i : ℕ) (hi : i ≤ params.m) (j : Fin (params.domainSize i)) :
friSmoothPreWeight params stmt pref i hi j ≤ 2 ^ params.cumLog i

Pointwise bound on smooth pre-filter weights: friSmoothPreWeight ... i j ≤ 2 ^ cumLog i.

theorem Cslib.Crypto.Protocols.FRI.friSmoothNextWeight_le {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (stmt : BCS.OracleTable params.d F) (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (i : ℕ) (hi : i < params.m) (π : BCS.OracleTable params.d F) (j : Fin (params.domainSize (i + 1))) :
friSmoothNextWeight params stmt pref i hi π j ≤ 2 ^ params.cumLog (i + 1)

Pointwise bound on smooth pushed weights: friSmoothNextWeight ... i π j ≤ 2 ^ cumLog (i + 1).

theorem Cslib.Crypto.Protocols.FRI.sum_friSmoothPreWeight_le {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (stmt : BCS.OracleTable params.d F) (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (i : ℕ) (hi : i ≤ params.m) :
∑ j : Fin (params.domainSize i), friSmoothPreWeight params stmt pref i hi j ≤ 2 ^ params.d

Total-weight bound on smooth pre-filter weights: ∑ j, friSmoothPreWeight ... i j ≤ 2 ^ d.

theorem Cslib.Crypto.Protocols.FRI.sum_friSmoothNextWeight_le {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (stmt : BCS.OracleTable params.d F) (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (i : ℕ) (hi : i < params.m) (π : BCS.OracleTable params.d F) :
∑ j : Fin (params.domainSize (i + 1)), friSmoothNextWeight params stmt pref i hi π j ≤ 2 ^ params.d

Total-weight bound on smooth pushed weights: ∑ j, friSmoothNextWeight ... i π j ≤ 2 ^ d.

theorem Cslib.Crypto.Protocols.FRI.sum_agree_friSmoothOracleFilterWeight_le {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (stmt : BCS.OracleTable params.d F) (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (i : ℕ) (hi : i ≤ params.m) (π : BCS.OracleTable params.d F) (c : Fin (params.domainSize i) → F) :
∑ j : Fin (2 ^ (params.d - params.cumLog i)) with restrictOracle π j = c j, friSmoothOracleFilterWeight params stmt pref i hi π j ≤ ∑ j : Fin (params.domainSize i) with friSmoothTargetWord params stmt pref i hi j = c j, friSmoothPreWeight params stmt pref i hi j

Monotonicity of filtered weighted agreement for smooth FRI: replacing friSmoothTargetWord and friSmoothPreWeight by an arbitrary prover oracle π and its filtered weight friSmoothOracleFilterWeight cannot increase weighted agreement with any word c.

Smooth Prefix Starting-Point Counting #

theorem Cslib.Crypto.Protocols.FRI.card_filter_friSmoothPrefixPasses_eq {F : Type} [Field F] [DecidableEq F] (params : FRISmoothParams F) (stmt : BCS.OracleTable params.d F) (pref : List (BCS.OracleTable params.d F × FRIChal F params.d params.q)) (i : ℕ) (hi : i ≤ params.m) (j : Fin (params.domainSize i)) :
{s : Fin (2 ^ params.d) | ↑s % params.domainSize i = ↑j ∧ friSmoothPrefixPasses params stmt pref i s}.card = friSmoothOracleFilterWeight params stmt pref i hi (prefOracle pref i) j

Exact smooth starting-point counting identity: for every round i ≤ m and active-domain coordinate j : Fin (params.domainSize i), the filtered weight friSmoothOracleFilterWeight ... i (prefOracle pref i) j equals the exact number of initial positions s : Fin (2 ^ d) with s % params.domainSize i = j that satisfy friSmoothPrefixPasses ... i s.