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.Polynomial.Expand

46 declarations. Mathlib docs · Source

def Polynomial.expand E1 #

(R : Type u) → [inst : CommSemiring R] → ℕ → Polynomial R →ₐ[R] Polynomial R

Expand the polynomial by a factor of p, so ∑ aₙ xⁿ becomes ∑ aₙ xⁿᵖ.

theorem Polynomial.coe_expand E0 #

∀ (R : Type u) [inst : CommSemiring R] (p : ℕ),
  ⇑(Polynomial.expand R p) = Polynomial.eval₂ Polynomial.C (Polynomial.X ^ p)

theorem Polynomial.expand_eq_comp_X_pow E1 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) {f : Polynomial R}, (Polynomial.expand R p) f = f.comp (Polynomial.X ^ p)

theorem Polynomial.expand_eq_sum E1 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) {f : Polynomial R},
  (Polynomial.expand R p) f = f.sum fun e a ↦ Polynomial.C a * (Polynomial.X ^ p) ^ e

theorem Polynomial.expand_C E0 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) (r : R), (Polynomial.expand R p) (Polynomial.C r) = Polynomial.C r

theorem Polynomial.expand_X E0 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ), (Polynomial.expand R p) Polynomial.X = Polynomial.X ^ p

theorem Polynomial.expand_monomial E0 #

∀ {R : Type u} [inst : CommSemiring R] (p q : ℕ) (r : R),
  (Polynomial.expand R p) ((Polynomial.monomial q) r) = (Polynomial.monomial (q * p)) r

theorem Polynomial.expand_expand E1 #

∀ {R : Type u} [inst : CommSemiring R] (p q : ℕ) (f : Polynomial R),
  (Polynomial.expand R p) ((Polynomial.expand R q) f) = (Polynomial.expand R (p * q)) f

theorem Polynomial.expand_mul E1 #

∀ {R : Type u} [inst : CommSemiring R] (p q : ℕ) (f : Polynomial R),
  (Polynomial.expand R (p * q)) f = (Polynomial.expand R p) ((Polynomial.expand R q) f)

theorem Polynomial.expand_zero E0 #

∀ {R : Type u} [inst : CommSemiring R] (f : Polynomial R),
  (Polynomial.expand R 0) f = Polynomial.C (Polynomial.eval 1 f)

theorem Polynomial.expand_one E0 #

∀ {R : Type u} [inst : CommSemiring R] (f : Polynomial R), (Polynomial.expand R 1) f = f

theorem Polynomial.expand_pow E1 #

∀ {R : Type u} [inst : CommSemiring R] (p q : ℕ) (f : Polynomial R),
  (Polynomial.expand R (p ^ q)) f = (⇑(Polynomial.expand R p))^[q] f

theorem Polynomial.derivative_expand E1 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) (f : Polynomial R),
  Polynomial.derivative ((Polynomial.expand R p) f) =
    (Polynomial.expand R p) (Polynomial.derivative f) * (↑p * Polynomial.X ^ (p - 1))

theorem Polynomial.coeff_expand E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  0 < p → ∀ (f : Polynomial R) (n : ℕ), ((Polynomial.expand R p) f).coeff n = if p ∣ n then f.coeff (n / p) else 0

theorem Polynomial.coeff_expand_mul E0 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  0 < p → ∀ (f : Polynomial R) (n : ℕ), ((Polynomial.expand R p) f).coeff (n * p) = f.coeff n

theorem Polynomial.coeff_expand_mul' E0 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  0 < p → ∀ (f : Polynomial R) (n : ℕ), ((Polynomial.expand R p) f).coeff (p * n) = f.coeff n

theorem Polynomial.expand_injective E1 #

∀ {R : Type u} [inst : CommSemiring R] {n : ℕ}, 0 < n → Function.Injective ⇑(Polynomial.expand R n)

Expansion is injective.

theorem Polynomial.expand_inj E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  0 < p → ∀ {f g : Polynomial R}, (Polynomial.expand R p) f = (Polynomial.expand R p) g ↔ f = g

theorem Polynomial.expand_eq_zero E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ}, 0 < p → ∀ {f : Polynomial R}, (Polynomial.expand R p) f = 0 ↔ f = 0

theorem Polynomial.expand_ne_zero E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ}, 0 < p → ∀ {f : Polynomial R}, (Polynomial.expand R p) f ≠ 0 ↔ f ≠ 0

theorem Polynomial.expand_eq_C E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  0 < p → ∀ {f : Polynomial R} {r : R}, (Polynomial.expand R p) f = Polynomial.C r ↔ f = Polynomial.C r

theorem Polynomial.natDegree_expand E1 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) (f : Polynomial R),
  ((Polynomial.expand R p) f).natDegree = f.natDegree * p

theorem Polynomial.leadingCoeff_expand E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ} {f : Polynomial R},
  0 < p → ((Polynomial.expand R p) f).leadingCoeff = f.leadingCoeff

theorem Polynomial.monic_expand_iff E0 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ} {f : Polynomial R}, 0 < p → (((Polynomial.expand R p) f).Monic ↔ f.Monic)

theorem Polynomial.Monic.expand E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ} {f : Polynomial R}, 0 < p → f.Monic → ((Polynomial.expand R p) f).Monic

Alias of the reverse direction of Polynomial.monic_expand_iff.

theorem Polynomial.map_expand E0 #

