Smooth FRI Final-Round Counting, Round-by-Round Invariant, and Query/Commit Escape Bounds #
Proves the final-round acceptance counting bound (card_filter_friSmoothFinalPasses_le),
unconditional smooth round-by-round soundness (friSmoothIOP_rbrSound), unconditional query-round
escape (friSmoothQueryRound_escape_le), and conditional commit-round escape bounds under
WeightedCurveEscapePerRound / WeightedCurveGapPerRound.
Smooth final query-acceptance counting bound: for a length-m prefix pref and any final
oracle πFinal, the number of starting indices s : Fin (2 ^ d) satisfying friSmoothFinalPasses
is at most the pre-filter weighted agreement of friSmoothTargetWord ... m with
friSmoothFinalCodeword params πFinal.
Unconditional round-by-round soundness invariant for smooth friSmoothIOP: for every
distance threshold e : ℕ, friSmoothIOP params satisfies IOPRoundByRoundSoundness with respect
to params.proximityLang e, friSmoothDoomed params (2 ^ params.d - e - 1), and
friSmoothGoodStep params (2 ^ params.d - e - 1).
Projecting a uniform FRIChal F d q onto its folding scalar foldScalar yields the uniform
distribution on F.
When pref.length = m and pref is doomed at threshold B, at most B starting points in
Fin (2 ^ d) pass friSmoothFinalPasses against any final oracle π.
Unconditional smooth query-round escape bound: when pref.length = m and pref is doomed
at threshold B, the probability over a uniform FRIChal that all q query repetitions pass is
at most (B / 2 ^ d) ^ q.
Conditional step (smooth commit-round escape bound assuming WeightedCurveEscapePerRound):
when pref.length < m and pref is doomed at threshold B, the probability over a uniform
FRIChal that the l⁽ⁱ⁾-to-1 folded target escapes to > B weighted agreement with
params.rsCode (pref.length + 1) is at most ε_commit ⟨pref.length, hpm⟩. Reuses
Folding.lean's exists_mem_reedSolomon_weighted_agree_lift and foldWord_eq_sum_smul.
Conditional step (smooth commit-round escape bound assuming WeightedCurveGapPerRound):
discharging WeightedCurveGapPerRound is left to the caller.
Conditional step (smooth commit-round escape bound assuming WeightedCurveGapBound):
discharging WeightedCurveGapBound is left to the caller.