mathlib documentation

ring_theory.power_series

Formal 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 polynomials to formal power series.

Generalities

The file starts with setting up the (semi)ring structure on multivariate power series.

trunc n φ truncates a formal power series to the polynomial that has the same coefficients as φ, for all m ≤ n, and 0 otherwise.

If the constant coefficient of a formal power series is invertible, then this formal power series is invertible.

Formal power series over a local ring form a local ring.

Formal power series in one variable

We prove that if the ring of coefficients is an integral domain, then formal power series in one variable form an integral domain.

The order of a formal power series φ is the multiplicity of the variable X in φ.

If the coefficients form an integral domain, then order is a valuation (order_mul, le_order_add).

Implementation notes

In this file we define multivariate formal power series with variables indexed by σ and coefficients in R as mv_power_series σ 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.

Formal power series in one variable are defined as power_series R := mv_power_series unit R.

This allows us to port a lot of proofs and properties from the multivariate case to the single variable case. However, it means that formal power series are indexed by unit →₀ ℕ, which is of course canonically isomorphic to . We then build some glue to treat formal power series as if they are indexed by . Occasionally this leads to proofs that are uglier than expected.

def mv_power_series  :
Type u_1Type u_2Type (max u_1 u_2)

Multivariate formal power series, where σ is the index set of the variables and R is the coefficient ring.

Equations
@[instance]
def mv_power_series.inhabited {σ : Type u_1} {R : Type u_2} [inhabited R] :

Equations
@[instance]
def mv_power_series.has_zero {σ : Type u_1} {R : Type u_2} [has_zero R] :

Equations
@[instance]
def mv_power_series.add_monoid {σ : Type u_1} {R : Type u_2} [add_monoid R] :

Equations
@[instance]
def mv_power_series.add_group {σ : Type u_1} {R : Type u_2} [add_group R] :

Equations
@[instance]
def mv_power_series.nontrivial {σ : Type u_1} {R : Type u_2} [nontrivial R] :

def mv_power_series.monomial {σ : Type u_1} (R : Type u_2) [add_monoid R] :
→₀ )R →+ mv_power_series σ R

The nth monomial with coefficient a as multivariate formal power series.

Equations
def mv_power_series.coeff {σ : Type u_1} (R : Type u_2) [add_monoid R] :
→₀ )mv_power_series σ R →+ R

The nth coefficient of a multivariate formal power series.

Equations
@[ext]
theorem mv_power_series.ext {σ : Type u_1} {R : Type u_2} [add_monoid R] {φ ψ : mv_power_series σ R} :
(∀ (n : σ →₀ ), (mv_power_series.coeff R n) φ = (mv_power_series.coeff R n) ψ)φ = ψ

Two multivariate formal power series are equal if all their coefficients are equal.

theorem mv_power_series.ext_iff {σ : Type u_1} {R : Type u_2} [add_monoid R] {φ ψ : mv_power_series σ R} :
φ = ψ ∀ (n : σ →₀ ), (mv_power_series.coeff R n) φ = (mv_power_series.coeff R n) ψ

Two multivariate formal power series are equal if and only if all their coefficients are equal.

theorem mv_power_series.coeff_monomial {σ : Type u_1} {R : Type u_2} [add_monoid R] (m n : σ →₀ ) (a : R) :

@[simp]
theorem mv_power_series.coeff_monomial' {σ : Type u_1} {R : Type u_2} [add_monoid R] (n : σ →₀ ) (a : R) :

@[simp]

@[simp]
theorem mv_power_series.coeff_zero {σ : Type u_1} {R : Type u_2} [add_monoid R] (n : σ →₀ ) :

@[instance]
def mv_power_series.has_one {σ : Type u_1} {R : Type u_2} [semiring R] :

Equations
theorem mv_power_series.coeff_one {σ : Type u_1} {R : Type u_2} [semiring R] (n : σ →₀ ) :
(mv_power_series.coeff R n) 1 = ite (n = 0) 1 0

