The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V09. Commutative algebra I: ideals, polynomials, factorization

Mathlib.Algebra.MvPolynomial.Coeff

5 declarations. Mathlib docs · Source

theorem MvPolynomial.coeff_linearCombination_X_pow E1 #

∀ {R : Type u_1} {σ : Type u_2} [inst : CommSemiring R] (a : σ →₀ R) (s : σ →₀ ℕ) (n : ℕ),
  ((Finsupp.linearCombination R MvPolynomial.X) a ^ n).coeff s =
    if (s.sum fun x m ↦ m) = n then ↑s.multinomial * s.prod fun r m ↦ a r ^ m else 0

theorem MvPolynomial.coeff_linearCombination_X_pow_of_fintype E1 #

∀ {R : Type u_1} {σ : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype σ] (a : σ → R) (s : σ →₀ ℕ) (n : ℕ),
  ((∑ i, a i • MvPolynomial.X i) ^ n).coeff s =
    if (s.sum fun x m ↦ m) = n then ↑s.multinomial * s.prod fun r m ↦ a r ^ m else 0

theorem MvPolynomial.coeff_sum_X_pow_of_fintype E1 #

∀ {R : Type u_1} {σ : Type u_2} [inst : CommSemiring R] [inst_1 : Fintype σ] (d : σ →₀ ℕ) (n : ℕ),
  ((∑ i, MvPolynomial.X i) ^ n).coeff d = ↑(if (d.sum fun x m ↦ m) = n then d.multinomial else 0)

theorem MvPolynomial.coeff_add_pow E2 #

∀ {R : Type u_1} [inst : CommSemiring R] (d : Fin 2 →₀ ℕ) (n : ℕ),
  ((MvPolynomial.X 0 + MvPolynomial.X 1) ^ n).coeff d =
    ↑(if (d 0, d 1) ∈ Finset.HasAntidiagonal.antidiagonal n then n.choose (d 0) else 0)

The formula for the dth coefficient of (X 0 + X 1) ^ n.

theorem MvPolynomial.monomial_fin_two E1 #

∀ {R : Type u_1} [inst : CommSemiring R] (d : Fin 2 →₀ ℕ) (a : R),
  (MvPolynomial.monomial d) a = MvPolynomial.C a * MvPolynomial.X 0 ^ d 0 * MvPolynomial.X 1 ^ d 1

A monomial in two variables equals C a * X 0 ^ d 0 * X 1 ^ d 1.