∀ {R : Type u} [inst : CommSemiring R] {S : Type v} [inst_1 : CommSemiring S] {p : ℕ} {f : R →+* S} {q : Polynomial R},
  Polynomial.map f ((Polynomial.expand R p) q) = (Polynomial.expand S p) (Polynomial.map f q)

theorem Polynomial.expand_eval E0 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) (P : Polynomial R) (r : R),
  Polynomial.eval r ((Polynomial.expand R p) P) = Polynomial.eval (r ^ p) P

theorem Polynomial.expand_aeval E0 #

∀ {R : Type u} [inst : CommSemiring R] {A : Type u_1} [inst_1 : Semiring A] [inst_2 : Algebra R A] (p : ℕ)
  (P : Polynomial R) (r : A), (Polynomial.aeval r) ((Polynomial.expand R p) P) = (Polynomial.aeval (r ^ p)) P

def Polynomial.contract E1 #

{R : Type u} → [inst : CommSemiring R] → ℕ → Polynomial R → Polynomial R

The opposite of expand: sends ∑ aₙ xⁿᵖ to ∑ aₙ xⁿ.

theorem Polynomial.coeff_contract E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  p ≠ 0 → ∀ (f : Polynomial R) (n : ℕ), (Polynomial.contract p f).coeff n = f.coeff (n * p)

theorem Polynomial.map_contract E0 #

∀ {R : Type u} [inst : CommSemiring R] {S : Type v} [inst_1 : CommSemiring S] {p : ℕ},
  p ≠ 0 →
    ∀ {f : R →+* S} {q : Polynomial R},
      Polynomial.map f (Polynomial.contract p q) = Polynomial.contract p (Polynomial.map f q)

theorem Polynomial.contract_expand E1 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) {f : Polynomial R},
  p ≠ 0 → Polynomial.contract p ((Polynomial.expand R p) f) = f

theorem Polynomial.contract_one E1 #

∀ {R : Type u} [inst : CommSemiring R] {f : Polynomial R}, Polynomial.contract 1 f = f

theorem Polynomial.contract_C E0 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) (r : R), Polynomial.contract p (Polynomial.C r) = Polynomial.C r

theorem Polynomial.contract_add E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  p ≠ 0 → ∀ (f g : Polynomial R), Polynomial.contract p (f + g) = Polynomial.contract p f + Polynomial.contract p g

theorem Polynomial.contract_mul_expand E1 #

∀ {R : Type u} [inst : CommSemiring R] {p : ℕ},
  p ≠ 0 → ∀ (f g : Polynomial R), Polynomial.contract p (f * (Polynomial.expand R p) g) = Polynomial.contract p f * g

theorem Polynomial.isCoprime_expand E0 #

∀ {R : Type u} [inst : CommSemiring R] {f g : Polynomial R} {p : ℕ},
  p ≠ 0 → (IsCoprime ((Polynomial.expand R p) f) ((Polynomial.expand R p) g) ↔ IsCoprime f g)

theorem Polynomial.expand_contract E1 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) [CharP R p] [NoZeroDivisors R] {f : Polynomial R},
  Polynomial.derivative f = 0 → p ≠ 0 → (Polynomial.expand R p) (Polynomial.contract p f) = f

theorem Polynomial.expand_contract' E1 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) [ExpChar R p] [NoZeroDivisors R] {f : Polynomial R},
  Polynomial.derivative f = 0 → (Polynomial.expand R p) (Polynomial.contract p f) = f

theorem Polynomial.map_frobenius_expand E0 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) [inst_1 : ExpChar R p] (f : Polynomial R),
  Polynomial.map (frobenius R p) ((Polynomial.expand R p) f) = f ^ p

theorem Polynomial.map_iterateFrobenius_expand E0 #

∀ {R : Type u} [inst : CommSemiring R] (p : ℕ) [inst_1 : ExpChar R p] (f : Polynomial R) (n : ℕ),
  Polynomial.map (iterateFrobenius R p n) ((Polynomial.expand R (p ^ n)) f) = f ^ p ^ n

theorem Polynomial.rootMultiplicity_expand_pow E1 #

∀ {R : Type u} [inst : CommRing R] {p n : ℕ} [ExpChar R p] {f : Polynomial R} {r : R},
  Polynomial.rootMultiplicity r ((Polynomial.expand R (p ^ n)) f) = p ^ n * Polynomial.rootMultiplicity (r ^ p ^ n) f

theorem Polynomial.rootMultiplicity_expand E1 #

∀ {R : Type u} [inst : CommRing R] {p : ℕ} [ExpChar R p] {f : Polynomial R} {r : R},
  Polynomial.rootMultiplicity r ((Polynomial.expand R p) f) = p * Polynomial.rootMultiplicity (r ^ p) f

theorem Polynomial.isLocalHom_expand E1 #

∀ (R : Type u) [inst : CommRing R] [IsDomain R] {p : ℕ}, 0 < p → IsLocalHom (Polynomial.expand R p)

theorem Polynomial.of_irreducible_expand E1 #

∀ {R : Type u} [inst : CommRing R] [IsDomain R] {p : ℕ},
  p ≠ 0 → ∀ {f : Polynomial R}, Irreducible ((Polynomial.expand R p) f) → Irreducible f

theorem Polynomial.of_irreducible_expand_pow E1 #

∀ {R : Type u} [inst : CommRing R] [IsDomain R] {p : ℕ},
  p ≠ 0 → ∀ {f : Polynomial R} {n : ℕ}, Irreducible ((Polynomial.expand R (p ^ n)) f) → Irreducible f