theorem mv_power_series.coeff_zero_one {σ : Type u_1} {R : Type u_2} [semiring R] :

@[instance]
def mv_power_series.has_mul {σ : Type u_1} {R : Type u_2} [semiring R] :

Equations
theorem mv_power_series.coeff_mul {σ : Type u_1} {R : Type u_2} [semiring R] (n : σ →₀ ) (φ ψ : mv_power_series σ R) :

theorem mv_power_series.zero_mul {σ : Type u_1} {R : Type u_2} [semiring R] (φ : mv_power_series σ R) :
0 * φ = 0

theorem mv_power_series.mul_zero {σ : Type u_1} {R : Type u_2} [semiring R] (φ : mv_power_series σ R) :
φ * 0 = 0

theorem mv_power_series.one_mul {σ : Type u_1} {R : Type u_2} [semiring R] (φ : mv_power_series σ R) :
1 * φ = φ

theorem mv_power_series.mul_one {σ : Type u_1} {R : Type u_2} [semiring R] (φ : mv_power_series σ R) :
φ * 1 = φ

theorem mv_power_series.mul_add {σ : Type u_1} {R : Type u_2} [semiring R] (φ₁ φ₂ φ₃ : mv_power_series σ R) :
φ₁ * (φ₂ + φ₃) = φ₁ * φ₂ + φ₁ * φ₃

theorem mv_power_series.add_mul {σ : Type u_1} {R : Type u_2} [semiring R] (φ₁ φ₂ φ₃ : mv_power_series σ R) :
(φ₁ + φ₂) * φ₃ = φ₁ * φ₃ + φ₂ * φ₃

theorem mv_power_series.mul_assoc {σ : Type u_1} {R : Type u_2} [semiring R] (φ₁ φ₂ φ₃ : mv_power_series σ R) :
(φ₁ * φ₂) * φ₃ = φ₁ * φ₂ * φ₃

theorem mv_power_series.monomial_mul_monomial {σ : Type u_1} {R : Type u_2} [semiring R] (m n : σ →₀ ) (a b : R) :

def mv_power_series.C (σ : Type u_1) (R : Type u_2) [semiring R] :

The constant multivariate formal power series.

Equations
@[simp]
theorem mv_power_series.monomial_zero_eq_C {σ : Type u_1} {R : Type u_2} [semiring R] :

theorem mv_power_series.monomial_zero_eq_C_apply {σ : Type u_1} {R : Type u_2} [semiring R] (a : R) :

theorem mv_power_series.coeff_C {σ : Type u_1} {R : Type u_2} [semiring R] (n : σ →₀ ) (a : R) :

theorem mv_power_series.coeff_zero_C {σ : Type u_1} {R : Type u_2} [semiring R] (a : R) :

def mv_power_series.X {σ : Type u_1} {R : Type u_2} [semiring R] :
σ → mv_power_series σ R

The variables of the multivariate formal power series ring.

Equations
theorem mv_power_series.coeff_X {σ : Type u_1} {R : Type u_2} [semiring R] (n : σ →₀ ) (s : σ) :

theorem mv_power_series.coeff_index_single_X {σ : Type u_1} {R : Type u_2} [semiring R] (s t : σ) :

@[simp]
theorem mv_power_series.coeff_index_single_self_X {σ : Type u_1} {R : Type u_2} [semiring R] (s : σ) :

theorem mv_power_series.coeff_zero_X {σ : Type u_1} {R : Type u_2} [semiring R] (s : σ) :

theorem mv_power_series.X_def {σ : Type u_1} {R : Type u_2} [semiring R] (s : σ) :

theorem mv_power_series.X_pow_eq {σ : Type u_1} {R : Type u_2} [semiring R] (s : σ) (n : ) :

theorem mv_power_series.coeff_X_pow {σ : Type u_1} {R : Type u_2} [semiring R] (m : σ →₀ ) (s : σ) (n : ) :

