The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.MvPowerSeries.Basic
144 declarations. Mathlib docs · Source
Formal (multivariate) power series
This file defines multivariate formal power series and develops the basic properties of these objects.
A formal power series is to a polynomial like an infinite sum is to a finite sum.
We provide the natural inclusion from multivariate polynomials to multivariate formal power series.
Main definitions
-
MvPowerSeries.C: constant power series -
MvPowerSeries.X: the indeterminates -
MvPowerSeries.coeff,MvPowerSeries.constantCoeff: the coefficients of aMvPowerSeries, its constant coefficient -
MvPowerSeries.monomial: the monomials -
MvPowerSeries.coeff_mul: computes the coefficients of the product of twoMvPowerSeries -
MvPowerSeries.coeff_prod: computes the coefficients of products ofMvPowerSeries -
MvPowerSeries.coeff_pow: computes the coefficients of powers of aMvPowerSeries -
MvPowerSeries.coeff_eq_zero_of_constantCoeff_nilpotent: if the constant coefficient of aMvPowerSeriesis nilpotent, then some coefficients of its powers are automatically zero -
MvPowerSeries.map: apply aRingHomto the coefficients of aMvPowerSeries(as aRingHom). -
MvPowerSeries.X_pow_dvd_iff,MvPowerSeries.X_dvd_iff: equivalent conditions for (a power of) an indeterminate to divide aMvPowerSeries -
MvPolynomial.toMvPowerSeries: the canonical coercion fromMvPolynomialtoMvPowerSeries
Note
This file sets up the (semi)ring structure on multivariate power series: additional results are in:
Mathlib/RingTheory/MvPowerSeries/Inverse.lean: invertibility, formal power series over a local ring form a local ring;Mathlib/RingTheory/MvPowerSeries/Trunc.lean: truncation of power series.
In Mathlib/RingTheory/PowerSeries/Basic.lean, formal power series in one variable
will be obtained as a particular case, defined by
PowerSeries R := MvPowerSeries Unit R.
See that file for a specific description.
Implementation notes
In this file we define multivariate formal power series with
variables indexed by σ and coefficients in R as
MvPowerSeries σ R := (σ →₀ ℕ) → R.
Unfortunately there is not yet enough API to show that they are the completion
of the ring of multivariate polynomials. However, we provide most of the infrastructure
that is needed to do this. Once I-adic completion (topological or algebraic) is available
it should not be hard to fill in the details.
def MvPowerSeries E3 #
Type u_1 → Type u_2 → Type (max (max u_2 0) u_1)
Multivariate formal power series, where σ is the index set of the variables
and R is the coefficient ring.
instance MvPowerSeries.instInhabited E0 #
{σ : Type u_1} → {R : Type u_2} → [Inhabited R] → Inhabited (MvPowerSeries σ R)
instance MvPowerSeries.instZero E0 #
{σ : Type u_1} → {R : Type u_2} → [Zero R] → Zero (MvPowerSeries σ R)
instance MvPowerSeries.instAddMonoid E0 #
{σ : Type u_1} → {R : Type u_2} → [AddMonoid R] → AddMonoid (MvPowerSeries σ R)
instance MvPowerSeries.instAddGroup E0 #
{σ : Type u_1} → {R : Type u_2} → [AddGroup R] → AddGroup (MvPowerSeries σ R)
instance MvPowerSeries.instAddCommMonoid E0 #
{σ : Type u_1} → {R : Type u_2} → [AddCommMonoid R] → AddCommMonoid (MvPowerSeries σ R)
instance MvPowerSeries.instAddCommGroup E0 #
{σ : Type u_1} → {R : Type u_2} → [AddCommGroup R] → AddCommGroup (MvPowerSeries σ R)
instance MvPowerSeries.instNontrivial E0 #
∀ {σ : Type u_1} {R : Type u_2} [Nontrivial R], Nontrivial (MvPowerSeries σ R)
instance MvPowerSeries.instModule E0 #
{σ : Type u_1} →
{R : Type u_2} →
{A : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid A] → [Module R A] → Module R (MvPowerSeries σ A)
instance MvPowerSeries.instIsScalarTower E0 #
∀ {σ : Type u_1} {R : Type u_2} {A : Type u_3} {S : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid A] [inst_3 : Module R A] [inst_4 : Module S A] [inst_5 : SMul R S] [IsScalarTower R S A],
IsScalarTower R S (MvPowerSeries σ A)
def MvPowerSeries.monomial E3 #
{σ : Type u_1} → {R : Type u_2} → [inst : Semiring R] → (σ →₀ ℕ) → R →ₗ[R] MvPowerSeries σ R
The nth monomial as multivariate formal power series:
it is defined as the R-linear map from R to the semiring
of multivariate formal power series associating to each a
the map sending n : σ →₀ ℕ to the value a
and sending all other x : σ →₀ ℕ different from n to 0.
def MvPowerSeries.coeff E3 #
{σ : Type u_1} → {R : Type u_2} → [inst : Semiring R] → (σ →₀ ℕ) → MvPowerSeries σ R →ₗ[R] R
The nth coefficient of a multivariate formal power series.
theorem MvPowerSeries.coeff_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (f : MvPowerSeries σ R) (d : σ →₀ ℕ),
(MvPowerSeries.coeff d) f = f d
theorem MvPowerSeries.ext E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {φ ψ : MvPowerSeries σ R},
(∀ (n : σ →₀ ℕ), (MvPowerSeries.coeff n) φ = (MvPowerSeries.coeff n) ψ) → φ = ψ
Two multivariate formal power series are equal if all their coefficients are equal.
theorem MvPowerSeries.ext_iff E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {φ ψ : MvPowerSeries σ R},
φ = ψ ↔ ∀ (n : σ →₀ ℕ), (MvPowerSeries.coeff n) φ = (MvPowerSeries.coeff n) ψ
Two multivariate formal power series are equal if and only if all their coefficients are equal.
theorem MvPowerSeries.monomial_def E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq σ] (n : σ →₀ ℕ),
MvPowerSeries.monomial n = LinearMap.single R (fun x ↦ R) n
theorem MvPowerSeries.coeff_monomial E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq σ] (m n : σ →₀ ℕ) (a : R),
(MvPowerSeries.coeff m) ((MvPowerSeries.monomial n) a) = if m = n then a else 0
theorem MvPowerSeries.coeff_monomial_same E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (n : σ →₀ ℕ) (a : R),
(MvPowerSeries.coeff n) ((MvPowerSeries.monomial n) a) = a
theorem MvPowerSeries.coeff_monomial_ne E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {m n : σ →₀ ℕ},
m ≠ n → ∀ (a : R), (MvPowerSeries.coeff m) ((MvPowerSeries.monomial n) a) = 0
theorem MvPowerSeries.coeff_comp_monomial E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (n : σ →₀ ℕ),
MvPowerSeries.coeff n ∘ₗ MvPowerSeries.monomial n = LinearMap.id
theorem MvPowerSeries.coeff_zero E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (n : σ →₀ ℕ), (MvPowerSeries.coeff n) 0 = 0
theorem MvPowerSeries.ne_zero_iff_exists_coeff_ne_zero E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (f : MvPowerSeries σ R), f ≠ 0 ↔ ∃ d, (MvPowerSeries.coeff d) f ≠ 0
instance MvPowerSeries.instOne E0 #
{σ : Type u_1} → {R : Type u_2} → [Semiring R] → One (MvPowerSeries σ R)
theorem MvPowerSeries.coeff_one E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (n : σ →₀ ℕ) [inst_1 : DecidableEq σ],
(MvPowerSeries.coeff n) 1 = if n = 0 then 1 else 0
theorem MvPowerSeries.coeff_zero_one E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], (MvPowerSeries.coeff 0) 1 = 1
theorem MvPowerSeries.monomial_zero_one E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], (MvPowerSeries.monomial 0) 1 = 1
instance MvPowerSeries.instAddMonoidWithOne E0 #
{σ : Type u_1} → {R : Type u_2} → [Semiring R] → AddMonoidWithOne (MvPowerSeries σ R)
instance MvPowerSeries.instMul E0 #
{σ : Type u_1} → {R : Type u_2} → [Semiring R] → Mul (MvPowerSeries σ R)
theorem MvPowerSeries.coeff_mul E3 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (n : σ →₀ ℕ) (φ ψ : MvPowerSeries σ R) [inst_1 : DecidableEq σ],
(MvPowerSeries.coeff n) (φ * ψ) =
∑ p ∈ Finset.HasAntidiagonal.antidiagonal n, (MvPowerSeries.coeff p.1) φ * (MvPowerSeries.coeff p.2) ψ
theorem MvPowerSeries.zero_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R), 0 * φ = 0
theorem MvPowerSeries.mul_zero E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R), φ * 0 = 0
theorem MvPowerSeries.coeff_monomial_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (m n : σ →₀ ℕ) (φ : MvPowerSeries σ R) (a : R),
(MvPowerSeries.coeff m) ((MvPowerSeries.monomial n) a * φ) = if n ≤ m then a * (MvPowerSeries.coeff (m - n)) φ else 0
theorem MvPowerSeries.coeff_mul_monomial E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (m n : σ →₀ ℕ) (φ : MvPowerSeries σ R) (a : R),
(MvPowerSeries.coeff m) (φ * (MvPowerSeries.monomial n) a) = if n ≤ m then (MvPowerSeries.coeff (m - n)) φ * a else 0
theorem MvPowerSeries.coeff_add_monomial_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (m n : σ →₀ ℕ) (φ : MvPowerSeries σ R) (a : R),
(MvPowerSeries.coeff (m + n)) ((MvPowerSeries.monomial m) a * φ) = a * (MvPowerSeries.coeff n) φ
theorem MvPowerSeries.coeff_add_mul_monomial E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (m n : σ →₀ ℕ) (φ : MvPowerSeries σ R) (a : R),
(MvPowerSeries.coeff (m + n)) (φ * (MvPowerSeries.monomial n) a) = (MvPowerSeries.coeff m) φ * a
theorem MvPowerSeries.commute_monomial E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R) {a : R} {n : σ →₀ ℕ},
Commute φ ((MvPowerSeries.monomial n) a) ↔ ∀ (m : σ →₀ ℕ), Commute ((MvPowerSeries.coeff m) φ) a
theorem MvPowerSeries.one_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R), 1 * φ = φ
theorem MvPowerSeries.mul_one E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R), φ * 1 = φ
theorem MvPowerSeries.mul_add E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ₁ φ₂ φ₃ : MvPowerSeries σ R), φ₁ * (φ₂ + φ₃) = φ₁ * φ₂ + φ₁ * φ₃
theorem MvPowerSeries.add_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ₁ φ₂ φ₃ : MvPowerSeries σ R), (φ₁ + φ₂) * φ₃ = φ₁ * φ₃ + φ₂ * φ₃
theorem MvPowerSeries.mul_assoc E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ₁ φ₂ φ₃ : MvPowerSeries σ R), φ₁ * φ₂ * φ₃ = φ₁ * (φ₂ * φ₃)
instance MvPowerSeries.instSemiring E0 #
{σ : Type u_1} → {R : Type u_2} → [Semiring R] → Semiring (MvPowerSeries σ R)
instance MvPowerSeries.instCommSemiring E0 #
{σ : Type u_1} → {R : Type u_2} → [CommSemiring R] → CommSemiring (MvPowerSeries σ R)
instance MvPowerSeries.instRing E0 #
{σ : Type u_1} → {R : Type u_2} → [Ring R] → Ring (MvPowerSeries σ R)
instance MvPowerSeries.instCommRing E0 #
{σ : Type u_1} → {R : Type u_2} → [CommRing R] → CommRing (MvPowerSeries σ R)
theorem MvPowerSeries.monomial_mul_monomial E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (m n : σ →₀ ℕ) (a b : R),
(MvPowerSeries.monomial m) a * (MvPowerSeries.monomial n) b = (MvPowerSeries.monomial (m + n)) (a * b)
def MvPowerSeries.C E3 #
{σ : Type u_1} → {R : Type u_2} → [inst : Semiring R] → R →+* MvPowerSeries σ R
The constant multivariate formal power series.
theorem MvPowerSeries.monomial_zero_eq_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], ⇑(MvPowerSeries.monomial 0) = ⇑MvPowerSeries.C
theorem MvPowerSeries.monomial_zero_eq_C_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (a : R), (MvPowerSeries.monomial 0) a = MvPowerSeries.C a
theorem MvPowerSeries.coeff_C E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq σ] (n : σ →₀ ℕ) (a : R),
(MvPowerSeries.coeff n) (MvPowerSeries.C a) = if n = 0 then a else 0
theorem MvPowerSeries.coeff_zero_C E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (a : R), (MvPowerSeries.coeff 0) (MvPowerSeries.C a) = a
theorem MvPowerSeries.coeff_C_of_ne_zero E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {n : σ →₀ ℕ},
n ≠ 0 → ∀ (a : R), (MvPowerSeries.coeff n) (MvPowerSeries.C a) = 0
theorem MvPowerSeries.coeff_add_single_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {m : ℕ} [NeZero m] {n : σ →₀ ℕ} (a : R) (i : σ),
(MvPowerSeries.coeff (n + fun₀ | i => m)) (MvPowerSeries.C a) = 0
theorem MvPowerSeries.C_injective E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], Function.Injective ⇑MvPowerSeries.C
theorem MvPowerSeries.C_surjective E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [IsEmpty σ], Function.Surjective ⇑MvPowerSeries.C
theorem MvPowerSeries.C_inj E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (r s : R), MvPowerSeries.C r = MvPowerSeries.C s ↔ r = s
def MvPowerSeries.X E3 #
{σ : Type u_1} → {R : Type u_2} → [Semiring R] → σ → MvPowerSeries σ R
The variables of the multivariate formal power series ring.
theorem MvPowerSeries.coeff_X E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq σ] (n : σ →₀ ℕ) (s : σ),
(MvPowerSeries.coeff n) (MvPowerSeries.X s) = if n = fun₀ | s => 1 then 1 else 0
theorem MvPowerSeries.coeff_index_single_X E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq σ] (s t : σ),
(MvPowerSeries.coeff fun₀ | t => 1) (MvPowerSeries.X s) = if t = s then 1 else 0
theorem MvPowerSeries.coeff_index_single_self_X E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (s : σ), (MvPowerSeries.coeff fun₀ | s => 1) (MvPowerSeries.X s) = 1
theorem MvPowerSeries.coeff_zero_X E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (s : σ), (MvPowerSeries.coeff 0) (MvPowerSeries.X s) = 0
theorem MvPowerSeries.commute_X E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R) (s : σ), Commute φ (MvPowerSeries.X s)
theorem MvPowerSeries.X_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {φ : MvPowerSeries σ R} {s : σ},
MvPowerSeries.X s * φ = φ * MvPowerSeries.X s
theorem MvPowerSeries.commute_X_pow E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R) (s : σ) (n : ℕ),
Commute φ (MvPowerSeries.X s ^ n)
theorem MvPowerSeries.X_pow_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {φ : MvPowerSeries σ R} {s : σ} {n : ℕ},
MvPowerSeries.X s ^ n * φ = φ * MvPowerSeries.X s ^ n
theorem MvPowerSeries.X_def E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (s : σ),
MvPowerSeries.X s = (MvPowerSeries.monomial fun₀ | s => 1) 1
theorem MvPowerSeries.X_pow_eq E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (s : σ) (n : ℕ),
MvPowerSeries.X s ^ n = (MvPowerSeries.monomial fun₀ | s => n) 1
theorem MvPowerSeries.coeff_X_pow E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [inst_1 : DecidableEq σ] (m : σ →₀ ℕ) (s : σ) (n : ℕ),
(MvPowerSeries.coeff m) (MvPowerSeries.X s ^ n) = if m = fun₀ | s => n then 1 else 0
theorem MvPowerSeries.coeff_mul_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (n : σ →₀ ℕ) (φ : MvPowerSeries σ R) (a : R),
(MvPowerSeries.coeff n) (φ * MvPowerSeries.C a) = (MvPowerSeries.coeff n) φ * a
theorem MvPowerSeries.coeff_C_mul E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (n : σ →₀ ℕ) (φ : MvPowerSeries σ R) (a : R),
(MvPowerSeries.coeff n) (MvPowerSeries.C a * φ) = a * (MvPowerSeries.coeff n) φ
theorem MvPowerSeries.coeff_zero_mul_X E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R) (s : σ),
(MvPowerSeries.coeff 0) (φ * MvPowerSeries.X s) = 0
theorem MvPowerSeries.coeff_zero_X_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R) (s : σ),
(MvPowerSeries.coeff 0) (MvPowerSeries.X s * φ) = 0
def MvPowerSeries.constantCoeff E3 #
{σ : Type u_1} → {R : Type u_2} → [inst : Semiring R] → MvPowerSeries σ R →+* R
The constant coefficient of a formal power series.
theorem MvPowerSeries.coeff_zero_eq_constantCoeff E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], ⇑(MvPowerSeries.coeff 0) = ⇑MvPowerSeries.constantCoeff
theorem MvPowerSeries.coeff_zero_eq_constantCoeff_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R),
(MvPowerSeries.coeff 0) φ = MvPowerSeries.constantCoeff φ
theorem MvPowerSeries.constantCoeff_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (a : R), MvPowerSeries.constantCoeff (MvPowerSeries.C a) = a
theorem MvPowerSeries.constantCoeff_comp_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], MvPowerSeries.constantCoeff.comp MvPowerSeries.C = RingHom.id R
theorem MvPowerSeries.constantCoeff_zero E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], MvPowerSeries.constantCoeff 0 = 0
theorem MvPowerSeries.constantCoeff_one E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], MvPowerSeries.constantCoeff 1 = 1
theorem MvPowerSeries.constantCoeff_X E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (s : σ), MvPowerSeries.constantCoeff (MvPowerSeries.X s) = 0
theorem MvPowerSeries.constantCoeff_smul E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {S : Type u_3} [inst_1 : Semiring S] [inst_2 : Module R S]
(φ : MvPowerSeries σ S) (a : R), MvPowerSeries.constantCoeff (a • φ) = a • MvPowerSeries.constantCoeff φ
theorem MvPowerSeries.isUnit_constantCoeff E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (φ : MvPowerSeries σ R),
IsUnit φ → IsUnit (MvPowerSeries.constantCoeff φ)
If a multivariate formal power series is invertible, then so is its constant coefficient.
theorem MvPowerSeries.coeff_smul E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (f : MvPowerSeries σ R) (n : σ →₀ ℕ) (a : R),
(MvPowerSeries.coeff n) (a • f) = a * (MvPowerSeries.coeff n) f
theorem MvPowerSeries.smul_eq_C_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] (f : MvPowerSeries σ R) (a : R), a • f = MvPowerSeries.C a * f
theorem MvPowerSeries.X_inj E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] [Nontrivial R] {s t : σ},
MvPowerSeries.X s = MvPowerSeries.X t ↔ s = t
def MvPowerSeries.map E3 #
{σ : Type u_1} →
{R : Type u_2} →
{S : Type u_3} → [inst : Semiring R] → [inst_1 : Semiring S] → (R →+* S) → MvPowerSeries σ R →+* MvPowerSeries σ S
The map between multivariate formal power series induced by a map on the coefficients.
theorem MvPowerSeries.map_id E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R], MvPowerSeries.map (RingHom.id R) = RingHom.id (MvPowerSeries σ R)
theorem MvPowerSeries.map_comp E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} {T : Type u_4} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : Semiring T] (f : R →+* S) (g : S →+* T),
MvPowerSeries.map (g.comp f) = (MvPowerSeries.map g).comp (MvPowerSeries.map f)
theorem MvPowerSeries.coeff_map E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (n : σ →₀ ℕ)
(φ : MvPowerSeries σ R), (MvPowerSeries.coeff n) ((MvPowerSeries.map f) φ) = f ((MvPowerSeries.coeff n) φ)
theorem MvPowerSeries.constantCoeff_map E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S)
(φ : MvPowerSeries σ R), MvPowerSeries.constantCoeff ((MvPowerSeries.map f) φ) = f (MvPowerSeries.constantCoeff φ)
theorem MvPowerSeries.map_monomial E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (n : σ →₀ ℕ)
(a : R), (MvPowerSeries.map f) ((MvPowerSeries.monomial n) a) = (MvPowerSeries.monomial n) (f a)
theorem MvPowerSeries.map_C E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (a : R),
(MvPowerSeries.map f) (MvPowerSeries.C a) = MvPowerSeries.C (f a)
theorem MvPowerSeries.map_X E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (s : σ),
(MvPowerSeries.map f) (MvPowerSeries.X s) = MvPowerSeries.X s
theorem MvPowerSeries.map_map E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {S₁ : Type u_5} {S₂ : Type u_6} [inst_1 : CommSemiring S₁]
[inst_2 : CommSemiring S₂] (f : R →+* S₁) (g : S₁ →+* S₂) (p : MvPowerSeries σ R),
(MvPowerSeries.map g) ((MvPowerSeries.map f) p) = (MvPowerSeries.map (g.comp f)) p
def MvPowerSeries.toSubring E1 #
{σ : Type u_1} →
{R : Type u_2} →
[inst : Ring R] →
(p : MvPowerSeries σ R) → (T : Subring R) → (∀ (n : σ →₀ ℕ), (MvPowerSeries.coeff n) p ∈ T) → MvPowerSeries σ ↥T
Given a multivariate formal power series p and a subring T that contains the
coefficients of p, return the corresponding multivariate formal power series
whose coefficients are in T.
theorem MvPowerSeries.coeff_toSubring E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Ring R] (p : MvPowerSeries σ R) (T : Subring R)
(hp : ∀ (n : σ →₀ ℕ), (MvPowerSeries.coeff n) p ∈ T) {n : σ →₀ ℕ},
↑((MvPowerSeries.coeff n) (p.toSubring T hp)) = (MvPowerSeries.coeff n) p
theorem MvPowerSeries.constantCoeff_toSubring E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Ring R] (p : MvPowerSeries σ R) (T : Subring R)
(hp : ∀ (n : σ →₀ ℕ), (MvPowerSeries.coeff n) p ∈ T),
↑(MvPowerSeries.constantCoeff (p.toSubring T hp)) = MvPowerSeries.constantCoeff p
theorem MvPowerSeries.map_toSubring E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Ring R] (p : MvPowerSeries σ R) (T : Subring R)
(hp : ∀ (n : σ →₀ ℕ), (MvPowerSeries.coeff n) p ∈ T), (MvPowerSeries.map T.subtype) (p.toSubring T hp) = p
theorem MvPowerSeries.map_eq_zero E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : DivisionSemiring R] [inst_1 : Semiring S] [Nontrivial S]
(φ : MvPowerSeries σ R) (f : R →+* S), (MvPowerSeries.map f) φ = 0 ↔ φ = 0
theorem MvPowerSeries.X_pow_dvd_iff E3 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {s : σ} {n : ℕ} {φ : MvPowerSeries σ R},
MvPowerSeries.X s ^ n ∣ φ ↔ ∀ (m : σ →₀ ℕ), m s < n → (MvPowerSeries.coeff m) φ = 0
theorem MvPowerSeries.X_dvd_iff E3 #
∀ {σ : Type u_1} {R : Type u_2} [inst : Semiring R] {s : σ} {φ : MvPowerSeries σ R},
MvPowerSeries.X s ∣ φ ↔ ∀ (m : σ →₀ ℕ), m s = 0 → (MvPowerSeries.coeff m) φ = 0
theorem MvPowerSeries.coeff_prod E3 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {ι : Type u_4} [inst_1 : DecidableEq ι] [inst_2 : DecidableEq σ]
(f : ι → MvPowerSeries σ R) (d : σ →₀ ℕ) (s : Finset ι),
(MvPowerSeries.coeff d) (∏ j ∈ s, f j) = ∑ l ∈ s.finsuppAntidiag d, ∏ i ∈ s, (MvPowerSeries.coeff (l i)) (f i)
Coefficients of a product of power series
theorem MvPowerSeries.prod_monomial E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {ι : Type u_4} (f : ι → σ →₀ ℕ) (g : ι → R) (s : Finset ι),
∏ i ∈ s, (MvPowerSeries.monomial (f i)) (g i) = (MvPowerSeries.monomial (∑ i ∈ s, f i)) (∏ i ∈ s, g i)
theorem MvPowerSeries.coeff_pow E3 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] [inst_1 : DecidableEq σ] (f : MvPowerSeries σ R) {n : ℕ}
(d : σ →₀ ℕ),
(MvPowerSeries.coeff d) (f ^ n) =
∑ l ∈ (Finset.range n).finsuppAntidiag d, ∏ i ∈ Finset.range n, (MvPowerSeries.coeff (l i)) f
The dth coefficient of a power of a multivariate power series
is the sum, indexed by finsuppAntidiag (Finset.range n) d, of products of coefficients
theorem MvPowerSeries.monomial_pow E1 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] (m : σ →₀ ℕ) (a : R) (n : ℕ),
(MvPowerSeries.monomial m) a ^ n = (MvPowerSeries.monomial (n • m)) (a ^ n)
theorem MvPowerSeries.coeff_eq_zero_of_constantCoeff_nilpotent E3 #
∀ {σ : Type u_1} {R : Type u_3} [inst : CommSemiring R] {f : MvPowerSeries σ R} {m : ℕ},
MvPowerSeries.constantCoeff f ^ m = 0 →
∀ {d : σ →₀ ℕ} {n : ℕ}, m + Finsupp.degree d ≤ n → (MvPowerSeries.coeff d) (f ^ n) = 0
Vanishing of coefficients of powers of multivariate power series when the constant coefficient is nilpotent [N. Bourbaki, Algebra II, Chapter 4, §4, n°2, proposition 3][bourbaki1981]
instance MvPowerSeries.instAlgebra E0 #
{σ : Type u_1} →
{R : Type u_2} →
{A : Type u_3} → [inst : CommSemiring R] → [inst_1 : Semiring A] → [Algebra R A] → Algebra R (MvPowerSeries σ A)
theorem MvPowerSeries.c_eq_algebraMap E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R], MvPowerSeries.C = algebraMap R (MvPowerSeries σ R)
theorem MvPowerSeries.algebraMap_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
{r : R}, (algebraMap R (MvPowerSeries σ A)) r = MvPowerSeries.C ((algebraMap R A) r)
def MvPowerSeries.mapAlgHom E1 #
{σ : Type u_1} →
{R : Type u_2} →
{A : Type u_3} →
[inst : CommSemiring R] →
[inst_1 : Semiring A] →
[inst_2 : Algebra R A] →
{B : Type u_4} →
[inst_3 : Semiring B] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → MvPowerSeries σ A →ₐ[R] MvPowerSeries σ B
Change of coefficients in mv power series, as an AlgHom
theorem MvPowerSeries.mapAlgHom_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
{B : Type u_4} [inst_3 : Semiring B] [inst_4 : Algebra R B] (φ : A →ₐ[R] B) (f : MvPowerSeries σ A),
(MvPowerSeries.mapAlgHom φ) f = (MvPowerSeries.map ↑φ) f
instance MvPowerSeries.instNontrivialSubalgebraOfNonempty E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] [Nonempty σ] [Nontrivial R],
Nontrivial (Subalgebra R (MvPowerSeries σ R))
def MvPolynomial.toMvPowerSeries E3 #
{σ : Type u_1} → {R : Type u_2} → [inst : CommSemiring R] → MvPolynomial σ R → MvPowerSeries σ R
The natural inclusion from multivariate polynomials into multivariate formal power series.
instance MvPolynomial.coeToMvPowerSeries E0 #
{σ : Type u_1} → {R : Type u_2} → [inst : CommSemiring R] → Coe (MvPolynomial σ R) (MvPowerSeries σ R)
The natural inclusion from multivariate polynomials into multivariate formal power series.
theorem MvPolynomial.coe_def E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (φ : MvPolynomial σ R), ↑φ = fun n ↦ φ.coeff n
theorem MvPolynomial.coeff_coe E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (φ : MvPolynomial σ R) (n : σ →₀ ℕ),
(MvPowerSeries.coeff n) ↑φ = φ.coeff n
theorem MvPolynomial.coe_monomial E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (n : σ →₀ ℕ) (a : R),
↑((MvPolynomial.monomial n) a) = (MvPowerSeries.monomial n) a
theorem MvPolynomial.coe_zero E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R], ↑0 = 0
theorem MvPolynomial.coe_one E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R], ↑1 = 1
theorem MvPolynomial.coe_add E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (φ ψ : MvPolynomial σ R), ↑(φ + ψ) = ↑φ + ↑ψ
theorem MvPolynomial.coe_mul E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (φ ψ : MvPolynomial σ R), ↑(φ * ψ) = ↑φ * ↑ψ
theorem MvPolynomial.coe_smul E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (φ : MvPolynomial σ R) (r : R), ↑(r • φ) = r • ↑φ
theorem MvPolynomial.coe_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (a : R), ↑(MvPolynomial.C a) = MvPowerSeries.C a
theorem MvPolynomial.coe_X E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (s : σ), ↑(MvPolynomial.X s) = MvPowerSeries.X s
theorem MvPolynomial.coe_injective E0 #
∀ (σ : Type u_1) (R : Type u_2) [inst : CommSemiring R], Function.Injective MvPolynomial.toMvPowerSeries
theorem MvPolynomial.coe_inj E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {φ ψ : MvPolynomial σ R}, ↑φ = ↑ψ ↔ φ = ψ
theorem MvPolynomial.coe_eq_zero_iff E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {φ : MvPolynomial σ R}, ↑φ = 0 ↔ φ = 0
theorem MvPolynomial.coe_eq_one_iff E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {φ : MvPolynomial σ R}, ↑φ = 1 ↔ φ = 1
def MvPolynomial.coeToMvPowerSeries.ringHom E1 #
{σ : Type u_1} → {R : Type u_2} → [inst : CommSemiring R] → MvPolynomial σ R →+* MvPowerSeries σ R
The coercion from multivariate polynomials to multivariate power series as a ring homomorphism.
theorem MvPolynomial.coe_pow E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {φ : MvPolynomial σ R} (n : ℕ), ↑(φ ^ n) = ↑φ ^ n
theorem MvPolynomial.coeToMvPowerSeries.ringHom_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (φ : MvPolynomial σ R),
MvPolynomial.coeToMvPowerSeries.ringHom φ = ↑φ
theorem MvPowerSeries.monomial_one_eq E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (e : σ →₀ ℕ),
(MvPowerSeries.monomial e) 1 = e.prod fun s n ↦ MvPowerSeries.X s ^ n
theorem MvPowerSeries.monomial_eq' E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (e : σ →₀ ℕ) (r : R),
(MvPowerSeries.monomial e) r = MvPowerSeries.C r * e.prod fun s e ↦ MvPowerSeries.X s ^ e
theorem MvPowerSeries.monomial_smul_eq E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (e : σ →₀ ℕ) (p : ℕ) (r : R),
(MvPowerSeries.monomial (p • e)) r = MvPowerSeries.C r * e.prod fun s e ↦ (MvPowerSeries.X s ^ p) ^ e
theorem MvPowerSeries.monomial_mapDomain_apply_one E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {τ : Type u_3} (d : σ →₀ ℕ) (f : σ → τ),
(MvPowerSeries.monomial (Finsupp.mapDomain f d)) 1 = d.prod fun s e ↦ MvPowerSeries.X (f s) ^ e
def MvPolynomial.coeToMvPowerSeries.algHom E1 #
{σ : Type u_1} →
{R : Type u_2} →
[inst : CommSemiring R] →
(A : Type u_3) → [inst_1 : CommSemiring A] → [inst_2 : Algebra R A] → MvPolynomial σ R →ₐ[R] MvPowerSeries σ A
The coercion from multivariate polynomials to multivariate power series as an algebra homomorphism.
theorem MvPolynomial.coeToMvPowerSeries.algHom_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (φ : MvPolynomial σ R) (A : Type u_3) [inst_1 : CommSemiring A]
[inst_2 : Algebra R A], (MvPolynomial.coeToMvPowerSeries.algHom A) φ = (MvPowerSeries.map (algebraMap R A)) ↑φ
theorem MvPowerSeries.prod_smul_X_eq_smul_monomial_one E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {A : Type u_4} [inst_1 : CommSemiring A] [inst_2 : Algebra A R]
(e : σ →₀ ℕ) (a : σ → A),
(e.prod fun s n ↦ (a s • MvPowerSeries.X s) ^ n) = (e.prod fun s n ↦ a s ^ n) • (MvPowerSeries.monomial e) 1
theorem MvPowerSeries.monomial_eq E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] (e : σ →₀ ℕ) (r : σ → R),
(MvPowerSeries.monomial e) (e.prod fun s n ↦ r s ^ n) = e.prod fun s e ↦ (r s • MvPowerSeries.X s) ^ e
theorem MvPowerSeries.monomial_smul_const E1 #
∀ {σ : Type u_4} {R : Type u_5} [inst : CommSemiring R] (e : σ →₀ ℕ) (r : R),
(MvPowerSeries.monomial e) (r ^ e.sum fun x n ↦ n) = e.prod fun s e ↦ (r • MvPowerSeries.X s) ^ e
instance MvPowerSeries.algebraMvPolynomial E0 #
{σ : Type u_1} →
{R : Type u_2} →
{A : Type u_3} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring A] → [Algebra R A] → Algebra (MvPolynomial σ R) (MvPowerSeries σ A)
instance MvPowerSeries.algebraMvPowerSeries E0 #
{σ : Type u_1} →
{R : Type u_2} →
{A : Type u_3} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring A] → [Algebra R A] → Algebra (MvPowerSeries σ R) (MvPowerSeries σ A)
theorem MvPowerSeries.algebraMap_apply' E1 #
∀ {σ : Type u_1} {R : Type u_2} (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring A] [inst_2 : Algebra R A]
(p : MvPolynomial σ R),
(algebraMap (MvPolynomial σ R) (MvPowerSeries σ A)) p = (MvPowerSeries.map (algebraMap R A)) ↑p
theorem MvPowerSeries.algebraMap_apply'' E1 #
∀ {σ : Type u_1} {R : Type u_2} (A : Type u_3) [inst : CommSemiring R] [inst_1 : CommSemiring A] [inst_2 : Algebra R A]
(f : MvPowerSeries σ R),
(algebraMap (MvPowerSeries σ R) (MvPowerSeries σ A)) f = (MvPowerSeries.map (algebraMap R A)) f