Sudan interpolants, weighted degree, and elimination #
Let w : ι → F be a received word and let α be distinct evaluation points. Sudan's list decoder
[Sud97], [GRS19] for polynomials P of degree at most d needs a nonzero
bivariate polynomial Q(X, Y) of (1, d)-weighted degree at most D
(Cslib.Code.Sudan.WeightedDegreeLE), that is with a + d * b ≤ D for each of its monomials
X ^ a * Y ^ b, vanishing at the n points (α i, w i) (Cslib.Code.Sudan.IsInterpolant).
Such a Q is a nonzero solution of n linear equations in its coefficients, so it exists as soon
as there are more than n monomials of (1, d)-weighted degree at most D
(Cslib.Code.Sudan.exists_isInterpolant); for d ≥ 1 there are at least
(D + 1) * (D + 2) / (2 * d) of them
(Cslib.Code.Sudan.add_one_mul_add_two_le_two_mul_mul_card_monomials). If P has degree at most
d, then Q(X, P(X)) has degree at most D
(Cslib.Code.Sudan.WeightedDegreeLE.natDegree_eval_le) and vanishes at every point where P
agrees with w; when there are more than D of them it is zero, so Y - P(X) divides Q(X, Y)
(Cslib.Code.Sudan.IsInterpolant.X_sub_C_dvd): P is a root of Q viewed as a polynomial in Y
over F[X].
More generally, for any finite system of homogeneous linear constraints entry : κ → ℕ × ℕ → F on
the monomials of (1, d)-weighted degree at most D, this module computes an explicit solution of
least Y-degree by Gaussian elimination (Cslib.LinearAlgebra.kernelVec): for j = 0, 1, …, D / d
it finds a kernel vector of the constraint matrix restricted to the monomials of Y-degree at most
j (Cslib.Code.Sudan.minDegKernelVecUpTo) and selects the first nonzero one
(Cslib.Code.Sudan.minDegPoly), returning 0 if every kernel vector vanishes. When d ≥ 1 and a
nonzero bounded-weighted-degree solution exists, minDegPoly is a nonzero solution
(Cslib.Code.Sudan.minDegPoly_spec) of minimum Y-degree
(Cslib.Code.Sudan.natDegree_minDegPoly_le). Specializing to point evaluations yields Sudan's
explicit least-Y-degree interpolant (Cslib.Code.Sudan.interpolant,
Cslib.Code.Sudan.isInterpolant_interpolant, Cslib.Code.Sudan.natDegree_interpolant_le);
CslibFrontier.Foundations.Data.Code.GuruswamiSudan instantiates the same machinery for
multiplicity-m shifted-coefficient constraints.
Least Y-degree makes every polynomial P of degree at most d with more than D agreements a
simple root of Q, viewed as a polynomial in Y: if (Y - P)² divided Q, then Q / (Y - P)
would be an interpolant of smaller Y-degree. On division by Y - P the bound D on the
weighted degree drops to D - d (Cslib.Code.Sudan.add_mul_add_one_le_of_mul, derived from
Polynomial.Bivariate.weightedDegree_mul and Polynomial.Bivariate.weightedDegree_X_sub_C),
so Q = (Y - P) * S where S(X, P(X)) is a nonzero polynomial of degree at most D - d
(Cslib.Code.Sudan.exists_eq_mul_eval_ne_zero). Simplicity is what lets the root P be lifted
from a single known value by Newton iteration (Cslib.Code.henselValue_eq).
Main definitions #
Cslib.Code.Sudan.monomials: the monomials of bounded weighted degree.Cslib.Code.Sudan.WeightedDegreeLE: bivariate polynomials of bounded(1, d)-weighted degree.Cslib.Code.Sudan.bivariateOf: the bivariate polynomial with given coefficients on a set of monomials.Cslib.Code.Sudan.monomialsUpTo: the monomials of bounded weighted degree and boundedY-degree.Cslib.Code.Sudan.coeffsOf: the coefficients on a set of monomials given by a vector indexed by its enumeration.Cslib.Code.Sudan.monomialMatrix,Cslib.Code.Sudan.minDegKernelVecUpTo,Cslib.Code.Sudan.minDegCoeffs,Cslib.Code.Sudan.minDegPoly: generic linear-constraint elimination selecting a bounded-weighted-degree bivariate solution of leastY-degree.Cslib.Code.Sudan.IsInterpolant: the bivariate interpolants of a received word.Cslib.Code.Sudan.interpMatrix,Cslib.Code.Sudan.kernelVecUpTo,Cslib.Code.Sudan.interpolantCoeffs,Cslib.Code.Sudan.interpolant: Sudan's interpolation matrix and least-Y-degree interpolant by elimination.
Main results #
Cslib.Code.Sudan.add_one_mul_add_two_le_two_mul_mul_card_monomials: counting the monomials.Cslib.Code.Sudan.WeightedDegreeLE.of_dvd: divisibility monotonicity for weighted degree.Cslib.Code.Sudan.WeightedDegreeLE.natDegree_mul_le,Cslib.Code.Sudan.IsInterpolant.natDegree_mul_le: theY-degree under a weighted-degree bound.Cslib.Code.Sudan.WeightedDegreeLE.natDegree_eval_le: the degree ofQ(X, P(X)).Cslib.Code.Sudan.exists_weightedDegreeLE_eq_zero,Cslib.Code.Sudan.minDegPoly_spec,Cslib.Code.Sudan.natDegree_minDegPoly_le,Cslib.Code.Sudan.minDegPoly_eq_zero_of_forall_eq_zero: existence, correctness, leastY-degree, and zero handling for generic linear-constraint elimination.Cslib.Code.Sudan.exists_isInterpolant: interpolants exist when there are more thannmonomials.Cslib.Code.Sudan.IsInterpolant.eval_eq_zero,Cslib.Code.Sudan.IsInterpolant.X_sub_C_dvd,Cslib.Code.Sudan.IsInterpolant.mem_roots: root containment, the polynomials with large agreement are roots of every interpolant.Cslib.Code.Sudan.weightedDegreeLE_interpolant,Cslib.Code.Sudan.isInterpolant_interpolant: the elimination interpolant has bounded weighted degree and is an interpolant.Cslib.Code.Sudan.natDegree_interpolant_le: it has leastY-degree.Cslib.Code.Sudan.add_mul_add_one_le_of_mul: division byY - Plowers the weighted degree byd.Cslib.Code.Sudan.exists_eq_mul_eval_ne_zero: polynomials with large agreement are simple roots of an interpolant of leastY-degree.
References #
- M. Sudan, Decoding of Reed Solomon codes beyond the error-correction bound
- [M. Sudan, L. Trevisan, S. Vadhan, Pseudorandom generators without the XOR lemma] [STV01]
- [V. Guruswami, A. Rudra, M. Sudan, Essential Coding Theory] [GRS19]
Monomials and weighted degree #
Counting monomials. For w ≥ 1 there are at least (D + 1) * (D + 2) / (2 * w) monomials
of (1, w)-weighted degree at most D: for each j ≤ D there are j / w + 1 ≥ (j + 1) / w of
weighted degree exactly j.
Q has (1, d)-weighted degree at most D: every nonzero coefficient Q_{a,b} X ^ a Y ^ b
has a + d * b ≤ D.
The zero polynomial has (1, d)-weighted degree at most D.
Monotonicity of (1, d)-weighted degree in the bound D.
If Q ≠ 0 has (1, d)-weighted degree at most D and S ∣ Q, then S also has
(1, d)-weighted degree at most D.
If Q has (1, d)-weighted degree at most D, its Y-degree satisfies
deg_Y Q * d ≤ D.
Evaluating Q(X, P(X)) at x evaluates Q at (x, P(x)).
Substituting Y = P(X), with P of degree at most d, into a bivariate polynomial of
(1, d)-weighted degree at most E gives a polynomial of degree at most E.
Bivariate polynomials from coefficients #
The bivariate polynomial with coefficient c m at X ^ m.1 * Y ^ m.2 for m ∈ M.
A bivariate polynomial whose monomials lie in M is bivariateOf M of its coefficients.
bivariateOf M c has (1, d)-weighted degree at most D when M ⊆ monomials d D.
Generic linear-constraint interpolation of least Y-degree #
The linear-constraint matrix for a family of row functionals entry : κ → ℕ × ℕ → F on a
monomial set M: rows index constraints k : κ (enumerated by Fintype.equivFin κ), columns index
monomials m ∈ M (enumerated by M.equivFin), and entry (t, col) is entry k m.
Existence of a nonzero bounded-weighted-degree solution. Whenever |κ| < #(monomials d D)
and the homogeneous linear functionals L : κ → F[X][Y] → F act on bivariateOf via
entry : κ → ℕ × ℕ → F, there exists a nonzero polynomial Q of (1, d)-weighted degree at most
D satisfying L k Q = 0 for all k.
The kernel vector of monomialMatrix entry on the monomials of (1, d)-weighted degree at
most D and Y-degree at most j.
The coefficients of the least-Y-degree solution for entry: those of the first nonzero
kernel vector among j = 0, 1, …, D / d, or zero if every kernel vector vanishes.
Least-Y-degree elimination polynomial for a linear constraint family entry on
monomials d D: reconstructs the bivariate polynomial from the first nonzero kernel vector among
Y-degree bounds j = 0, 1, …, D / d, and returns 0 if every kernel vector vanishes.
minDegPoly always has (1, d)-weighted degree at most D.
minDegPoly always has Y-degree at most D (for all d, including d = 0).
If every bounded-Y-degree kernel vector vanishes, minDegPoly is the zero polynomial.
minDegPoly always satisfies every linear constraint L k _ = 0 (for all d, D, including
when minDegPoly = 0 or d = 0).
Nonzero correctness of minDegPoly. When d ≥ 1 and there exists a nonzero solution of
(1, d)-weighted degree at most D, minDegPoly entry d D is nonzero, has (1, d)-weighted
degree at most D, and satisfies every constraint L k _ = 0.
Least Y-degree minimality of minDegPoly. When d ≥ 1, minDegPoly entry d D has
Y-degree at most that of every nonzero solution Q of (1, d)-weighted degree at most D.
Sudan interpolants #
Q is a Sudan interpolant for the received word w with evaluation points α, weight d
and weighted degree D: a nonzero bivariate polynomial of (1, d)-weighted degree at most D
that vanishes at the points (α i, w i).
- ne_zero : Q ≠ 0
The interpolant is nonzero.
- weightedDegree_le : WeightedDegreeLE d D Q
Every monomial
X ^ a * Y ^ bofQhas(1, d)-weighted degreea + d * bat mostD. - evalEval_eq_zero (i : ι) : Polynomial.evalEval (α i) (w i) Q = 0
The interpolant vanishes at the points
(α i, w i).
The Y-degree of a Sudan interpolant: deg_Y Q * d ≤ D.
Interpolation. If there are more than n monomials of (1, d)-weighted degree at most
D, every received word has a Sudan interpolant: the n conditions Q (α i, w i) = 0 are linear
in the coefficients of Q.
Root containment. With distinct points, if P has degree at most d and agrees with the
received word at more than D points, then Q(X, P(X)) = 0 for every Sudan interpolant Q.
Root containment. With distinct points, if P has degree at most d and agrees with the
received word at more than D points, then Y - P(X) divides every Sudan interpolant
Q(X, Y).
With distinct points, a polynomial of degree at most d that agrees with the received word
at more than D points is a root of every Sudan interpolant, as a polynomial in Y.
The interpolation matrix and interpolant of least Y-degree #
The interpolation matrix: its rows are the points (α i, w i) (enumerated by
Fintype.equivFin ι), its columns the monomials of M (enumerated by M.equivFin), and its
entries the values of the monomials at the points.
The product of a row of the interpolation matrix with a vector u is the value at the row's
point of the polynomial with coefficients u.
The kernel vector of the interpolation matrix on the monomials of Y-degree at most j.
An interpolant of least Y-degree, computed by elimination.
The elimination interpolant always has (1, d)-weighted degree at most D.
The elimination interpolant is an interpolant. With d ≥ 1 and more monomials of
(1, d)-weighted degree at most D than points, interpolant α w d D is a Sudan interpolant of
weight d and weighted degree D.
The elimination interpolant has least Y-degree among all Sudan interpolants.
Simplicity of the roots #
Division by Y - P lowers the weighted degree bound by d. If P has degree at most d
and (Y - P) * S has (1, d)-weighted degree at most D, then every monomial X ^ a * Y ^ b of
S has a + d * (b + 1) ≤ D.
Large agreement gives simple roots. Let Q be a Sudan interpolant of least Y-degree for
weight d and weighted degree D, with distinct points. If P has degree at most d and agrees
with the received word at more than D points, then Q = (Y - P) * S where S(X, P(X)) is a
nonzero polynomial of degree at most D - d.