@[simp]
theorem mv_power_series.coeff_mul_C {σ : Type u_1} {R : Type u_2} [semiring R] (n : σ →₀ ) (φ : mv_power_series σ R) (a : R) :

@[simp]
theorem mv_power_series.coeff_C_mul {σ : Type u_1} {R : Type u_2} [semiring R] (n : σ →₀ ) (φ : mv_power_series σ R) (a : R) :

theorem mv_power_series.coeff_zero_mul_X {σ : Type u_1} {R : Type u_2} [semiring R] (φ : mv_power_series σ R) (s : σ) :

def mv_power_series.constant_coeff (σ : Type u_1) (R : Type u_2) [semiring R] :

The constant coefficient of a formal power series.

Equations
@[simp]
theorem mv_power_series.constant_coeff_C {σ : Type u_1} {R : Type u_2} [semiring R] (a : R) :

@[simp]

@[simp]
theorem mv_power_series.constant_coeff_zero {σ : Type u_1} {R : Type u_2} [semiring R] :

@[simp]
theorem mv_power_series.constant_coeff_one {σ : Type u_1} {R : Type u_2} [semiring R] :

@[simp]
theorem mv_power_series.constant_coeff_X {σ : Type u_1} {R : Type u_2} [semiring R] (s : σ) :

theorem mv_power_series.is_unit_constant_coeff {σ : Type u_1} {R : Type u_2} [semiring R] (φ : mv_power_series σ R) :

If a multivariate formal power series is invertible, then so is its constant coefficient.

@[instance]
def mv_power_series.semimodule {σ : Type u_1} {R : Type u_2} [semiring R] :

Equations
@[simp]
theorem mv_power_series.coeff_smul {σ : Type u_1} {R : Type u_2} [semiring R] (f : mv_power_series σ R) (n : σ →₀ ) (a : R) :

theorem mv_power_series.X_inj {σ : Type u_1} {R : Type u_2} [semiring R] [nontrivial R] {s t : σ} :

def mv_power_series.map (σ : Type u_1) {R : Type u_2} {S : Type u_3} [semiring R] [semiring S] :

The map between multivariate formal power series induced by a map on the coefficients.

Equations
@[simp]
theorem mv_power_series.map_id {σ : Type u_1} {R : Type u_2} [semiring R] :

theorem mv_power_series.map_comp {σ : Type u_1} {R : Type u_2} {S : Type u_3} {T : Type u_4} [semiring R] [semiring S] [semiring T] (f : R →+* S) (g : S →+* T) :

@[simp]
theorem mv_power_series.coeff_map {σ : Type u_1} {R : Type u_2} {S : Type u_3} [semiring R] [semiring S] (f : R →+* S) (n : σ →₀ ) (φ : mv_power_series σ R) :

@[simp]
theorem mv_power_series.constant_coeff_map {σ : Type u_1} {R : Type u_2} {S : Type u_3} [semiring R] [semiring S] (f : R →+* S) (φ : mv_power_series σ R) :

def mv_power_series.trunc_fun {σ : Type u_1} {R : Type u_2} [comm_semiring R] :
→₀ )mv_power_series σ Rmv_polynomial σ R

Auxiliary definition for the truncation function.

Equations
def mv_power_series.trunc {σ : Type u_1} (R : Type u_2) [comm_semiring R] :

The nth truncation of a multivariate formal power series to a multivariate polynomial

Equations
theorem mv_power_series.coeff_trunc {σ : Type u_1} {R : Type u_2} [comm_semiring R] (n m : σ →₀ ) (φ : mv_power_series σ R) :

@[simp]
theorem mv_power_series.trunc_one {σ : Type u_1} {R : Type u_2} [comm_semiring R] (n : σ →₀ ) :

@[simp]
theorem mv_power_series.trunc_C {σ : Type u_1} {R : Type u_2} [comm_semiring R] (n : σ →₀ ) (a : R) :

