Two-variable polynomials substituted into three variables #
For a polynomial g(X, Y) in two variables, this file computes the coefficient of XⁱYʲZᵏ in the
four three-variable polynomials g(X + Y, Z), g(X, Y + Z), g(X, Y) and g(Y, Z) in terms of
the coefficients of g. These are the four terms of the additive 2-cocycle identity
g(X, Y) + g(X + Y, Z) = g(X, Y + Z) + g(Y, Z), so these formulas turn that identity into linear
equations on the coefficients of g.
Main results #
MvPolynomial.coeff_add_pow_mul_X_pow_fin_three,MvPolynomial.coeff_X_pow_mul_X_pow_fin_three: the coefficients of(X a + X b) ^ m * X c ^ kandX a ^ m * X c ^ kfor distincta, b, c : Fin 3.MvPolynomial.coeff_aeval_X_add_X_X: the coefficient ofXⁱYʲZᵏing(X + Y, Z)is(i + j).choose itimes that ofXⁱ⁺ʲYᵏing.MvPolynomial.coeff_aeval_X_X_add_X: the coefficient ofXⁱYʲZᵏing(X, Y + Z)is(j + k).choose jtimes that ofXⁱYʲ⁺ᵏing.MvPolynomial.coeff_aeval_X_zero_X_one,MvPolynomial.coeff_aeval_X_one_X_two: the coefficients ofg(X, Y)andg(Y, Z).
theorem
MvPolynomial.coeff_aeval_X_add_X_X
{R : Type u_1}
[CommSemiring R]
(g : MvPolynomial (Fin 2) R)
(d : Fin 3 →₀ ℕ)
:
The coefficient of XⁱYʲZᵏ in g(X + Y, Z) is (i + j).choose i times that of Xⁱ⁺ʲYᵏ
in g.
theorem
MvPolynomial.coeff_aeval_X_X_add_X
{R : Type u_1}
[CommSemiring R]
(g : MvPolynomial (Fin 2) R)
(d : Fin 3 →₀ ℕ)
:
The coefficient of XⁱYʲZᵏ in g(X, Y + Z) is (j + k).choose j times that of XⁱYʲ⁺ᵏ
in g.
theorem
MvPolynomial.coeff_aeval_X_zero_X_one
{R : Type u_1}
[CommSemiring R]
(g : MvPolynomial (Fin 2) R)
(d : Fin 3 →₀ ℕ)
:
The coefficient of XⁱYʲZᵏ in g(X, Y) is that of XⁱYʲ in g if k = 0, and 0
otherwise.
theorem
MvPolynomial.coeff_aeval_X_one_X_two
{R : Type u_1}
[CommSemiring R]
(g : MvPolynomial (Fin 2) R)
(d : Fin 3 →₀ ℕ)
:
The coefficient of XⁱYʲZᵏ in g(Y, Z) is that of XʲYᵏ in g if i = 0, and 0
otherwise.