Reed–Solomon Coset Folding for FRI #
This module formalizes the multiplicative-coset domain hierarchy and Reed–Solomon folding operator underlying the Fast Reed–Solomon Interactive Oracle Proof of Proximity (FRI) [BSBHR18] and its proximity-gap soundness analysis [BSCI+23].
Given a multiplicative coset L = {g * ω ^ i | i : Fin (a * N)} generated by a primitive
(a * N)-th root of unity ω and nonzero offset g in a field F with (a : F) ≠ 0, any
word f : Fin (a * N) → F decomposes fiberwise via the a-point inverse discrete Fourier
transform into a component words foldComp g ω f r : Fin N → F (r : Fin a) on the
powered coset L ^ a = {g ^ a * (ω ^ a) ^ j | j : Fin N}. Folding f with a verifier challenge
z : F forms the parameterized curve foldWord g ω f z = ∑ r, z ^ r • foldComp g ω f r.
For a = 2 (assuming (2 : F) ≠ 0), this reduces to the closed-form 2-to-1 FRI folding operator
fold2 g ω f z = fold2Even g ω f + z • fold2Odd g ω f, linking Reed–Solomon folding directly to
affine lines and parameterized curves for correlated-agreement proximity gaps.
Main definitions #
Cslib.Crypto.Protocols.FRI.cosetPoint,Cslib.Crypto.Protocols.FRI.cosetEval: multiplicative coset evaluation maps and the power-of-two FRI domain hierarchy.Cslib.Crypto.Protocols.FRI.polyComp,Cslib.Crypto.Protocols.FRI.reconstructPoly,Cslib.Crypto.Protocols.FRI.foldPoly:a-way polynomial decomposition, reconstruction, and polynomial folding.Cslib.Crypto.Protocols.FRI.foldFiberComp,Cslib.Crypto.Protocols.FRI.foldComp,Cslib.Crypto.Protocols.FRI.foldFiber,Cslib.Crypto.Protocols.FRI.foldWord: generala-to-1 fiberwise IDFT interpolation coefficients, component words, local fiber folding evaluator, and Reed–Solomon word folding.Cslib.Crypto.Protocols.FRI.pushWeight: push-forward of a coordinate weight function acrossa-element fibers.Cslib.Crypto.Protocols.FRI.fold2Fiber,Cslib.Crypto.Protocols.FRI.fold2Even,Cslib.Crypto.Protocols.FRI.fold2Odd,Cslib.Crypto.Protocols.FRI.fold2: explicit 2-to-1 FRI folding formulas.
Main results #
Cslib.Crypto.Protocols.FRI.cosetPoint_injective,Cslib.Crypto.Protocols.FRI.cosetEval_injective,Cslib.Crypto.Protocols.FRI.cosetEval_pow_two_pow,Cslib.Crypto.Protocols.FRI.cosetEval_sq,Cslib.Crypto.Protocols.FRI.cosetEval_add_half: injectivity, smooth(2 ^ s)-th powering, squaring, and negation-pair structure of the FRI coset hierarchy.Cslib.Crypto.Protocols.FRI.reconstructPoly_polyComp,Cslib.Crypto.Protocols.FRI.degree_polyComp_lt,Cslib.Crypto.Protocols.FRI.degree_foldPoly_lt: exact degree-preserving polynomial folding.Cslib.Crypto.Protocols.FRI.foldComp_eval,Cslib.Crypto.Protocols.FRI.foldWord_eval,Cslib.Crypto.Protocols.FRI.foldWord_apply_eq_foldFiber,Cslib.Crypto.Protocols.FRI.foldWord_mem_reedSolomon: commutation of folding with polynomial evaluation, local fiber evaluation, and Reed–Solomon closure.Cslib.Crypto.Protocols.FRI.reconstruct_foldComp,Cslib.Crypto.Protocols.FRI.exists_mem_reedSolomon_weighted_agree_lift: exact fiberwise reconstruction and weighted correlated-agreement lifting back to the unfolded Reed–Solomon code.Cslib.Crypto.Protocols.FRI.fold2Fiber_swap,Cslib.Crypto.Protocols.FRI.foldFiber_two_eq_fold2Fiber,Cslib.Crypto.Protocols.FRI.fold2_eq_foldWord,Cslib.Crypto.Protocols.FRI.fold2_mem_reedSolomon: fiber-representative invariance and agreement of the explicit 2-to-1 folding formulas withfoldFiber/foldWordata = 2.Cslib.Crypto.Protocols.FRI.weighted_agree_of_curve_many,Cslib.Crypto.Protocols.FRI.weighted_agree_of_line_many: integer-weighted union-bound bridge from agreement on many curve/line evaluations to simultaneous weighted agreement.
References #
Every point of a coset with nonzero offset and primitive n-th root of unity is nonzero.
Distinct indices yield distinct evaluation points on a coset generated by a primitive n-th
root of unity with nonzero offset.
Raising a coset point of size a * N to the a-th power lands in the powered coset of size
N at index j % N.
Squaring a primitive 2 ^ d-th root of unity i times produces a primitive 2 ^ (d - i)-th
root of unity.
Each level i ≤ d of the FRI coset hierarchy has distinct evaluation points.
Squaring maps level i of the FRI coset hierarchy onto level i + 1.
The r-th residue component of p : F[X] modulo a: its t-th coefficient is
p.coeff (a * t + r).
Reconstruct a polynomial from its a residue components via
∑ r : Fin a, X ^ r * (ps r).comp (X ^ a).
Exact decomposition identity: p = ∑ r : Fin a, X ^ r * (polyComp a p r).comp (X ^ a).
Evaluating p at x decomposes as ∑ r : Fin a, x ^ r * (polyComp a p r).eval (x ^ a).
If every component ps r has degree < k, then reconstructPoly a ps has degree < a * k.
The a-to-1 folded polynomial foldPoly a p z = ∑ r : Fin a, C (z ^ r) * polyComp a p r.
The r-th fiberwise IDFT / interpolation coefficient of a single a-element fiber
ys : Fin a → F above target index j : Fin N in the coset g * ⟨ω⟩ of size a * N
([BSCI+23], Section 8.2, printed p. 37: Eq. (8.1) defines the fiber,
the paragraph immediately following it defines the interpolation map whose output is this
coefficient vector, and Eq. (8.2) evaluates that vector at the challenge powers).
Local a-to-1 FRI folding formula evaluated on a single a-element fiber ys : Fin a → F
above target index j : Fin N in the coset g * ⟨ω⟩ of size a * N with challenge z
([BSCI+23], Section 8.2, Eq. (8.2) on printed p. 37).
foldComp commutes with polynomial evaluation: applying foldComp to the evaluations of p
on g * ⟨ω⟩ yields the evaluations of polyComp a p r on g^a * ⟨ω^a⟩.
foldWord commutes with polynomial evaluation: folding the evaluations of p yields the
evaluations of foldPoly a p z on the powered coset.
Reed–Solomon closure under folding: folding a codeword of
reedSolomon (cosetPoint g ω (a * N)) (a * k) with any scalar z : F produces a codeword of
reedSolomon (cosetPoint (g ^ a) (ω ^ a) N) k.
Exact fiberwise reconstruction: any word f : Fin (a * N) → F is recovered pointwise on
every fiber from its a IDFT components foldComp g ω f r.
Total weight is preserved by pushWeight: ∑ j, pushWeight W j = ∑ i, W i.
Pointwise upper bound on pushWeight: if every coordinate has weight ≤ M, then every fiber
has pushed-forward weight ≤ a * M.
Weighted correlated-agreement lifting across a-to-1 folding: for any word f and
component codewords v r ∈ reedSolomon (cosetPoint (g^a) (ω^a) N) k, there exists a codeword
c ∈ reedSolomon (cosetPoint g ω (a * N)) (a * k) agreeing with f on every fiber over the
simultaneous agreement set {j | ∀ r, foldComp g ω f r j = v r j}, preserving all pushed-forward
weights.
Local 2-to-1 FRI folding formula on a single negation pair (yPos, yNeg) at (xPos, -xPos)
with folding scalar z.
Fiber-representative invariance: swapping (xPos, -xPos) and their evaluations
(yPos, yNeg) yields the exact same 2-to-1 folded value.
Explicit odd component word for 2-to-1 folding:
j ↦ (f j - f (j + N)) / (2 * cosetPoint g ω (2 * N) j).
At a = 2, the local a-to-1 fiber evaluator foldFiber coincides with fold2Fiber.
Reed–Solomon closure of 2-to-1 folding: folding a codeword of
reedSolomon (cosetPoint g ω (2 * N)) (2 * k) produces a codeword of
reedSolomon (cosetPoint (g ^ 2) (ω ^ 2) N) k.
2-to-1 weighted correlated-agreement lifting: for any word f and codewords
(v₀, v₁) ∈ RS(L², k)², there exists c ∈ RS(L, 2 * k) whose W-weighted agreement with f is
at least the pushed-forward weight of {j | fold2Even f j = v₀ j ∧ fold2Odd g ω f j = v₁ j}.
Integer-weighted curve union bound: given a ≥ 1, integer weights W : ι → ℕ, and two
degree-(a - 1) curves u, v : Fin a → ι → F, if more than (a - 1) * |{i | 0 < W i}| scalars
z ∈ Z achieve W-weighted agreement > B between ∑ r, z^r • u r and ∑ r, z^r • v r, then
u and v agree simultaneously across all r : Fin a on a set of W-weight > B.
Integer-weighted line union bound: if more than Fintype.card ι scalars z ∈ Z achieve
W-weighted agreement > B between u₀ + z • u₁ and v₀ + z • v₁, then (u₀, u₁) agrees with
(v₀, v₁) simultaneously on a set of W-weight > B.