theorem mv_power_series.X_pow_dvd_iff {σ : Type u_1} {R : Type u_2} [comm_semiring R] {s : σ} {n : } {φ : mv_power_series σ R} :
mv_power_series.X s ^ n φ ∀ (m : σ →₀ ), m s < n(mv_power_series.coeff R m) φ = 0

theorem mv_power_series.X_dvd_iff {σ : Type u_1} {R : Type u_2} [comm_semiring R] {s : σ} {φ : mv_power_series σ R} :
mv_power_series.X s φ ∀ (m : σ →₀ ), m s = 0(mv_power_series.coeff R m) φ = 0

def mv_power_series.inv.aux {σ : Type u_1} {R : Type u_2} [ring R] :
R → mv_power_series σ Rmv_power_series σ R

Auxiliary definition that unifies the totalised inverse formal power series (_)⁻¹ and the inverse formal power series that depends on an inverse of the constant coefficient inv_of_unit.

Equations
theorem mv_power_series.coeff_inv_aux {σ : Type u_1} {R : Type u_2} [ring R] (n : σ →₀ ) (a : R) (φ : mv_power_series σ R) :

def mv_power_series.inv_of_unit {σ : Type u_1} {R : Type u_2} [ring R] :

A multivariate formal power series is invertible if the constant coefficient is invertible.

Equations
theorem mv_power_series.coeff_inv_of_unit {σ : Type u_1} {R : Type u_2} [ring R] (n : σ →₀ ) (φ : mv_power_series σ R) (u : units R) :

@[simp]
theorem mv_power_series.constant_coeff_inv_of_unit {σ : Type u_1} {R : Type u_2} [ring R] (φ : mv_power_series σ R) (u : units R) :

theorem mv_power_series.mul_inv_of_unit {σ : Type u_1} {R : Type u_2} [ring R] (φ : mv_power_series σ R) (u : units R) :

@[instance]
def mv_power_series.is_local_ring {σ : Type u_1} {R : Type u_2} [comm_ring R] [local_ring R] :

Multivariate formal power series over a local ring form a local ring.

@[instance]
def mv_power_series.map.is_local_ring_hom {σ : Type u_1} {R : Type u_2} {S : Type u_3} [comm_ring R] [comm_ring S] (f : R →+* S) [is_local_ring_hom f] :

The map A[[X]] → B[[X]] induced by a local ring hom A → B is local

@[instance]
def mv_power_series.local_ring {σ : Type u_1} {R : Type u_2} [comm_ring R] [local_ring R] :

def mv_power_series.inv {σ : Type u_1} {k : Type u_3} [field k] :

The inverse 1/f of a multivariable power series f over a field

Equations
@[instance]
def mv_power_series.has_inv {σ : Type u_1} {k : Type u_3} [field k] :

Equations
theorem mv_power_series.coeff_inv {σ : Type u_1} {k : Type u_3} [field k] (n : σ →₀ ) (φ : mv_power_series σ k) :

@[simp]

theorem mv_power_series.inv_eq_zero {σ : Type u_1} {k : Type u_3} [field k] {φ : mv_power_series σ k} :

@[simp]
theorem mv_power_series.inv_of_unit_eq {σ : Type u_1} {k : Type u_3} [field k] (φ : mv_power_series σ k) (h : (mv_power_series.constant_coeff σ k) φ 0) :

@[simp]
theorem mv_power_series.inv_of_unit_eq' {σ : Type u_1} {k : Type u_3} [field k] (φ : mv_power_series σ k) (u : units k) :

@[simp]
theorem mv_power_series.mul_inv {σ : Type u_1} {k : Type u_3} [field k] (φ : mv_power_series σ k) :

@[simp]
theorem mv_power_series.inv_mul {σ : Type u_1} {k : Type u_3} [field k] (φ : mv_power_series σ k) :

theorem mv_power_series.eq_mul_inv_iff_mul_eq {σ : Type u_1} {k : Type u_3} [field k] {φ₁ φ₂ φ₃ : mv_power_series σ k} :
(mv_power_series.constant_coeff σ k) φ₃ 0(φ₁ = φ₂ * φ₃⁻¹ φ₁ * φ₃ = φ₂)

