Coset-Folding Correlated Agreement, Out-of-Domain DEEP Quotienting, and DEEP-ALI Soundness #
This module connects the Reed–Solomon proximity-gap and batched FRI IOP developments of
CslibFrontier.Crypto.Protocols.FRI to algebraic constraint linking and out-of-domain ("sampling
outside the box") polynomial protocols across three layers:
General
a-to-1 coset-folding correlated-agreement soundness (FoldSoundness):CslibFrontier.Crypto.Protocols.FRI.Foldingdefines arbitrary-arity fiberwise coset foldingfoldWord g ω f z : Fin N → Ffor anya ≥ 1with(a : F) ≠ 0and proves fiberwise lifting (exists_mem_reedSolomon_weighted_agree_lift), whileFRI.Soundness/FRI.JohnsonSoundnessspecialize folding soundness to power-of-two schedules2 ^ stepLog i. Here we establish standalone single-step folding soundness bounds directly onfoldWord g ω f zfor arbitrary positive aritya(including odd and composite radices) in both the unique-decoding regime (toOuterMeasure_foldWord_reedSolomon_close_le_unique) and the integer-weighted Guruswami–Sudan Johnson regime (toOuterMeasure_foldWord_reedSolomon_weighted_agree_le_johnson_exact).Out-of-domain DEEP quotienting, degree restoration, and Johnson list bounds (
DeepQuotient): formalizes polynomial quotientingdeepQuotientPoly p z = p /ₘ (X - C z)and word-level virtual quotientingdeepQuotientWord α f z y = fun s => (f s - y) / (α s - z)following the DEEP (Domain Extending for Eliminating Pretenders) technique of [BSGKS20]. Proves Reed–Solomon closure (deepQuotientWord_mem_reedSolomon), exact degree restoration and out-of-domain evaluation pinning from correlated agreement on any subsetD'avoidingz(exists_poly_of_deepQuotientWord_agree), unique interpolation onD'(eq_of_degree_lt_of_eval_eq_on), and finite candidate-polynomial list boundsagreePolyListacross both the unique-decoding radius (card_agreePolyList_le_one_of_unique) and the exact integer Johnson radius|ι| * (k - 1) < a ^ 2(card_agreePolyList_le_of_johnson, via [Joh62]).DEEP-ALI (Algebraic Linking IOP with Out-of-Domain Sampling) & Batched FRI Bridge (
DeepALI): formalizes multi-column masked polynomial constraint systemsDeepALISystem(with monic zerofiersZ_m(X), multiplicative trace shiftsmaskShift u * X, split composition-quotient chunks viapolyDegreeChunk, and an out-of-domain sampling setoodDom), the interactive protocol gamedeepALIGamedelegating low-degree testing of all mask and quotient-chunk DEEP words to a single(m + 2)-roundfriSmoothBatchIOPexecution ([BSCI+23], Section 8.2), the honest proverhonestDeepALIProverwith perfect completeness (deepALIGame_honest_eq_pure_true), deterministic correlated-agreement witness extraction (exists_polys_of_batchStmt_mem_proximityLang), and unconditional adaptive interactive soundness in both the unique-decoding regime (deepALIGame_le_of_unique) and the1 - √ρ - ηJohnson list-decoding regime (deepALIGame_le_of_johnson_eta, using this library's explicit Siegel constants for batched FRI; internal theorem and page locators of [BSGKS20] were not re-verified against the primary PDF). Binary 2-to-1FRIParamscorollaries follow viaFRIParams.toSmooth(deepALIGame_ofBinary_le_of_johnson_eta).
Main definitions #
Cslib.Crypto.Protocols.FRI.deepQuotientPoly,Cslib.Crypto.Protocols.FRI.deepQuotientWord: out-of-domain polynomial and evaluation-word DEEP quotient operators.Cslib.Crypto.Protocols.FRI.agreePolyList: finite candidate list of polynomials of degree< kagreeing with a wordw : ι → Fon at leastacoordinates.Cslib.Crypto.Protocols.FRI.constraintDegBound,Cslib.Crypto.Protocols.FRI.polyDegreeChunk: tight univariate degree bound for masked multivariate constraints and degree-(k + 1)chunk decomposition of composition quotients.Cslib.Crypto.Protocols.FRI.DeepALISystem,Cslib.Crypto.Protocols.FRI.DeepALIOpening,Cslib.Crypto.Protocols.FRI.DeepALIProver,Cslib.Crypto.Protocols.FRI.deepALIGame,Cslib.Crypto.Protocols.FRI.honestDeepALIProver: masked algebraic constraint system, out-of-domain opening record, adaptive prover strategy, interactive DEEP-ALI + batched FRI game, and honest prover.
Main results #
Cslib.Crypto.Protocols.FRI.toOuterMeasure_foldWord_reedSolomon_close_le_unique,Cslib.Crypto.Protocols.FRI.toOuterMeasure_foldWord_reedSolomon_weighted_agree_le_johnson_exact: standalone arbitrary-aritya-to-1 coset-folding proximity-gap and weighted correlated-agreement soundness bounds.Cslib.Crypto.Protocols.FRI.mul_deepQuotientPoly_add_eval,Cslib.Crypto.Protocols.FRI.degree_deepQuotientPoly_lt,Cslib.Crypto.Protocols.FRI.deepQuotientWord_mem_reedSolomon,Cslib.Crypto.Protocols.FRI.exists_poly_of_deepQuotientWord_agree: algebraic identity, degree drop, Reed–Solomon closure, and correlated-agreement degree restoration with evaluation pinning at the out-of-domain point.Cslib.Crypto.Protocols.FRI.card_agreePolyList_le_one_of_unique,Cslib.Crypto.Protocols.FRI.card_agreePolyList_le_of_johnson: unique-decoding (≤ 1) and exact integer Johnson (≤ n * (a - (k - 1)) / (a ^ 2 - n * (k - 1))) candidate list-size bounds.Cslib.Crypto.Protocols.FRI.sum_X_pow_mul_polyDegreeChunk,Cslib.Crypto.Protocols.FRI.DeepALISystem.natDegree_evalMaskPoly_le,Cslib.Crypto.Protocols.FRI.DeepALISystem.prod_X_sub_C_dvd_evalMaskPoly_iff: exact chunk reconstruction, tight masked-constraint degree bound, and pointwise subgroup/root-set constraint characterization.Cslib.Crypto.Protocols.FRI.deepALIGame_honest_eq_pure_true: perfect completeness of DEEP-ALI composed with smooth batched FRI.Cslib.Crypto.Protocols.FRI.exists_polys_of_batchStmt_mem_proximityLang,Cslib.Crypto.Protocols.FRI.deepALIGame_le_of_unique,Cslib.Crypto.Protocols.FRI.deepALIGame_le_of_johnson_eta,Cslib.Crypto.Protocols.FRI.deepALIGame_ofBinary_le_of_johnson_eta: correlated-agreement polynomial extraction and unconditional adaptive soundness of DEEP-ALI across the unique-decoding and1 - √ρ - ηJohnson list-decoding regimes.
References #
- E. Ben-Sasson, L. Goldberg, S. Kopparty, S. Saraf, DEEP-FRI: Sampling Outside the Box Improves Soundness
- E. Ben-Sasson, D. Carmon, Y. Ishai, S. Kopparty, S. Saraf, Proximity Gaps for Reed–Solomon Codes
- E. Ben-Sasson, I. Bentov, Y. Horesh, M. Riabzev, Fast Reed–Solomon Interactive Oracle Proofs of Proximity
- S. M. Johnson, A new upper bound for error-correcting codes
Part 1: Standalone a-to-1 Coset-Folding Correlated-Agreement Soundness Bridge #
Standalone a-to-1 coset-folding soundness in the unique-decoding regime
(2 * (e / a) + k ≤ N, derived from [BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.5 and 6.1]
and exists_mem_reedSolomon_weighted_agree_lift): for any field F, nonzero coset offset g,
positive folding arity a with (a : F) ≠ 0, target size N > 0, and primitive (a * N)-th root
of unity ω, if f : Fin (a * N) → F has Hamming distance strictly greater than e from
reedSolomon (cosetPoint g ω (a * N)) (a * k), then foldWord g ω f z lies within Hamming distance
e / a of reedSolomon (cosetPoint (g ^ a) (ω ^ a) N) k with probability at most
((a - 1) * N) / |F| over uniform z : F.
Standalone integer-weighted a-to-1 coset-folding correlated-agreement bound in the
Guruswami–Sudan Johnson regime (in the setting of
[BenSassonCarmonIshaiKoppartySaraf2020, Theorems 1.5, 6.2, and 7.2]): for arbitrary folding arity
a ≥ 1 with (a : F) ≠ 0, weights W : Fin (a * N) → ℕ bounded pointwise by M₀ > 0 with sum at
most W_tot, and Guruswami–Sudan parameters (m_GS, D) at fiber cap a * M₀, if no codeword in
reedSolomon (cosetPoint g ω (a * N)) (a * k) achieves W-weighted agreement > B with f, then
foldWord g ω f z achieves (pushWeight W)-weighted agreement > B with a codeword in
reedSolomon (cosetPoint (g ^ a) (ω ^ a) N) k with probability at most
johnsonCurveBound N m_GS (k - 1) D (a - 1) W_tot / |F|.
Part 2: Out-of-Domain DEEP Quotienting, Degree Restoration, and List Size Bounds #
Out-of-domain DEEP polynomial quotient: divides p by the monic linear factor X - C z
((p - C (p.eval z)) / (X - C z)), lowering the degree by 1 while recording p.eval z.
Exact polynomial division identity for deepQuotientPoly:
(X - C z) * deepQuotientPoly p z + C (p.eval z) = p.
Degree drop of deepQuotientPoly: if deg(p) < k + 1, then
deg(deepQuotientPoly p z) < k.
Word-level DEEP quotient oracle: virtual evaluation word s ↦ (f s - y) / (α s - z)
testing simultaneously that f comes from a low-degree polynomial p and that p.eval z = y
([BSGKS20]).
On any domain α : ι → F avoiding z, deepQuotientWord of an honest evaluation word
s ↦ p.eval (α s) at y = p.eval z coincides pointwise with evaluating deepQuotientPoly p z.
Reed–Solomon completeness of DEEP quotienting: if deg(p) < k + 1 and z lies outside the
evaluation domain α, then deepQuotientWord α (fun s => p.eval (α s)) z (p.eval z) belongs to
reedSolomon α k.
DEEP correlated-agreement degree restoration and evaluation pinning: if z avoids α '' D'
and deepQuotientWord α f z y agrees on D' with a codeword v ∈ reedSolomon α k, then there
exists a polynomial p of degree < k + 1 that evaluates to y at z and agrees with f on all
of D'.
Two polynomials of degree < k that agree on D' of size ≥ k along an injective domain map
α : ι → F are identical.
Finite list of all polynomials p : F[X] of degree < k agreeing with w : ι → F on at least
a coordinates of α : ι → F.
Membership in agreePolyList α k w a characterizes p.degree < k with agreement ≥ a.
Unique-decoding list-size bound (#agreePolyList ≤ 1): when Fintype.card ι + k ≤ 2 * a,
at most one polynomial of degree < k agrees with w on ≥ a points.
Exact integer Johnson list-size bound for agreePolyList ([Joh62], via
Cslib.Code.card_mul_sub_le_of_le_card_of_card_inter_le): for 1 ≤ k and
|ι| * (k - 1) < a ^ 2, the number of polynomials of degree < k agreeing with w on at least a
points of α is at most (|ι| * (a - (k - 1))) / (a ^ 2 - |ι| * (k - 1)).
Part 3: DEEP-ALI Protocol & Correlated-Agreement Soundness Bridge to Batched FRI #
Tight univariate natDegree upper bound on a multivariate constraint polynomial
p : MvPolynomial (Option (Fin M)) F when none substitutes X and some u substitutes a masked
polynomial of natDegree ≤ k.
Extract the j-th degree-B chunk ∑_{t < B} coeff(p, j * B + t) X^t of p : F[X].
Every chunk polyDegreeChunk (k + 1) p j has degree strictly less than k + 1.
Exact degree-chunk decomposition: any polynomial p of degree < numChunks * (k + 1)
equals ∑ j : Fin numChunks, X ^ (j * (k + 1)) * polyDegreeChunk (k + 1) p j.
Masked Algebraic Constraint System for DEEP-ALI: specifies smooth FRI parameters params
(fixing initial Reed–Solomon dimension k = params.dim 0 and trace/chunk degree bound < k + 1),
w trace columns, M multiplicative trace mask entries (maskCol u, maskShift u), c_num
polynomial constraints constraintPoly m with monic zerofier divisors zerofier m, q_extra + 1
composition-quotient chunks satisfying the tight degree budget hquot_deg, and a nonempty
out-of-domain sampling set oodDom disjoint from the FRI coset, its inverse mask shifts, and the
zerofier roots.
- params : FRISmoothParams F
Underlying smooth FRI parameters on coset
cosetEval g ω d 0of size2 ^ d. Trace column index read by each mask entry
u : Fin M.- maskShift : Fin M → F
Multiplicative domain shift
γ_uapplied to the evaluation point in mask entryu. Multivariate polynomial constraint
C_m(X, Y_0, …, Y_{M-1})form : Fin c_num.- zerofier : Fin c_num → Polynomial F
Monic zerofier / vanishing divisor
Z_m(X)for constraintm : Fin c_num. Non-emptiness / monicity of every constraint zerofier.
- hquot_deg (m : Fin c_num) : constraintDegBound (self.constraintPoly m) (self.params.dim 0) < (self.zerofier m).natDegree + (q_extra + 1) * (self.params.dim 0 + 1)
Tight quotient degree budget ensuring every valid witness quotient fits in
q_extra + 1chunks of degree< params.dim 0 + 1. - oodDom : Finset F
Finite out-of-domain sampling set ("outside the box").
oodDomis nonempty.- hood_coset (z : F) : z ∈ self.oodDom → ∀ (s : Fin (2 ^ self.params.d)), cosetEval self.params.g self.params.ω self.params.d 0 s ≠ z
oodDomavoids the FRI evaluation cosetL₀. - hood_mask (z : F) : z ∈ self.oodDom → ∀ (u : Fin M) (s : Fin (2 ^ self.params.d)), cosetEval self.params.g self.params.ω self.params.d 0 s ≠ self.maskShift u * z
Every shifted out-of-domain query
maskShift u * zalso avoidsL₀. - hood_zerofier (z : F) : z ∈ self.oodDom → ∀ (m : Fin c_num), Polynomial.eval z (self.zerofier m) ≠ 0
No zerofier vanishes on
oodDom.
Injectivity of sys.evalDom.
Pointwise evaluation C_m(x, y_mask) of constraint m at point x and mask values y_mask.
Univariate polynomial C_m(X, P_{maskCol 0}(maskShift 0 · X), …) obtained by substituting the
shifted trace polynomials P : Fin w → F[X] into constraint m.
Evaluating sys.evalMaskPoly m P at x : F coincides with sys.evalConstraintPoint m x on the
shifted evaluations u ↦ (P (maskCol u)).eval (maskShift u * x).
Tight univariate degree bound for evalMaskPoly: when every P i has degree
< sys.params.dim 0 + 1, (sys.evalMaskPoly m P).natDegree is at most
constraintDegBound (sys.constraintPoly m) (sys.params.dim 0).
Pointwise root-set characterization of zerofier divisibility: when zerofier m = ∏ x ∈ H, (X - C x) for a subset H : Finset F, divisibility zerofier m ∣ evalMaskPoly m P holds
if and only if the algebraic constraint vanishes at every x ∈ H.
A polynomial tuple P : Fin w → F[X] is a valid witness for sys when each P i has degree
< params.dim 0 + 1 and every constraint evalMaskPoly m P is divisible by zerofier m.
Algebraic satisfiability of sys: existence of a low-degree polynomial tuple satisfying all
constraints.
Explicit algebraic-linking degree bound
D_ALI = (q_extra + 1) * (params.dim 0 + 1) - 1 + ∑ m, (zerofier m).natDegree governing the
out-of-domain DEEP soundness error.
Exact integer Johnson list-size bound `max 1 ((2 ^ d * (⌈α * 2 ^ d⌉₊ - k)) / ((⌈α * 2 ^ d⌉₊) ^ 2
- 2 ^ d * k))
for degree-< k + 1trace and quotient-chunk polynomials at relative agreement thresholdα`.
Boolean algebraic linking check at out-of-domain challenge z and constraint weights β:
verifies ∑ m, β_m * C_m(z, maskVals) / Z_m(z) = ∑ j, z ^ (j * (k + 1)) * quotVals j.
Virtual (M + q_extra)-term FRIBatchStmt produced by DEEP quotienting:
Adaptive (possibly randomized) cheating prover for DeepALISystem:
- commits trace evaluation tables
T : Fin w → OracleTable d F, - upon receiving random constraint-linking scalars
β : Fin c_num → F, commits composition-quotient chunk tablesQ_orc : Fin (q_extra + 1) → OracleTable d F, and - upon receiving out-of-domain sample
z ∈ oodDom, outputs claimed evaluationsDeepALIOpeningtogether with an adaptive interactive prover forfriSmoothBatchIOP.
Round-0 randomized trace oracle commitment.
- commitQuot : (Fin w → BCS.OracleTable sys.params.d F) → (Fin c_num → F) → PMF (Fin (q_extra + 1) → BCS.OracleTable sys.params.d F)
Round-1 adaptive randomized composition-quotient chunk commitment given
(T, β). - openOOD : (Fin w → BCS.OracleTable sys.params.d F) → (Fin c_num → F) → (Fin (q_extra + 1) → BCS.OracleTable sys.params.d F) → F → PMF (DeepALIOpening F M q_extra × BCS.InteractiveIOPProver sys.params.d F (FRIBatchChal F sys.params.d sys.params.q (M + q_extra)))
Round-2 adaptive randomized OOD opening and batched FRI continuation given
(T, β, Q_orc, z).
Interactive DEEP-ALI + Smooth Batched FRI Game: runs adv across trace commitment, uniform
constraint linking β : Fin c_num → F, quotient commitment, uniform out-of-domain sampling
z ∈ sys.oodDom, the algebraic linking check sys.linkCheck β z op, and the (m + 2)-round
batched smooth FRI IOP friSmoothBatchIOP sys.params (M + q_extra).
Honest combined composition-quotient polynomial
∑ m, C (β m) * (evalMaskPoly m P /ₘ zerofier m) formed from a polynomial tuple
P : Fin w → F[X].
Honest DEEP-ALI prover given any polynomial tuple P : Fin w → F[X]: commits the coset
evaluations of P, commits the (q_extra + 1) degree-(k + 1) chunks of honestCombinedQuot,
opens their exact evaluations at z, and executes the honest causal friSmoothBatchIOP prover.
Perfect completeness of DEEP-ALI + Smooth Batched FRI: for every valid witness P
(sys.IsValidWitness P), deepALIGame sys (honestDeepALIProver sys P) outputs true with
probability 1.
Candidate polynomial list for trace column i : Fin w at agreement threshold a: equals
agreePolyList sys.evalDom (k + 1) (T i) a when column i is referenced by at least one mask
entry, and {0} otherwise.
Deterministic correlated-agreement extraction bridge from batchStmt ∈ batchProximityLang to
candidate trace and quotient-chunk polynomials: whenever z ∈ sys.oodDom,
sys.params.dim 0 + 1 ≤ 2 ^ d - e, and sys.batchStmt T Q_orc z op ∈ sys.params.batchProximityLang (M + q_extra) e, there exist:
- a trace polynomial tuple
P : Fin w → F[X]withP i ∈ traceColCandList sys T (2 ^ d - e) i,deg(P i) < k + 1, and(P (maskCol u)).eval (maskShift u * z) = op.maskVals ufor allu, and - a quotient-chunk tuple
Q_poly : Fin (q_extra + 1) → F[X]withQ_poly j ∈ agreePolyList sys.evalDom (k + 1) (Q_orc j) (2 ^ d - e),deg(Q_poly j) < k + 1, and(Q_poly j).eval z = op.quotVals jfor allj.
Unconditional adaptive soundness of DEEP-ALI + Smooth Batched FRI across the unique-decoding
radius (2 * e + (sys.params.dim 0 + 1) ≤ 2 ^ d): if sys is unsatisfiable, every adaptive
prover adv convinces the verifier with probability at most
1 / |F| + sys.linkDegBound / #sys.oodDom + (2 * 2^d - 2^(d - totalLog)) / |F| + ((2^d - e - 1) / 2^d) ^ q.
Unconditional adaptive soundness of DEEP-ALI + Smooth Batched FRI up to the Johnson bound
(√ρ + η ≤ α ≤ 1, k + 1 ≤ ⌈α * 2 ^ d⌉₊, 2 ^ d * k < (⌈α * 2 ^ d⌉₊) ^ 2): if sys is
unsatisfiable, every adaptive prover adv convinces the verifier with probability at most
(L ^ w) / |F| + (L ^ (w + q_extra + 1) * sys.linkDegBound) / #sys.oodDom + ENNReal.ofReal (friSmoothBatchJohnsonEtaCommitError sys.params η + α ^ q), where
L = sys.johnsonListBound α (using this library's explicit Siegel constants for batched FRI).
Binary 2-to-1 FRIParams specialization of deepALIGame_le_of_johnson_eta (when
sys.params = binParams.toSmooth).