The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.MvPowerSeries.Trunc
50 declarations. Mathlib docs · Source
Formal (multivariate) power series - Truncation
-
MvPowerSeries.truncFinset s prestricts the support of a multivariate power seriespto a finite set of monomials and obtains a multivariate polynomial. -
MvPowerSeries.trunc n φtruncates a formal multivariate power series to the multivariate polynomial that has the same coefficients asφ, for allm < n, and0otherwise.Note that here,
mandnhave typesσ →₀ ℕ, so thatm < nmeans thatm ≠ nandm s ≤ n sfor alls : σ. -
MvPowerSeries.trunc_one: truncation of the unit power series -
MvPowerSeries.trunc_C: truncation of a constant -
MvPowerSeries.trunc_C_mul: truncation of constant multiple. -
MvPowerSeries.trunc' n φtruncates a formal multivariate power series to the multivariate polynomial that has the same coefficients asφ, for allm ≤ n, and0otherwise.Here,
mandnhave typesσ →₀ ℕso thatm ≤ nmeans thatm s ≤ n sfor alls : σ. -
MvPowerSeries.coeff_mul_eq_coeff_trunc'_mul_trunc': compares the coefficients of a product with those of the product of truncations. -
MvPowerSeries.trunc'_one: truncation of the unit power series. -
MvPowerSeries.trunc'_C: truncation of a constant. -
MvPowerSeries.trunc'_C_mul: truncation of a constant multiple. -
MvPowerSeries.trunc'_map: image of a truncation under a change of rings -
MvPowerSeries.truncTotal: the truncation of a multivariate formal power series at a total degreenwhen the indexσis finite
theorem MvPowerSeries.truncTotal.congr_simp E1 #
∀ {σ : Type u_1} [inst : Finite σ] {R : Type u_4} [inst_1 : CommSemiring R] (n n_1 : ℕ),
n = n_1 → MvPowerSeries.truncTotal n = MvPowerSeries.truncTotal n_1
def MvPowerSeries.truncFinset E1 #
{σ : Type u_1} → (R : Type u_4) → [inst : CommSemiring R] → Finset (σ →₀ ℕ) → MvPowerSeries σ R →ₗ[R] MvPolynomial σ R
Restrict the support of a multivariate power series to a finite set of monomials and obtain a multivariate polynomial.
theorem MvPowerSeries.truncFinset_apply E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} (p : MvPowerSeries σ R),
(MvPowerSeries.truncFinset R s) p = ∑ x ∈ s, (MvPolynomial.monomial x) ((MvPowerSeries.coeff x) p)
theorem MvPowerSeries.coeff_truncFinset_of_mem E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} {x : σ →₀ ℕ} (p : MvPowerSeries σ R),
x ∈ s → ((MvPowerSeries.truncFinset R s) p).coeff x = (MvPowerSeries.coeff x) p
theorem MvPowerSeries.coeff_truncFinset_eq_zero E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} {x : σ →₀ ℕ} (p : MvPowerSeries σ R),
x ∉ s → ((MvPowerSeries.truncFinset R s) p).coeff x = 0
theorem MvPowerSeries.coeff_truncFinset E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} [inst_1 : DecidableEq σ] {x : σ →₀ ℕ}
(p : MvPowerSeries σ R), ((MvPowerSeries.truncFinset R s) p).coeff x = if x ∈ s then (MvPowerSeries.coeff x) p else 0
theorem MvPowerSeries.truncFinset_monomial E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} {x : σ →₀ ℕ} (r : R),
x ∈ s → (MvPowerSeries.truncFinset R s) ((MvPowerSeries.monomial x) r) = (MvPolynomial.monomial x) r
theorem MvPowerSeries.truncFinset_monomial_eq_zero E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} {x : σ →₀ ℕ} (r : R),
x ∉ s → (MvPowerSeries.truncFinset R s) ((MvPowerSeries.monomial x) r) = 0
theorem MvPowerSeries.truncFinset_C E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)},
0 ∈ s → ∀ (r : R), (MvPowerSeries.truncFinset R s) (MvPowerSeries.C r) = MvPolynomial.C r
theorem MvPowerSeries.truncFinset_one E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)},
0 ∈ s → (MvPowerSeries.truncFinset R s) 1 = 1
theorem MvPowerSeries.truncFinset_truncFinset E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s t : Finset (σ →₀ ℕ)},
s ⊆ t →
∀ (p : MvPowerSeries σ R),
(MvPowerSeries.truncFinset R s) ↑((MvPowerSeries.truncFinset R t) p) = (MvPowerSeries.truncFinset R s) p
theorem MvPowerSeries.truncFinset_map E1 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} [inst_1 : CommSemiring S]
(f : R →+* S) (p : MvPowerSeries σ R),
(MvPowerSeries.truncFinset S s) ((MvPowerSeries.map f) p) = (MvPolynomial.map f) ((MvPowerSeries.truncFinset R s) p)
theorem MvPowerSeries.coeff_truncFinset_mul_truncFinset_eq_coeff_mul₂ E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s t : Finset (σ →₀ ℕ)},
IsLowerSet ↑s →
IsLowerSet ↑t →
∀ {x : σ →₀ ℕ} (f g : MvPowerSeries σ R),
x ∈ s →
x ∈ t →
((MvPowerSeries.truncFinset R s) f * (MvPowerSeries.truncFinset R t) g).coeff x =
(MvPowerSeries.coeff x) (f * g)
A coefficient of a product of finset-truncated power series equals the coefficient of the
untruncated product, with the two truncation finsets s and t allowed to differ.
theorem MvPowerSeries.coeff_truncFinset_mul_truncFinset_eq_coeff_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)},
IsLowerSet ↑s →
∀ {x : σ →₀ ℕ} (f g : MvPowerSeries σ R),
x ∈ s →
((MvPowerSeries.truncFinset R s) f * (MvPowerSeries.truncFinset R s) g).coeff x =
(MvPowerSeries.coeff x) (f * g)
theorem MvPowerSeries.truncFinset_truncFinset_pow E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)},
IsLowerSet ↑s →
∀ {k : ℕ} (p : MvPowerSeries σ R),
(MvPowerSeries.truncFinset R s) (↑((MvPowerSeries.truncFinset R s) p) ^ k) =
(MvPowerSeries.truncFinset R s) (p ^ k)
theorem MvPowerSeries.support_truncFinset_subset E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} (p : MvPowerSeries σ R),
((MvPowerSeries.truncFinset R s) p).support ⊆ s
theorem MvPowerSeries.totalDegree_truncFinset E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} (p : MvPowerSeries σ R),
((MvPowerSeries.truncFinset R s) p).totalDegree ≤ s.sup ⇑Finsupp.degree
theorem MvPowerSeries.truncFinset_coe_eq_self_iff E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : CommSemiring R] {s : Finset (σ →₀ ℕ)} (p : MvPolynomial σ R),
(MvPowerSeries.truncFinset R s) ↑p = p ↔ p.support ⊆ s
def MvPowerSeries.trunc E1 #
{σ : Type u_1} →
[DecidableEq σ] → (R : Type u_4) → [inst : CommSemiring R] → (σ →₀ ℕ) → MvPowerSeries σ R →ₗ[R] MvPolynomial σ R
The nth truncation of a multivariate formal power series to a multivariate polynomial
If f : MvPowerSeries σ R and n : σ →₀ ℕ is a (finitely-supported) function from σ
to the naturals, then trunc R n f is the multivariable polynomial obtained from f
by keeping only the monomials $c\prod_i X_i^{a_i}$ where a i ≤ n i for all i
and a i < n i for some i.
theorem MvPowerSeries.coeff_trunc E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (m n : σ →₀ ℕ) (φ : MvPowerSeries σ R),
((MvPowerSeries.trunc R n) φ).coeff m = if m < n then (MvPowerSeries.coeff m) φ else 0
theorem MvPowerSeries.trunc_one E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ),
n ≠ 0 → (MvPowerSeries.trunc R n) 1 = 1
theorem MvPowerSeries.trunc_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ),
n ≠ 0 → ∀ (a : R), (MvPowerSeries.trunc R n) (MvPowerSeries.C a) = MvPolynomial.C a
theorem MvPowerSeries.trunc_C_mul E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ) (a : R)
(p : MvPowerSeries σ R),
(MvPowerSeries.trunc R n) (MvPowerSeries.C a * p) = MvPolynomial.C a * (MvPowerSeries.trunc R n) p
theorem MvPowerSeries.trunc_map E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : DecidableEq σ] [inst_1 : CommSemiring R]
[inst_2 : CommSemiring S] (n : σ →₀ ℕ) (f : R →+* S) (p : MvPowerSeries σ R),
(MvPowerSeries.trunc S n) ((MvPowerSeries.map f) p) = (MvPolynomial.map f) ((MvPowerSeries.trunc R n) p)
theorem MvPowerSeries.coeff_trunc_mul_trunc_eq_coeff_mul₂ E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n₁ n₂ : σ →₀ ℕ)
(f g : MvPowerSeries σ R) {m : σ →₀ ℕ},
m < n₁ →
m < n₂ → ((MvPowerSeries.trunc R n₁) f * (MvPowerSeries.trunc R n₂) g).coeff m = (MvPowerSeries.coeff m) (f * g)
A coefficient of a product of truncated power series equals the coefficient of the untruncated
product, with the two truncation levels n₁ and n₂ allowed to differ.
theorem MvPowerSeries.coeff_trunc_mul_trunc_eq_coeff_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ) (f g : MvPowerSeries σ R)
{m : σ →₀ ℕ},
m < n → ((MvPowerSeries.trunc R n) f * (MvPowerSeries.trunc R n) g).coeff m = (MvPowerSeries.coeff m) (f * g)
A coefficient of a product of truncated power series equals the coefficient of the untruncated
product. Both factors are truncated at the same level n.
def MvPowerSeries.trunc' E1 #
{σ : Type u_1} →
[DecidableEq σ] → (R : Type u_4) → [inst : CommSemiring R] → (σ →₀ ℕ) → MvPowerSeries σ R →ₗ[R] MvPolynomial σ R
The nth truncation of a multivariate formal power series to a multivariate polynomial.
If f : MvPowerSeries σ R and n : σ →₀ ℕ is a (finitely-supported) function from σ
to the naturals, then trunc' R n f is the multivariable polynomial obtained from f
by keeping only the monomials $c\prod_i X_i^{a_i}$ where a i ≤ n i for all i.
theorem MvPowerSeries.coeff_trunc' E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (m n : σ →₀ ℕ) (φ : MvPowerSeries σ R),
((MvPowerSeries.trunc' R n) φ).coeff m = if m ≤ n then (MvPowerSeries.coeff m) φ else 0
Coefficients of the truncation of a multivariate power series.
theorem MvPowerSeries.trunc'_trunc' E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] {n m : σ →₀ ℕ},
n ≤ m →
∀ (φ : MvPowerSeries σ R), (MvPowerSeries.trunc' R n) ↑((MvPowerSeries.trunc' R m) φ) = (MvPowerSeries.trunc' R n) φ
theorem MvPowerSeries.trunc'_one E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ),
(MvPowerSeries.trunc' R n) 1 = 1
Truncation of the multivariate power series 1
theorem MvPowerSeries.trunc'_C E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ) (a : R),
(MvPowerSeries.trunc' R n) (MvPowerSeries.C a) = MvPolynomial.C a
theorem MvPowerSeries.coeff_trunc'_mul_trunc'_eq_coeff_mul₂ E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n₁ n₂ : σ →₀ ℕ)
(f g : MvPowerSeries σ R) {m : σ →₀ ℕ},
m ≤ n₁ →
m ≤ n₂ → ((MvPowerSeries.trunc' R n₁) f * (MvPowerSeries.trunc' R n₂) g).coeff m = (MvPowerSeries.coeff m) (f * g)
A coefficient of a product of truncated power series equals the coefficient of the untruncated
product, with the two truncation levels n₁ and n₂ allowed to differ.
theorem MvPowerSeries.coeff_trunc'_mul_trunc'_eq_coeff_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ) (f g : MvPowerSeries σ R)
{m : σ →₀ ℕ},
m ≤ n → ((MvPowerSeries.trunc' R n) f * (MvPowerSeries.trunc' R n) g).coeff m = (MvPowerSeries.coeff m) (f * g)
A coefficient of a product of truncated power series equals the coefficient of the untruncated
product. Both factors are truncated at the same level n.
theorem MvPowerSeries.trunc'_trunc'_pow E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] {n : σ →₀ ℕ} {k : ℕ}
(φ : MvPowerSeries σ R),
(MvPowerSeries.trunc' R n) (↑((MvPowerSeries.trunc' R n) φ) ^ k) = (MvPowerSeries.trunc' R n) (φ ^ k)
theorem MvPowerSeries.trunc'_C_mul E0 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] (n : σ →₀ ℕ) (a : R)
(p : MvPowerSeries σ R),
(MvPowerSeries.trunc' R n) (MvPowerSeries.C a * p) = MvPolynomial.C a * (MvPowerSeries.trunc' R n) p
theorem MvPowerSeries.trunc'_map E0 #
∀ {σ : Type u_1} {R : Type u_2} {S : Type u_3} [inst : DecidableEq σ] [inst_1 : CommSemiring R]
[inst_2 : CommSemiring S] (n : σ →₀ ℕ) (f : R →+* S) (p : MvPowerSeries σ R),
(MvPowerSeries.trunc' S n) ((MvPowerSeries.map f) p) = (MvPolynomial.map f) ((MvPowerSeries.trunc' R n) p)
theorem MvPowerSeries.totalDegree_trunc' E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] {n : σ →₀ ℕ} (φ : MvPowerSeries σ R),
((MvPowerSeries.trunc' R n) φ).totalDegree ≤ Finsupp.degree n
theorem MvPowerSeries.ext_trunc' E1 #
∀ {σ : Type u_1} {R : Type u_2} [inst : DecidableEq σ] [inst_1 : CommSemiring R] {f g : MvPowerSeries σ R},
f = g ↔ ∀ (n : σ →₀ ℕ), (MvPowerSeries.trunc' R n) f = (MvPowerSeries.trunc' R n) g
def MvPowerSeries.truncTotal E1 #
{σ : Type u_1} → [Finite σ] → {R : Type u_4} → [inst : CommSemiring R] → ℕ → MvPowerSeries σ R →ₗ[R] MvPolynomial σ R
The truncation of a multivariate formal power series at a total degree n
when the index σ is finite.
theorem MvPowerSeries.coeff_truncTotal E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R)
{x : σ →₀ ℕ}, Finsupp.degree x < n → ((MvPowerSeries.truncTotal n) p).coeff x = (MvPowerSeries.coeff x) p
theorem MvPowerSeries.coeff_truncTotal_eq_zero E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R)
{x : σ →₀ ℕ}, n ≤ Finsupp.degree x → ((MvPowerSeries.truncTotal n) p).coeff x = 0
theorem MvPowerSeries.coeff_truncTotal_eq_ite E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R)
{x : σ →₀ ℕ}, ((MvPowerSeries.truncTotal n) p).coeff x = if Finsupp.degree x < n then (MvPowerSeries.coeff x) p else 0
theorem MvPowerSeries.constantCoeff_truncTotal_eq_ite E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R),
MvPolynomial.constantCoeff ((MvPowerSeries.truncTotal n) p) = if 0 < n then MvPowerSeries.constantCoeff p else 0
theorem MvPowerSeries.truncTotal_eq_sum E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R),
↑((MvPowerSeries.truncTotal n) p) = ∑ i ∈ Finset.range n, (MvPowerSeries.homogeneousComponent i) p
theorem MvPowerSeries.truncTotal_one E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R],
n ≠ 0 → (MvPowerSeries.truncTotal n) 1 = 1
theorem MvPowerSeries.coeff_truncTotal_mul_truncTotal_eq_coeff_mul E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p q : MvPowerSeries σ R)
{x : σ →₀ ℕ},
Finsupp.degree x < n →
((MvPowerSeries.truncTotal n) p * (MvPowerSeries.truncTotal n) q).coeff x = (MvPowerSeries.coeff x) (p * q)
theorem MvPowerSeries.coeff_truncTotal_pow E1 #
∀ {σ : Type u_1} {R : Type u_2} {n m : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R)
{x : σ →₀ ℕ}, Finsupp.degree x < n → ((MvPowerSeries.truncTotal n) p ^ m).coeff x = (MvPowerSeries.coeff x) (p ^ m)
theorem MvPowerSeries.truncTotal_pow_eq_truncTotal_truncTotal_pow E1 #
∀ {σ : Type u_1} {R : Type u_2} {n m : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R),
(MvPowerSeries.truncTotal n) (p ^ m) = (MvPowerSeries.truncTotal n) (↑((MvPowerSeries.truncTotal n) p) ^ m)
theorem MvPowerSeries.totalDegree_truncTotal_lt E1 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPowerSeries σ R),
n ≠ 0 → ((MvPowerSeries.truncTotal n) p).totalDegree < n
theorem MvPowerSeries.truncTotal_coe_eq_self_iff E0 #
∀ {σ : Type u_1} {R : Type u_2} {n : ℕ} [inst : Finite σ] [inst_1 : CommSemiring R] (p : MvPolynomial σ R),
n ≠ 0 → ((MvPowerSeries.truncTotal n) ↑p = p ↔ p.totalDegree < n)