theorem mv_power_series.eq_inv_iff_mul_eq_one {σ : Type u_1} {k : Type u_3} [field k] {φ ψ : mv_power_series σ k} :
(mv_power_series.constant_coeff σ k) ψ 0= ψ⁻¹ φ * ψ = 1)

theorem mv_power_series.inv_eq_iff_mul_eq_one {σ : Type u_1} {k : Type u_3} [field k] {φ ψ : mv_power_series σ k} :
(mv_power_series.constant_coeff σ k) ψ 0⁻¹ = φ φ * ψ = 1)

@[instance]
def mv_polynomial.coe_to_mv_power_series {σ : Type u_1} {R : Type u_2} [comm_semiring R] :

The natural inclusion from multivariate polynomials into multivariate formal power series.

Equations
@[simp]
theorem mv_polynomial.coeff_coe {σ : Type u_1} {R : Type u_2} [comm_semiring R] (φ : mv_polynomial σ R) (n : σ →₀ ) :

@[simp]
theorem mv_polynomial.coe_monomial {σ : Type u_1} {R : Type u_2} [comm_semiring R] (n : σ →₀ ) (a : R) :

@[simp]
theorem mv_polynomial.coe_zero {σ : Type u_1} {R : Type u_2} [comm_semiring R] :
0 = 0

@[simp]
theorem mv_polynomial.coe_one {σ : Type u_1} {R : Type u_2} [comm_semiring R] :
1 = 1

@[simp]
theorem mv_polynomial.coe_add {σ : Type u_1} {R : Type u_2} [comm_semiring R] (φ ψ : mv_polynomial σ R) :
+ ψ) = φ + ψ

@[simp]
theorem mv_polynomial.coe_mul {σ : Type u_1} {R : Type u_2} [comm_semiring R] (φ ψ : mv_polynomial σ R) :
φ * ψ = (φ) * ψ

@[simp]
theorem mv_polynomial.coe_C {σ : Type u_1} {R : Type u_2} [comm_semiring R] (a : R) :

@[simp]
theorem mv_polynomial.coe_X {σ : Type u_1} {R : Type u_2} [comm_semiring R] (s : σ) :

The coercion from multivariable polynomials to multivariable power series as a ring homomorphism.

Equations
def power_series  :
Type u_1Type u_1

Formal power series over the coefficient ring R.

Equations
@[instance]
def power_series.ring {R : Type u_1} [ring R] :

Equations
@[instance]

def power_series.coeff (R : Type u_1) [add_monoid R] :

The nth coefficient of a formal power series.

Equations
def power_series.monomial (R : Type u_1) [add_monoid R] :

The nth monomial with coefficient a as formal power series.

Equations
theorem power_series.coeff_def {R : Type u_1} [add_monoid R] {s : unit →₀ } {n : } :

@[ext]
theorem power_series.ext {R : Type u_1} [add_monoid R] {φ ψ : power_series R} :
(∀ (n : ), (power_series.coeff R n) φ = (power_series.coeff R n) ψ)φ = ψ

Two formal power series are equal if all their coefficients are equal.

theorem power_series.ext_iff {R : Type u_1} [add_monoid R] {φ ψ : power_series R} :
φ = ψ ∀ (n : ), (power_series.coeff R n) φ = (power_series.coeff R n) ψ

Two formal power series are equal if all their coefficients are equal.

def power_series.mk {R : Type u_1} :
( → R)power_series R

Constructor for formal power series.

Equations
@[simp]
theorem power_series.coeff_mk {R : Type u_1} [add_monoid R] (n : ) (f : → R) :

theorem power_series.coeff_monomial {R : Type u_1} [add_monoid R] (m n : ) (a : R) :

