Smooth & Binary FRI Round-by-Round Soundness, Summed IOP Soundness, and BCS ROM Composition #
This module proves unconditional round-by-round soundness
(Cslib.Crypto.Protocols.BCS.IOPRoundByRoundSoundness) and query-round escape bounds for the
multi-round smooth l⁽ⁱ⁾ = 2 ^ stepLog i ≥ 2 FRI IOP Cslib.Crypto.Protocols.FRI.friSmoothIOP
and its 2-to-1 specialization Cslib.Crypto.Protocols.FRI.friIOP
([BSBHR18], [BSCI+23]), together with
conditional per-round commit-phase escape, summed commit-phase and full interactive FRI soundness
(via CslibFrontier.Crypto.Protocols.BCS.Interactive, mirroring the commit-phase bad-event sum in
the proof of Lemma 8.2 in [BenSassonCarmonIshaiKoppartySaraf2020, Section 8.2.1, p. 42] and its
combination with the query phase in the proof of Theorem 8.3 on p. 40), and two-channel BCS
random-oracle composition steps parameterized by per-round curve/line proximity-gap or
escape-probability hypotheses ([BSCS16], [CY24]).
Overview of the smooth integer-weight round-by-round invariant #
For smooth parameters params : FRISmoothParams F (per-round arities l⁽ⁱ⁾ = params.arity i = 2 ^ params.stepLog i ≥ 2, cumulative log-reduction params.cumLog i, active domain size
params.domainSize i = 2 ^ (d - cumLog i)), an input word stmt : OracleTable params.d F, and any
partial verifier transcript pref : List (OracleTable params.d F × FRIChal F params.d params.q)
of length i ≤ m:
friSmoothTargetWord params stmt pref i hi : Fin (params.domainSize i) → Fis the expected round-iword:stmtati = 0, and thel⁽ⁱ⁻¹⁾-to-1 coset foldingfoldWordof the(i - 1)-th prover oracleπ_{i-1}atz_{i-1}fori ≥ 1.friSmoothPreWeight params stmt pref i hi : Fin (params.domainSize i) → ℕis the pre-filter integer fiber weight before the round-ioracle checkπ_i(j) = friSmoothTargetWord ...: identically1ati = 0, and fori ≥ 1thepushWeightfiberwise sum of the previous round's filtered weightfriSmoothOracleFilterWeight. It satisfiesfriSmoothPreWeight ... j ≤ 2 ^ params.cumLog iand∑ j, friSmoothPreWeight ... j ≤ 2 ^ dunconditionally for arbitrary malicious oracles, while applying the round-ioracle check yieldsfriSmoothOracleFilterWeight, counting the exact number of initial starting points abovejsatisfyingfriSmoothPrefixPasses ... i(card_filter_friSmoothPrefixPasses_eq).- A transcript prefix of length
i ≤ mis doomed (friSmoothDoomed params B stmt pref) if every codewordc ∈ params.rsCode ihasfriSmoothPreWeight-weighted agreement at mostBwithfriSmoothTargetWord. A complete transcript of lengthm + 1is doomed if at least one of theqqueried starting points failsfriSmoothTranscriptSingleAccepts.
All binary 2-to-1 FRIParams soundness theorems are proved as short corollaries of the smooth
theorems via FRIParams.toSmooth, friIOP_eq_friSmoothIOP, friDoomed_iff_friSmoothDoomed, and
weightedLineEscapePerRound_iff_weightedCurveEscapePerRound, with zero duplicated proofs and
unchanged public binary signatures.
Main definitions #
Cslib.Crypto.Protocols.FRI.friSmoothTargetWord,Cslib.Crypto.Protocols.FRI.friSmoothPreWeight,Cslib.Crypto.Protocols.FRI.friSmoothOracleFilterWeight,Cslib.Crypto.Protocols.FRI.friSmoothNextWeight,Cslib.Crypto.Protocols.FRI.friSmoothPrefixPasses,Cslib.Crypto.Protocols.FRI.friSmoothTranscriptSingleAccepts,Cslib.Crypto.Protocols.FRI.friSmoothFinalPasses: smooth transcript state, pushed-forward fiber weights, and starting-point acceptance predicates.Cslib.Crypto.Protocols.FRI.friSmoothCommitDoomed,Cslib.Crypto.Protocols.FRI.friSmoothDoomed,Cslib.Crypto.Protocols.FRI.friSmoothGoodStep,Cslib.Crypto.Protocols.FRI.friSmoothCommitGame,Cslib.Crypto.Protocols.FRI.friSmoothRoundEscape,Cslib.Crypto.Protocols.FRI.friSmoothSumError,Cslib.Crypto.Protocols.FRI.friSmoothSupRBRError,Cslib.Crypto.Protocols.FRI.friSmoothRBRError: smooth round-by-round predicates, commit game, and summed / uniform escape error expressions.Cslib.Crypto.Protocols.FRI.WeightedCurveGapPerRound,Cslib.Crypto.Protocols.FRI.WeightedCurveGapBound,Cslib.Crypto.Protocols.FRI.WeightedCurveEscapePerRound,Cslib.Crypto.Protocols.FRI.UniqueCurveGapHypothesis: polymorphic per-round degree-(l⁽ⁱ⁾ - 1)curve proximity-gap and escape-probability contracts (specializing toWeightedLineGapPerRound,WeightedLineGapBound,WeightedLineEscapePerRound, andUniqueLineGapHypothesisatl⁽ⁱ⁾ = 2).Cslib.Crypto.Protocols.FRI.encZMod,Cslib.Crypto.Protocols.FRI.decZMod: unsigned little-endian binary symbol codec forZMod p.
Main results #
Cslib.Crypto.Protocols.FRI.friSmoothIOP_rbrSound&Cslib.Crypto.Protocols.FRI.friIOP_rbrSound: unconditional round-by-round soundness invariants for smooth and binary FRI.Cslib.Crypto.Protocols.FRI.card_filter_friSmoothPrefixPasses_eq,Cslib.Crypto.Protocols.FRI.card_filter_friSmoothFinalPasses_le,Cslib.Crypto.Protocols.FRI.card_filter_friSmoothFinalPasses_le_of_friSmoothDoomed, &Cslib.Crypto.Protocols.FRI.friSmoothQueryRound_escape_le: unconditional starting-point counting and query-round escape bound≤ (B / 2 ^ d) ^ q.Cslib.Crypto.Protocols.FRI.friSmoothCommitRound_escape_le_of_weightedCurveEscapePerRound,Cslib.Crypto.Protocols.FRI.friSmoothCommitGame_le_of_weightedCurveEscapePerRound,Cslib.Crypto.Protocols.FRI.friSmoothIOP_interactiveGame_le_of_weightedCurveEscapePerRound,Cslib.Crypto.Protocols.FRI.weightedCurveGapPerRound_of_uniqueCurveGap, &Cslib.Crypto.Protocols.FRI.weightedCurveGapBound_of_uniqueCurveGap: conditional smooth commit, summed interactive IOP, and unique-decoding curve-upgrade steps (with binary counterpartsfriCommitRound_escape_le_of_*,friCommitGame_le_of_*,friIOP_interactiveGame_le_of_*,weightedLineGapPerRound_of_uniqueLineGap, andweightedLineGapBound_of_uniqueLineGapas corollaries).Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_of_weightedCurveEscapePerRound,Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_of_weightedCurveGap,FRI.friSmoothBCS_romSoundness_bound_of_prover_verifier_of_weightedCurveGap,Cslib.Crypto.Protocols.FRI.friSmoothBCS_romSoundness_bound_of_uniqueCurveGap, and their binary counterpartsfriBCS_romSoundness_bound_of_*: conditional two-channel BCS ROM compositions.Cslib.Crypto.Protocols.FRI.friDoomed_iff_friSmoothDoomed,Cslib.Crypto.Protocols.FRI.friGoodStep_iff_friSmoothGoodStep,Cslib.Crypto.Protocols.FRI.friCommitGame_eq_friSmoothCommitGame, &Cslib.Crypto.Protocols.FRI.weightedLineEscapePerRound_iff_weightedCurveEscapePerRound: exact binary-to-smooth specialization bridges.