Interpolation of arithmetic formulas of unbounded fan-in #
Over a field of characteristic zero, a coefficient of a polynomial of degree at most r in one
variable is a fixed linear combination of its values at the nodes 0, 1, …, r
(Lagrange.coeff_eq_sum_coeff_basis_smul_eval). For a formula
Cslib.Circuits.Arithmetic.SPFormula, a value at a node is a substitution of a constant, or of a
multiple of an input, for an input, which changes neither the product-depth nor the shape of the
formula, and the linear combination is one sum gate on top. So the coefficients of a formula in
one of its variables, and its homogeneous components, have formulas of the same product-depth and
of r + 1 times the size [ChouKumarSolomon2019, Lemmas 4.10 and 4.11].
SPFormula.coeffLast i r Fcomputes the coefficient ofy ^ iof the polynomial ofF, viewed as a polynomial in its last variableywith coefficients in the other variables, when its degree inyis at mostr. The view is stated through the substitutions of constants fory:SPFormula.polynomial_coeffLastholds for everyP : Polynomial (MvPolynomial (Fin n) K)of degree at mostrwhose value at each constantαis the polynomial ofFwithαsubstituted for the last variable. The polynomialMvPolynomial.aeval (Fin.lastCases Polynomial.X fun k => Polynomial.C (MvPolynomial.X k))of the polynomial ofFis such aP, and so is its image under any other identification ofMvPolynomial (Fin (n + 1)) KwithPolynomial (MvPolynomial (Fin n) K)that sends the last variable toPolynomial.X.SPFormula.lowPartFormula d r Fcomputes the sum of the homogeneous components of degree at mostdof the polynomial ofF, when its total degree is at mostr: scaling every input bycmultiplies the component of degreekbyc ^ k, and the components are the coefficients inc.
The explicit size bounds, with the nodes 0, 1, …, r, are original.
Main definitions #
Cslib.Circuits.Arithmetic.SPFormula.coeffLast: a coefficient in the last variable.Cslib.Circuits.Arithmetic.SPFormula.lowPartFormula: the homogeneous components of low degree.
Main results #
Cslib.Circuits.Arithmetic.SPFormula.polynomial_coeffLast,Cslib.Circuits.Arithmetic.SPFormula.productDepth_coeffLast_le,Cslib.Circuits.Arithmetic.SPFormula.nodeCount_coeffLast_le: the coefficient, with the same product-depth and at most(r + 1) * F.nodeCount + 1nodes.Cslib.Circuits.Arithmetic.SPFormula.polynomial_lowPartFormula,Cslib.Circuits.Arithmetic.SPFormula.productDepth_lowPartFormula_le,Cslib.Circuits.Arithmetic.SPFormula.nodeCount_lowPartFormula_le: the low-degree part, with the same product-depth and at most(r + 1) * (3 * F.nodeCount) + 1nodes.
References #
- C.-N. Chou, M. Kumar, N. Solomon, Closure Results for Polynomial Factorization, Lemma 4.10 (Interpolation) and Lemma 4.11 (Interpolation for Formulas), in the numbering of arXiv:1803.05933v1, §4.6
A coefficient in the last variable #
The coefficient of y ^ i of a formula of degree at most r in its last variable y: the
linear combination, with the coefficients of degree i of the Lagrange basis polynomials at the
nodes 0, 1, …, r, of the formulas F with the constant j substituted for y.
coeffLast i r F computes the coefficient of degree i in the last variable
[ChouKumarSolomon2019, Lemma 4.11]: if P, a polynomial in one variable of degree at most r
over the polynomials in the other variables, takes at every constant α the value of the
polynomial of F with α substituted for its last variable, then coeffLast i r F computes
P.coeff i.
The homogeneous components of low degree #
The sum of the homogeneous components of degree at most d of a formula of total degree at
most r: the linear combination of the formulas F with every input scaled by the node j, for
the nodes 0, 1, …, r, that extracts the coefficients of degree at most d in the scaling
parameter.
lowPartFormula d r F computes the homogeneous components of degree at most d
[ChouKumarSolomon2019, Lemma 4.11] of the polynomial of a formula F of total degree at most
r.
The formula of the homogeneous components of low degree has at most
(r + 1) * (3 * F.nodeCount) + 1 nodes: r + 1 copies of F with every input replaced by the
three nodes of a scaled input, and a sum gate.