theorem power_series.monomial_eq_mk {R : Type u_1} [add_monoid R] (n : ) (a : R) :
(power_series.monomial R n) a = power_series.mk (λ (m : ), ite (m = n) a 0)

@[simp]
theorem power_series.coeff_monomial' {R : Type u_1} [add_monoid R] (n : ) (a : R) :

def power_series.constant_coeff (R : Type u_1) [semiring R] :

The constant coefficient of a formal power series.

Equations
def power_series.C (R : Type u_1) [semiring R] :

The constant formal power series.

Equations
def power_series.X {R : Type u_1} [semiring R] :

The variable of the formal power series ring.

Equations
theorem power_series.coeff_C {R : Type u_1} [semiring R] (n : ) (a : R) :

theorem power_series.coeff_zero_C {R : Type u_1} [semiring R] (a : R) :

theorem power_series.coeff_X {R : Type u_1} [semiring R] (n : ) :

@[simp]

theorem power_series.X_pow_eq {R : Type u_1} [semiring R] (n : ) :

theorem power_series.coeff_X_pow {R : Type u_1} [semiring R] (m n : ) :

@[simp]
theorem power_series.coeff_X_pow_self {R : Type u_1} [semiring R] (n : ) :

@[simp]
theorem power_series.coeff_one {R : Type u_1} [semiring R] (n : ) :
(power_series.coeff R n) 1 = ite (n = 0) 1 0

theorem power_series.coeff_zero_one {R : Type u_1} [semiring R] :

theorem power_series.coeff_mul {R : Type u_1} [semiring R] (n : ) (φ ψ : power_series R) :

@[simp]
theorem power_series.coeff_mul_C {R : Type u_1} [semiring R] (n : ) (φ : power_series R) (a : R) :

@[simp]
theorem power_series.coeff_C_mul {R : Type u_1} [semiring R] (n : ) (φ : power_series R) (a : R) :

@[simp]
theorem power_series.coeff_smul {R : Type u_1} [semiring R] (n : ) (φ : power_series R) (a : R) :

@[simp]
theorem power_series.coeff_succ_mul_X {R : Type u_1} [semiring R] (n : ) (φ : power_series R) :

@[simp]
theorem power_series.constant_coeff_C {R : Type u_1} [semiring R] (a : R) :

@[simp]

@[simp]

If a formal power series is invertible, then so is its constant coefficient.

def power_series.map {R : Type u_1} [semiring R] {S : Type u_2} [semiring S] :

The map between formal power series induced by a map on the coefficients.

Equations
@[simp]
theorem power_series.map_id {R : Type u_1} [semiring R] :

theorem power_series.map_comp {R : Type u_1} [semiring R] {S : Type u_2} {T : Type u_3} [semiring S] [semiring T] (f : R →+* S) (g : S →+* T) :

@[simp]
theorem power_series.coeff_map {R : Type u_1} [semiring R] {S : Type u_2} [semiring S] (f : R →+* S) (n : ) (φ : power_series R) :

theorem power_series.X_pow_dvd_iff {R : Type u_1} [comm_semiring R] {n : } {φ : power_series R} :
power_series.X ^ n φ ∀ (m : ), m < n(power_series.coeff R m) φ = 0

def power_series.trunc {R : Type u_1} [comm_semiring R] :

The nth truncation of a formal power series to a polynomial

Equations
theorem power_series.coeff_trunc {R : Type u_1} [comm_semiring R] (m n : ) (φ : power_series R) :

@[simp]
theorem power_series.trunc_zero {R : Type u_1} [comm_semiring R] (n : ) :

@[simp]
theorem power_series.trunc_one {R : Type u_1} [comm_semiring R] (n : ) :

@[simp]
theorem power_series.trunc_C {R : Type u_1} [comm_semiring R] (n : ) (a : R) :

@[simp]
theorem power_series.trunc_add {R : Type u_1} [comm_semiring R] (n : ) (φ ψ : power_series R) :

def power_series.inv.aux {R : Type u_1} [ring R] :

Auxiliary function used for computing inverse of a power series

Equations
theorem power_series.coeff_inv_aux {R : Type u_1} [ring R] (n : ) (a : R) (φ : power_series R) :

def power_series.inv_of_unit {R : Type u_1} [ring R] :

A formal power series is invertible if the constant coefficient is invertible.

Equations
theorem power_series.coeff_inv_of_unit {R : Type u_1} [ring R] (n : ) (φ : power_series R) (u : units R) :

theorem power_series.mul_inv_of_unit {R : Type u_1} [ring R] (φ : power_series R) (u : units R) :

theorem power_series.eq_zero_or_eq_zero_of_mul_eq_zero {R : Type u_1} [integral_domain R] (φ ψ : power_series R) :
φ * ψ = 0φ = 0 ψ = 0

The ideal spanned by the variable in the power series ring over an integral domain is a prime ideal.

The variable of the power series ring over an integral domain is prime.

@[instance]

@[instance]

def power_series.inv {k : Type u_2} [field k] :

The inverse 1/f of a power series f defined over a field

Equations
@[instance]
def power_series.has_inv {k : Type u_2} [field k] :

Equations
theorem power_series.inv_eq_zero {k : Type u_2} [field k] {φ : power_series k} :

@[simp]
theorem power_series.inv_of_unit_eq' {k : Type u_2} [field k] (φ : power_series k) (u : units k) :

@[simp]
theorem power_series.mul_inv {k : Type u_2} [field k] (φ : power_series k) :

@[simp]
theorem power_series.inv_mul {k : Type u_2} [field k] (φ : power_series k) :

theorem power_series.eq_mul_inv_iff_mul_eq {k : Type u_2} [field k] {φ₁ φ₂ φ₃ : power_series k} :
(power_series.constant_coeff k) φ₃ 0(φ₁ = φ₂ * φ₃⁻¹ φ₁ * φ₃ = φ₂)

theorem power_series.eq_inv_iff_mul_eq_one {k : Type u_2} [field k] {φ ψ : power_series k} :
(power_series.constant_coeff k) ψ 0= ψ⁻¹ φ * ψ = 1)

theorem power_series.inv_eq_iff_mul_eq_one {k : Type u_2} [field k] {φ ψ : power_series k} :
(power_series.constant_coeff k) ψ 0⁻¹ = φ φ * ψ = 1)

def power_series.order {R : Type u_1} [comm_semiring R] :

The order of a formal power series φ is the smallest n : enat such that X^n divides φ. The order is if and only if φ = 0.

Equations
theorem power_series.order_finite_of_coeff_ne_zero {R : Type u_1} [comm_semiring R] (φ : power_series R) :
(∃ (n : ), (power_series.coeff R n) φ 0) → φ.order.dom

theorem power_series.coeff_order {R : Type u_1} [comm_semiring R] (φ : power_series R) (h : φ.order.dom) :

If the order of a formal power series is finite, then the coefficient indexed by the order is nonzero.

theorem power_series.order_le {R : Type u_1} [comm_semiring R] (φ : power_series R) (n : ) :

If the nth coefficient of a formal power series is nonzero, then the order of the power series is less than or equal to n.

theorem power_series.coeff_of_lt_order {R : Type u_1} [comm_semiring R] (φ : power_series R) (n : ) :
n < φ.order(power_series.coeff R n) φ = 0

The nth coefficient of a formal power series is 0 if n is strictly smaller than the order of the power series.

theorem power_series.order_eq_top {R : Type u_1} [comm_semiring R] {φ : power_series R} :
φ.order = φ = 0

The 0 power series is the unique power series with infinite order.

@[simp]
theorem power_series.order_zero {R : Type u_1} [comm_semiring R] :

The order of the 0 power series is infinite.

theorem power_series.nat_le_order {R : Type u_1} [comm_semiring R] (φ : power_series R) (n : ) :
(∀ (i : ), i < n(power_series.coeff R i) φ = 0)n φ.order

The order of a formal power series is at least n if the ith coefficient is 0 for all i < n.

theorem power_series.le_order {R : Type u_1} [comm_semiring R] (φ : power_series R) (n : enat) :
(∀ (i : ), i < n(power_series.coeff R i) φ = 0)n φ.order

The order of a formal power series is at least n if the ith coefficient is 0 for all i < n.

theorem power_series.order_eq_nat {R : Type u_1} [comm_semiring R] {φ : power_series R} {n : } :
φ.order = n (power_series.coeff R n) φ 0 ∀ (i : ), i < n(power_series.coeff R i) φ = 0

The order of a formal power series is exactly n if the nth coefficient is nonzero, and the ith coefficient is 0 for all i < n.

theorem power_series.order_eq {R : Type u_1} [comm_semiring R] {φ : power_series R} {n : enat} :
φ.order = n (∀ (i : ), i = n(power_series.coeff R i) φ 0) ∀ (i : ), i < n(power_series.coeff R i) φ = 0

The order of a formal power series is exactly n if the nth coefficient is nonzero, and the ith coefficient is 0 for all i < n.

theorem power_series.le_order_add {R : Type u_1} [comm_semiring R] (φ ψ : power_series R) :
min φ.order ψ.order + ψ).order

The order of the sum of two formal power series is at least the minimum of their orders.

theorem power_series.order_add_of_order_eq {R : Type u_1} [comm_semiring R] (φ ψ : power_series R) :
φ.order ψ.order+ ψ).order = φ.order ψ.order

The order of the sum of two formal power series is the minimum of their orders if their orders differ.

theorem power_series.order_mul_ge {R : Type u_1} [comm_semiring R] (φ ψ : power_series R) :
φ.order + ψ.order * ψ).order

The order of the product of two formal power series is at least the sum of their orders.

theorem power_series.order_monomial {R : Type u_1} [comm_semiring R] (n : ) (a : R) :

The order of the monomial a*X^n is infinite if a = 0 and n otherwise.

theorem power_series.order_monomial_of_ne_zero {R : Type u_1} [comm_semiring R] (n : ) (a : R) :

The order of the monomial a*X^n is n if a ≠ 0.

@[simp]
theorem power_series.order_one {R : Type u_1} [comm_semiring R] [nontrivial R] :
1.order = 0

The order of the formal power series 1 is 0.

@[simp]
theorem power_series.order_X {R : Type u_1} [comm_semiring R] [nontrivial R] :

The order of the formal power series X is 1.

@[simp]
theorem power_series.order_X_pow {R : Type u_1} [comm_semiring R] [nontrivial R] (n : ) :

The order of the formal power series X^n is n.

theorem power_series.order_mul {R : Type u_1} [integral_domain R] (φ ψ : power_series R) :
* ψ).order = φ.order + ψ.order

The order of the product of two formal power series over an integral domain is the sum of their orders.

@[instance]

The natural inclusion from polynomials into formal power series.

Equations
@[simp]
theorem polynomial.coeff_coe {R : Type u_2} [comm_semiring R] (φ : polynomial R) (n : ) :

@[simp]
theorem polynomial.coe_monomial {R : Type u_2} [comm_semiring R] (n : ) (a : R) :

@[simp]
theorem polynomial.coe_zero {R : Type u_2} [comm_semiring R] :
0 = 0

@[simp]
theorem polynomial.coe_one {R : Type u_2} [comm_semiring R] :
1 = 1

@[simp]
theorem polynomial.coe_add {R : Type u_2} [comm_semiring R] (φ ψ : polynomial R) :
+ ψ) = φ + ψ

@[simp]
theorem polynomial.coe_mul {R : Type u_2} [comm_semiring R] (φ ψ : polynomial R) :
φ * ψ = (φ) * ψ

@[simp]
theorem polynomial.coe_C {R : Type u_2} [comm_semiring R] (a : R) :

@[simp]

The coercion from polynomials to power series as a ring homomorphism.

Equations