Documentation

Mathlib.RingTheory.PowerSeries.Basic

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

Formal power series in one variable are defined as PowerSeries R := MvPowerSeries 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 MvPowerSeries (σ : Type u_1) (R : Type u_2) :
Type (max (max u_2 u_1) 0)

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

Equations
Instances For
    Equations
    • MvPowerSeries.instInhabitedMvPowerSeries = { default := fun (x : σ →₀ ) => default }
    instance MvPowerSeries.instZeroMvPowerSeries {σ : Type u_1} {R : Type u_2} [Zero R] :
    Equations
    • MvPowerSeries.instZeroMvPowerSeries = Pi.instZero
    Equations
    • MvPowerSeries.instAddMonoidMvPowerSeries = Pi.addMonoid
    Equations
    • MvPowerSeries.instAddGroupMvPowerSeries = Pi.addGroup
    Equations
    • MvPowerSeries.instAddCommMonoidMvPowerSeries = Pi.addCommMonoid
    Equations
    • MvPowerSeries.instAddCommGroupMvPowerSeries = Pi.addCommGroup
    Equations
    Equations
    def MvPowerSeries.monomial {σ : Type u_1} (R : Type u_2) [Semiring R] (n : σ →₀ ) :

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

    Equations
    Instances For
      def MvPowerSeries.coeff {σ : Type u_1} (R : Type u_2) [Semiring R] (n : σ →₀ ) :

      The nth coefficient of a multivariate formal power series.

      Equations
      Instances For
        theorem MvPowerSeries.ext {σ : Type u_1} {R : Type u_2} [Semiring R] {φ : MvPowerSeries σ R} {ψ : MvPowerSeries σ R} (h : ∀ (n : σ →₀ ), (MvPowerSeries.coeff R n) φ = (MvPowerSeries.coeff R n) ψ) :
        φ = ψ

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

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

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

        theorem MvPowerSeries.monomial_def {σ : Type u_1} {R : Type u_2} [Semiring R] [DecidableEq σ] (n : σ →₀ ) :
        theorem MvPowerSeries.coeff_monomial {σ : Type u_1} {R : Type u_2} [Semiring R] [DecidableEq σ] (m : σ →₀ ) (n : σ →₀ ) (a : R) :
        (MvPowerSeries.coeff R m) ((MvPowerSeries.monomial R n) a) = if m = n then a else 0
        @[simp]
        theorem MvPowerSeries.coeff_monomial_same {σ : Type u_1} {R : Type u_2} [Semiring R] (n : σ →₀ ) (a : R) :
        theorem MvPowerSeries.coeff_monomial_ne {σ : Type u_1} {R : Type u_2} [Semiring R] {m : σ →₀ } {n : σ →₀ } (h : m n) (a : R) :
        theorem MvPowerSeries.eq_of_coeff_monomial_ne_zero {σ : Type u_1} {R : Type u_2} [Semiring R] {m : σ →₀ } {n : σ →₀ } {a : R} (h : (MvPowerSeries.coeff R m) ((MvPowerSeries.monomial R n) a) 0) :
        m = n
        @[simp]
        theorem MvPowerSeries.coeff_comp_monomial {σ : Type u_1} {R : Type u_2} [Semiring R] (n : σ →₀ ) :
        MvPowerSeries.coeff R n ∘ₗ MvPowerSeries.monomial R n = LinearMap.id
        theorem MvPowerSeries.coeff_zero {σ : Type u_1} {R : Type u_2} [Semiring R] (n : σ →₀ ) :
        instance MvPowerSeries.instOneMvPowerSeries {σ : Type u_1} {R : Type u_2} [Semiring R] :
        Equations
        theorem MvPowerSeries.coeff_one {σ : Type u_1} {R : Type u_2} [Semiring R] (n : σ →₀ ) [DecidableEq σ] :
        (MvPowerSeries.coeff R n) 1 = if n = 0 then 1 else 0
        theorem MvPowerSeries.coeff_zero_one {σ : Type u_1} {R : Type u_2} [Semiring R] :
        Equations
        • MvPowerSeries.instAddMonoidWithOneMvPowerSeries = let src := let_fun this := inferInstance; this; AddMonoidWithOne.mk
        instance MvPowerSeries.instMulMvPowerSeries {σ : Type u_1} {R : Type u_2} [Semiring R] :
        Equations
        • One or more equations did not get rendered due to their size.
        theorem MvPowerSeries.coeff_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (n : σ →₀ ) (φ : MvPowerSeries σ R) (ψ : MvPowerSeries σ R) [DecidableEq σ] :
        (MvPowerSeries.coeff R n) (φ * ψ) = Finset.sum (Finset.antidiagonal n) fun (p : (σ →₀ ) × (σ →₀ )) => (MvPowerSeries.coeff R p.1) φ * (MvPowerSeries.coeff R p.2) ψ
        theorem MvPowerSeries.zero_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) :
        0 * φ = 0
        theorem MvPowerSeries.mul_zero {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) :
        φ * 0 = 0
        theorem MvPowerSeries.coeff_monomial_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (m : σ →₀ ) (n : σ →₀ ) (φ : MvPowerSeries σ R) (a : R) :
        (MvPowerSeries.coeff R m) ((MvPowerSeries.monomial R n) a * φ) = if n m then a * (MvPowerSeries.coeff R (m - n)) φ else 0
        theorem MvPowerSeries.coeff_mul_monomial {σ : Type u_1} {R : Type u_2} [Semiring R] (m : σ →₀ ) (n : σ →₀ ) (φ : MvPowerSeries σ R) (a : R) :
        (MvPowerSeries.coeff R m) (φ * (MvPowerSeries.monomial R n) a) = if n m then (MvPowerSeries.coeff R (m - n)) φ * a else 0
        theorem MvPowerSeries.coeff_add_monomial_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (m : σ →₀ ) (n : σ →₀ ) (φ : MvPowerSeries σ R) (a : R) :
        theorem MvPowerSeries.coeff_add_mul_monomial {σ : Type u_1} {R : Type u_2} [Semiring R] (m : σ →₀ ) (n : σ →₀ ) (φ : MvPowerSeries σ R) (a : R) :
        @[simp]
        theorem MvPowerSeries.commute_monomial {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) {a : R} {n : σ →₀ } :
        Commute φ ((MvPowerSeries.monomial R n) a) ∀ (m : σ →₀ ), Commute ((MvPowerSeries.coeff R m) φ) a
        theorem MvPowerSeries.one_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) :
        1 * φ = φ
        theorem MvPowerSeries.mul_one {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) :
        φ * 1 = φ
        theorem MvPowerSeries.mul_add {σ : Type u_1} {R : Type u_2} [Semiring R] (φ₁ : MvPowerSeries σ R) (φ₂ : MvPowerSeries σ R) (φ₃ : MvPowerSeries σ R) :
        φ₁ * (φ₂ + φ₃) = φ₁ * φ₂ + φ₁ * φ₃
        theorem MvPowerSeries.add_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (φ₁ : MvPowerSeries σ R) (φ₂ : MvPowerSeries σ R) (φ₃ : MvPowerSeries σ R) :
        (φ₁ + φ₂) * φ₃ = φ₁ * φ₃ + φ₂ * φ₃
        theorem MvPowerSeries.mul_assoc {σ : Type u_1} {R : Type u_2} [Semiring R] (φ₁ : MvPowerSeries σ R) (φ₂ : MvPowerSeries σ R) (φ₃ : MvPowerSeries σ R) :
        φ₁ * φ₂ * φ₃ = φ₁ * (φ₂ * φ₃)
        Equations
        • One or more equations did not get rendered due to their size.
        Equations
        • MvPowerSeries.instCommSemiringMvPowerSeries = let src := let_fun this := inferInstance; this; CommSemiring.mk (_ : ∀ (φ ψ : MvPowerSeries σ R), φ * ψ = ψ * φ)
        instance MvPowerSeries.instRingMvPowerSeries {σ : Type u_1} {R : Type u_2} [Ring R] :
        Equations
        • One or more equations did not get rendered due to their size.
        Equations
        • One or more equations did not get rendered due to their size.
        theorem MvPowerSeries.monomial_mul_monomial {σ : Type u_1} {R : Type u_2} [Semiring R] (m : σ →₀ ) (n : σ →₀ ) (a : R) (b : R) :
        def MvPowerSeries.C (σ : Type u_1) (R : Type u_2) [Semiring R] :

        The constant multivariate formal power series.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          @[simp]
          theorem MvPowerSeries.monomial_zero_eq_C {σ : Type u_1} {R : Type u_2} [Semiring R] :
          theorem MvPowerSeries.coeff_C {σ : Type u_1} {R : Type u_2} [Semiring R] [DecidableEq σ] (n : σ →₀ ) (a : R) :
          (MvPowerSeries.coeff R n) ((MvPowerSeries.C σ R) a) = if n = 0 then a else 0
          theorem MvPowerSeries.coeff_zero_C {σ : Type u_1} {R : Type u_2} [Semiring R] (a : R) :
          def MvPowerSeries.X {σ : Type u_1} {R : Type u_2} [Semiring R] (s : σ) :

          The variables of the multivariate formal power series ring.

          Equations
          Instances For
            theorem MvPowerSeries.coeff_X {σ : Type u_1} {R : Type u_2} [Semiring R] [DecidableEq σ] (n : σ →₀ ) (s : σ) :
            (MvPowerSeries.coeff R n) (MvPowerSeries.X s) = if n = Finsupp.single s 1 then 1 else 0
            theorem MvPowerSeries.coeff_index_single_X {σ : Type u_1} {R : Type u_2} [Semiring R] [DecidableEq σ] (s : σ) (t : σ) :
            (MvPowerSeries.coeff R (Finsupp.single t 1)) (MvPowerSeries.X s) = if t = s then 1 else 0
            @[simp]
            theorem MvPowerSeries.coeff_zero_X {σ : Type u_1} {R : Type u_2} [Semiring R] (s : σ) :
            theorem MvPowerSeries.commute_X {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) (s : σ) :
            theorem MvPowerSeries.X_def {σ : Type u_1} {R : Type u_2} [Semiring R] (s : σ) :
            theorem MvPowerSeries.X_pow_eq {σ : Type u_1} {R : Type u_2} [Semiring R] (s : σ) (n : ) :
            theorem MvPowerSeries.coeff_X_pow {σ : Type u_1} {R : Type u_2} [Semiring R] [DecidableEq σ] (m : σ →₀ ) (s : σ) (n : ) :
            (MvPowerSeries.coeff R m) (MvPowerSeries.X s ^ n) = if m = Finsupp.single s n then 1 else 0
            @[simp]
            theorem MvPowerSeries.coeff_mul_C {σ : Type u_1} {R : Type u_2} [Semiring R] (n : σ →₀ ) (φ : MvPowerSeries σ R) (a : R) :
            @[simp]
            theorem MvPowerSeries.coeff_C_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (n : σ →₀ ) (φ : MvPowerSeries σ R) (a : R) :
            theorem MvPowerSeries.coeff_zero_mul_X {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) (s : σ) :
            theorem MvPowerSeries.coeff_zero_X_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) (s : σ) :
            def MvPowerSeries.constantCoeff (σ : Type u_1) (R : Type u_2) [Semiring R] :

            The constant coefficient of a formal power series.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[simp]
              theorem MvPowerSeries.constantCoeff_C {σ : Type u_1} {R : Type u_2} [Semiring R] (a : R) :
              @[simp]
              theorem MvPowerSeries.constantCoeff_X {σ : Type u_1} {R : Type u_2} [Semiring R] (s : σ) :
              theorem MvPowerSeries.isUnit_constantCoeff {σ : Type u_1} {R : Type u_2} [Semiring R] (φ : MvPowerSeries σ R) (h : IsUnit φ) :

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

              theorem MvPowerSeries.coeff_smul {σ : Type u_1} {R : Type u_2} [Semiring R] (f : MvPowerSeries σ R) (n : σ →₀ ) (a : R) :
              theorem MvPowerSeries.smul_eq_C_mul {σ : Type u_1} {R : Type u_2} [Semiring R] (f : MvPowerSeries σ R) (a : R) :
              a f = (MvPowerSeries.C σ R) a * f
              theorem MvPowerSeries.X_inj {σ : Type u_1} {R : Type u_2} [Semiring R] [Nontrivial R] {s : σ} {t : σ} :
              def MvPowerSeries.map (σ : Type u_1) {R : Type u_2} {S : Type u_3} [Semiring R] [Semiring S] (f : R →+* S) :

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

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[simp]
                theorem MvPowerSeries.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 MvPowerSeries.coeff_map {σ : Type u_1} {R : Type u_2} {S : Type u_3} [Semiring R] [Semiring S] (f : R →+* S) (n : σ →₀ ) (φ : MvPowerSeries σ R) :
                @[simp]
                theorem MvPowerSeries.constantCoeff_map {σ : Type u_1} {R : Type u_2} {S : Type u_3} [Semiring R] [Semiring S] (f : R →+* S) (φ : MvPowerSeries σ R) :
                @[simp]
                theorem MvPowerSeries.map_monomial {σ : Type u_1} {R : Type u_2} {S : Type u_3} [Semiring R] [Semiring S] (f : R →+* S) (n : σ →₀ ) (a : R) :
                @[simp]
                theorem MvPowerSeries.map_C {σ : Type u_1} {R : Type u_2} {S : Type u_3} [Semiring R] [Semiring S] (f : R →+* S) (a : R) :
                (MvPowerSeries.map σ f) ((MvPowerSeries.C σ R) a) = (MvPowerSeries.C σ S) (f a)
                @[simp]
                theorem MvPowerSeries.map_X {σ : Type u_1} {R : Type u_2} {S : Type u_3} [Semiring R] [Semiring S] (f : R →+* S) (s : σ) :
                Equations
                • One or more equations did not get rendered due to their size.
                theorem MvPowerSeries.algebraMap_apply {σ : Type u_1} {R : Type u_2} {A : Type u_3} [CommSemiring R] [Semiring A] [Algebra R A] {r : R} :
                (algebraMap R (MvPowerSeries σ A)) r = (MvPowerSeries.C σ A) ((algebraMap R A) r)
                def MvPowerSeries.truncFun {σ : Type u_1} {R : Type u_2} [CommSemiring R] (n : σ →₀ ) (φ : MvPowerSeries σ R) :

                Auxiliary definition for the truncation function.

                Equations
                Instances For
                  theorem MvPowerSeries.coeff_truncFun {σ : Type u_1} {R : Type u_2} [CommSemiring R] (n : σ →₀ ) [DecidableEq σ] (m : σ →₀ ) (φ : MvPowerSeries σ R) :
                  MvPolynomial.coeff m (MvPowerSeries.truncFun n φ) = if m < n then (MvPowerSeries.coeff R m) φ else 0
                  def MvPowerSeries.trunc {σ : Type u_1} (R : Type u_2) [CommSemiring R] (n : σ →₀ ) :

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

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    theorem MvPowerSeries.coeff_trunc {σ : Type u_1} {R : Type u_2} [CommSemiring R] (n : σ →₀ ) (m : σ →₀ ) (φ : MvPowerSeries σ R) :
                    MvPolynomial.coeff m ((MvPowerSeries.trunc R n) φ) = if m < n then (MvPowerSeries.coeff R m) φ else 0
                    @[simp]
                    theorem MvPowerSeries.trunc_one {σ : Type u_1} {R : Type u_2} [CommSemiring R] (n : σ →₀ ) (hnn : n 0) :
                    @[simp]
                    theorem MvPowerSeries.trunc_c {σ : Type u_1} {R : Type u_2} [CommSemiring R] (n : σ →₀ ) (hnn : n 0) (a : R) :
                    (MvPowerSeries.trunc R n) ((MvPowerSeries.C σ R) a) = MvPolynomial.C a
                    theorem MvPowerSeries.X_pow_dvd_iff {σ : Type u_1} {R : Type u_2} [Semiring R] {s : σ} {n : } {φ : MvPowerSeries σ R} :
                    MvPowerSeries.X s ^ n φ ∀ (m : σ →₀ ), m s < n(MvPowerSeries.coeff R m) φ = 0
                    theorem MvPowerSeries.X_dvd_iff {σ : Type u_1} {R : Type u_2} [Semiring R] {s : σ} {φ : MvPowerSeries σ R} :
                    MvPowerSeries.X s φ ∀ (m : σ →₀ ), m s = 0(MvPowerSeries.coeff R m) φ = 0
                    noncomputable def MvPowerSeries.inv.aux {σ : Type u_1} {R : Type u_2} [Ring R] (a : R) (φ : MvPowerSeries σ 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 invOfUnit.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      theorem MvPowerSeries.coeff_inv_aux {σ : Type u_1} {R : Type u_2} [Ring R] [DecidableEq σ] (n : σ →₀ ) (a : R) (φ : MvPowerSeries σ R) :
                      (MvPowerSeries.coeff R n) (MvPowerSeries.inv.aux a φ) = if n = 0 then a else -a * Finset.sum (Finset.antidiagonal n) fun (x : (σ →₀ ) × (σ →₀ )) => if x.2 < n then (MvPowerSeries.coeff R x.1) φ * (MvPowerSeries.coeff R x.2) (MvPowerSeries.inv.aux a φ) else 0
                      def MvPowerSeries.invOfUnit {σ : Type u_1} {R : Type u_2} [Ring R] (φ : MvPowerSeries σ R) (u : Rˣ) :

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

                      Equations
                      Instances For
                        theorem MvPowerSeries.coeff_invOfUnit {σ : Type u_1} {R : Type u_2} [Ring R] [DecidableEq σ] (n : σ →₀ ) (φ : MvPowerSeries σ R) (u : Rˣ) :
                        (MvPowerSeries.coeff R n) (MvPowerSeries.invOfUnit φ u) = if n = 0 then u⁻¹ else -u⁻¹ * Finset.sum (Finset.antidiagonal n) fun (x : (σ →₀ ) × (σ →₀ )) => if x.2 < n then (MvPowerSeries.coeff R x.1) φ * (MvPowerSeries.coeff R x.2) (MvPowerSeries.invOfUnit φ u) else 0
                        @[simp]
                        theorem MvPowerSeries.constantCoeff_invOfUnit {σ : Type u_1} {R : Type u_2} [Ring R] (φ : MvPowerSeries σ R) (u : Rˣ) :
                        theorem MvPowerSeries.mul_invOfUnit {σ : Type u_1} {R : Type u_2} [Ring R] (φ : MvPowerSeries σ R) (u : Rˣ) (h : (MvPowerSeries.constantCoeff σ R) φ = u) :

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

                        Equations
                        instance MvPowerSeries.map.isLocalRingHom {σ : Type u_1} {R : Type u_2} {S : Type u_3} [CommRing R] [CommRing S] (f : R →+* S) [IsLocalRingHom f] :

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

                        Equations
                        def MvPowerSeries.inv {σ : Type u_1} {k : Type u_3} [Field k] (φ : MvPowerSeries σ k) :

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

                        Equations
                        Instances For
                          instance MvPowerSeries.instInvMvPowerSeries {σ : Type u_1} {k : Type u_3} [Field k] :
                          Equations
                          • MvPowerSeries.instInvMvPowerSeries = { inv := MvPowerSeries.inv }
                          theorem MvPowerSeries.coeff_inv {σ : Type u_1} {k : Type u_3} [Field k] [DecidableEq σ] (n : σ →₀ ) (φ : MvPowerSeries σ k) :
                          (MvPowerSeries.coeff k n) φ⁻¹ = if n = 0 then ((MvPowerSeries.constantCoeff σ k) φ)⁻¹ else -((MvPowerSeries.constantCoeff σ k) φ)⁻¹ * Finset.sum (Finset.antidiagonal n) fun (x : (σ →₀ ) × (σ →₀ )) => if x.2 < n then (MvPowerSeries.coeff k x.1) φ * (MvPowerSeries.coeff k x.2) φ⁻¹ else 0
                          theorem MvPowerSeries.inv_eq_zero {σ : Type u_1} {k : Type u_3} [Field k] {φ : MvPowerSeries σ k} :
                          @[simp]
                          theorem MvPowerSeries.zero_inv {σ : Type u_1} {k : Type u_3} [Field k] :
                          0⁻¹ = 0
                          @[simp]
                          theorem MvPowerSeries.invOfUnit_eq' {σ : Type u_1} {k : Type u_3} [Field k] (φ : MvPowerSeries σ k) (u : kˣ) (h : (MvPowerSeries.constantCoeff σ k) φ = u) :
                          @[simp]
                          theorem MvPowerSeries.mul_inv_cancel {σ : Type u_1} {k : Type u_3} [Field k] (φ : MvPowerSeries σ k) (h : (MvPowerSeries.constantCoeff σ k) φ 0) :
                          φ * φ⁻¹ = 1
                          @[simp]
                          theorem MvPowerSeries.inv_mul_cancel {σ : Type u_1} {k : Type u_3} [Field k] (φ : MvPowerSeries σ k) (h : (MvPowerSeries.constantCoeff σ k) φ 0) :
                          φ⁻¹ * φ = 1
                          theorem MvPowerSeries.eq_mul_inv_iff_mul_eq {σ : Type u_1} {k : Type u_3} [Field k] {φ₁ : MvPowerSeries σ k} {φ₂ : MvPowerSeries σ k} {φ₃ : MvPowerSeries σ k} (h : (MvPowerSeries.constantCoeff σ k) φ₃ 0) :
                          φ₁ = φ₂ * φ₃⁻¹ φ₁ * φ₃ = φ₂
                          theorem MvPowerSeries.eq_inv_iff_mul_eq_one {σ : Type u_1} {k : Type u_3} [Field k] {φ : MvPowerSeries σ k} {ψ : MvPowerSeries σ k} (h : (MvPowerSeries.constantCoeff σ k) ψ 0) :
                          φ = ψ⁻¹ φ * ψ = 1
                          theorem MvPowerSeries.inv_eq_iff_mul_eq_one {σ : Type u_1} {k : Type u_3} [Field k] {φ : MvPowerSeries σ k} {ψ : MvPowerSeries σ k} (h : (MvPowerSeries.constantCoeff σ k) ψ 0) :
                          ψ⁻¹ = φ φ * ψ = 1
                          @[simp]
                          theorem MvPowerSeries.mul_inv_rev {σ : Type u_1} {k : Type u_3} [Field k] (φ : MvPowerSeries σ k) (ψ : MvPowerSeries σ k) :
                          (φ * ψ)⁻¹ = ψ⁻¹ * φ⁻¹
                          Equations
                          @[simp]
                          theorem MvPowerSeries.C_inv {σ : Type u_1} {k : Type u_3} [Field k] (r : k) :
                          @[simp]
                          theorem MvPowerSeries.X_inv {σ : Type u_1} {k : Type u_3} [Field k] (s : σ) :
                          @[simp]
                          theorem MvPowerSeries.smul_inv {σ : Type u_1} {k : Type u_3} [Field k] (r : k) (φ : MvPowerSeries σ k) :
                          def MvPolynomial.toMvPowerSeries {σ : Type u_1} {R : Type u_2} [CommSemiring R] :

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

                          Equations
                          Instances For
                            instance MvPolynomial.coeToMvPowerSeries {σ : Type u_1} {R : Type u_2} [CommSemiring R] :

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

                            Equations
                            • MvPolynomial.coeToMvPowerSeries = { coe := MvPolynomial.toMvPowerSeries }
                            theorem MvPolynomial.coe_def {σ : Type u_1} {R : Type u_2} [CommSemiring R] (φ : MvPolynomial σ R) :
                            φ = fun (n : σ →₀ ) => MvPolynomial.coeff n φ
                            @[simp]
                            theorem MvPolynomial.coeff_coe {σ : Type u_1} {R : Type u_2} [CommSemiring R] (φ : MvPolynomial σ R) (n : σ →₀ ) :
                            @[simp]
                            theorem MvPolynomial.coe_monomial {σ : Type u_1} {R : Type u_2} [CommSemiring R] (n : σ →₀ ) (a : R) :
                            @[simp]
                            theorem MvPolynomial.coe_zero {σ : Type u_1} {R : Type u_2} [CommSemiring R] :
                            0 = 0
                            @[simp]
                            theorem MvPolynomial.coe_one {σ : Type u_1} {R : Type u_2} [CommSemiring R] :
                            1 = 1
                            @[simp]
                            theorem MvPolynomial.coe_add {σ : Type u_1} {R : Type u_2} [CommSemiring R] (φ : MvPolynomial σ R) (ψ : MvPolynomial σ R) :
                            (φ + ψ) = φ + ψ
                            @[simp]
                            theorem MvPolynomial.coe_mul {σ : Type u_1} {R : Type u_2} [CommSemiring R] (φ : MvPolynomial σ R) (ψ : MvPolynomial σ R) :
                            (φ * ψ) = φ * ψ
                            @[simp]
                            theorem MvPolynomial.coe_C {σ : Type u_1} {R : Type u_2} [CommSemiring R] (a : R) :
                            (MvPolynomial.C a) = (MvPowerSeries.C σ R) a
                            @[simp]
                            theorem MvPolynomial.coe_bit0 {σ : Type u_1} {R : Type u_2} [CommSemiring R] (φ : MvPolynomial σ R) :
                            (bit0 φ) = bit0 φ
                            @[simp]
                            theorem MvPolynomial.coe_bit1 {σ : Type u_1} {R : Type u_2} [CommSemiring R] (φ : MvPolynomial σ R) :
                            (bit1 φ) = bit1 φ
                            @[simp]
                            theorem MvPolynomial.coe_X {σ : Type u_1} {R : Type u_2} [CommSemiring R] (s : σ) :
                            @[simp]
                            theorem MvPolynomial.coe_inj {σ : Type u_1} {R : Type u_2} [CommSemiring R] {φ : MvPolynomial σ R} {ψ : MvPolynomial σ R} :
                            φ = ψ φ = ψ
                            @[simp]
                            theorem MvPolynomial.coe_eq_zero_iff {σ : Type u_1} {R : Type u_2} [CommSemiring R] {φ : MvPolynomial σ R} :
                            φ = 0 φ = 0
                            @[simp]
                            theorem MvPolynomial.coe_eq_one_iff {σ : Type u_1} {R : Type u_2} [CommSemiring R] {φ : MvPolynomial σ R} :
                            φ = 1 φ = 1

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

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              @[simp]
                              theorem MvPolynomial.coe_pow {σ : Type u_1} {R : Type u_2} [CommSemiring R] {φ : MvPolynomial σ R} (n : ) :
                              (φ ^ n) = φ ^ n
                              @[simp]
                              theorem MvPolynomial.coeToMvPowerSeries.ringHom_apply {σ : Type u_1} {R : Type u_2} [CommSemiring R] (φ : MvPolynomial σ R) :
                              MvPolynomial.coeToMvPowerSeries.ringHom φ = φ

                              The coercion from multivariable polynomials to multivariable power series as an algebra homomorphism.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                instance MvPowerSeries.algebraMvPolynomial {σ : Type u_1} {R : Type u_2} {A : Type u_3} [CommSemiring R] [CommSemiring A] [Algebra R A] :
                                Equations
                                instance MvPowerSeries.algebraMvPowerSeries {σ : Type u_1} {R : Type u_2} {A : Type u_3} [CommSemiring R] [CommSemiring A] [Algebra R A] :
                                Equations
                                theorem MvPowerSeries.algebraMap_apply' {σ : Type u_1} {R : Type u_2} (A : Type u_3) [CommSemiring R] [CommSemiring A] [Algebra R A] (p : MvPolynomial σ R) :
                                theorem MvPowerSeries.algebraMap_apply'' {σ : Type u_1} {R : Type u_2} (A : Type u_3) [CommSemiring R] [CommSemiring A] [Algebra R A] (f : MvPowerSeries σ R) :
                                def PowerSeries (R : Type u_1) :
                                Type u_1

                                Formal power series over the coefficient ring R.

                                Equations
                                Instances For

                                  R⟦X⟧ is notation for PowerSeries R, the semiring of formal power series in one variable over a semiring R.

                                  Equations
                                  Instances For
                                    Equations
                                    • PowerSeries.instInhabitedPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instZeroPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instAddMonoidPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instAddGroupPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instAddCommMonoidPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instAddCommGroupPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instSemiringPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instCommSemiringPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instRingPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instCommRingPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instModulePowerSeriesInstAddCommMonoidPowerSeries = id inferInstance
                                    Equations
                                    • PowerSeries.instAlgebraPowerSeriesInstSemiringPowerSeries = id inferInstance
                                    def PowerSeries.coeff (R : Type u_1) [Semiring R] (n : ) :

                                    The nth coefficient of a formal power series.

                                    Equations
                                    Instances For

                                      The nth monomial with coefficient a as formal power series.

                                      Equations
                                      Instances For
                                        theorem PowerSeries.coeff_def {R : Type u_1} [Semiring R] {s : Unit →₀ } {n : } (h : s () = n) :
                                        theorem PowerSeries.ext {R : Type u_1} [Semiring R] {φ : PowerSeries R} {ψ : PowerSeries R} (h : ∀ (n : ), (PowerSeries.coeff R n) φ = (PowerSeries.coeff R n) ψ) :
                                        φ = ψ

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

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

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

                                        def PowerSeries.mk {R : Type u_2} (f : R) :

                                        Constructor for formal power series.

                                        Equations
                                        Instances For
                                          @[simp]
                                          theorem PowerSeries.coeff_mk {R : Type u_1} [Semiring R] (n : ) (f : R) :
                                          theorem PowerSeries.coeff_monomial {R : Type u_1} [Semiring R] (m : ) (n : ) (a : R) :
                                          (PowerSeries.coeff R m) ((PowerSeries.monomial R n) a) = if m = n then a else 0
                                          theorem PowerSeries.monomial_eq_mk {R : Type u_1} [Semiring R] (n : ) (a : R) :
                                          (PowerSeries.monomial R n) a = PowerSeries.mk fun (m : ) => if m = n then a else 0
                                          @[simp]
                                          theorem PowerSeries.coeff_monomial_same {R : Type u_1} [Semiring R] (n : ) (a : R) :
                                          @[simp]
                                          theorem PowerSeries.coeff_comp_monomial {R : Type u_1} [Semiring R] (n : ) :
                                          PowerSeries.coeff R n ∘ₗ PowerSeries.monomial R n = LinearMap.id

                                          The constant coefficient of a formal power series.

                                          Equations
                                          Instances For

                                            The constant formal power series.

                                            Equations
                                            Instances For
                                              def PowerSeries.X {R : Type u_1} [Semiring R] :

                                              The variable of the formal power series ring.

                                              Equations
                                              Instances For
                                                theorem PowerSeries.commute_X {R : Type u_1} [Semiring R] (φ : PowerSeries R) :
                                                Commute φ PowerSeries.X
                                                theorem PowerSeries.coeff_C {R : Type u_1} [Semiring R] (n : ) (a : R) :
                                                (PowerSeries.coeff R n) ((PowerSeries.C R) a) = if n = 0 then a else 0
                                                @[simp]
                                                theorem PowerSeries.coeff_zero_C {R : Type u_1} [Semiring R] (a : R) :
                                                theorem PowerSeries.coeff_ne_zero_C {R : Type u_1} [Semiring R] {a : R} {n : } (h : n 0) :
                                                @[simp]
                                                theorem PowerSeries.coeff_succ_C {R : Type u_1} [Semiring R] {a : R} {n : } :
                                                (PowerSeries.coeff R (n + 1)) ((PowerSeries.C R) a) = 0
                                                theorem PowerSeries.X_eq {R : Type u_1} [Semiring R] :
                                                PowerSeries.X = (PowerSeries.monomial R 1) 1
                                                theorem PowerSeries.coeff_X {R : Type u_1} [Semiring R] (n : ) :
                                                (PowerSeries.coeff R n) PowerSeries.X = if n = 1 then 1 else 0
                                                @[simp]
                                                theorem PowerSeries.coeff_zero_X {R : Type u_1} [Semiring R] :
                                                (PowerSeries.coeff R 0) PowerSeries.X = 0
                                                @[simp]
                                                theorem PowerSeries.coeff_one_X {R : Type u_1} [Semiring R] :
                                                (PowerSeries.coeff R 1) PowerSeries.X = 1
                                                @[simp]
                                                theorem PowerSeries.X_ne_zero {R : Type u_1} [Semiring R] [Nontrivial R] :
                                                PowerSeries.X 0
                                                theorem PowerSeries.X_pow_eq {R : Type u_1} [Semiring R] (n : ) :
                                                PowerSeries.X ^ n = (PowerSeries.monomial R n) 1
                                                theorem PowerSeries.coeff_X_pow {R : Type u_1} [Semiring R] (m : ) (n : ) :
                                                (PowerSeries.coeff R m) (PowerSeries.X ^ n) = if m = n then 1 else 0
                                                @[simp]
                                                theorem PowerSeries.coeff_X_pow_self {R : Type u_1} [Semiring R] (n : ) :
                                                (PowerSeries.coeff R n) (PowerSeries.X ^ n) = 1
                                                @[simp]
                                                theorem PowerSeries.coeff_one {R : Type u_1} [Semiring R] (n : ) :
                                                (PowerSeries.coeff R n) 1 = if n = 0 then 1 else 0
                                                theorem PowerSeries.coeff_mul {R : Type u_1} [Semiring R] (n : ) (φ : PowerSeries R) (ψ : PowerSeries R) :
                                                (PowerSeries.coeff R n) (φ * ψ) = Finset.sum (Finset.antidiagonal n) fun (p : × ) => (PowerSeries.coeff R p.1) φ * (PowerSeries.coeff R p.2) ψ
                                                @[simp]
                                                theorem PowerSeries.coeff_mul_C {R : Type u_1} [Semiring R] (n : ) (φ : PowerSeries R) (a : R) :
                                                @[simp]
                                                theorem PowerSeries.coeff_C_mul {R : Type u_1} [Semiring R] (n : ) (φ : PowerSeries R) (a : R) :
                                                @[simp]
                                                theorem PowerSeries.coeff_smul {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] [Module R S] (n : ) (φ : PowerSeries S) (a : R) :
                                                (PowerSeries.coeff S n) (a φ) = a (PowerSeries.coeff S n) φ
                                                theorem PowerSeries.smul_eq_C_mul {R : Type u_1} [Semiring R] (f : PowerSeries R) (a : R) :
                                                a f = (PowerSeries.C R) a * f
                                                @[simp]
                                                theorem PowerSeries.coeff_succ_mul_X {R : Type u_1} [Semiring R] (n : ) (φ : PowerSeries R) :
                                                (PowerSeries.coeff R (n + 1)) (φ * PowerSeries.X) = (PowerSeries.coeff R n) φ
                                                @[simp]
                                                theorem PowerSeries.coeff_succ_X_mul {R : Type u_1} [Semiring R] (n : ) (φ : PowerSeries R) :
                                                (PowerSeries.coeff R (n + 1)) (PowerSeries.X * φ) = (PowerSeries.coeff R n) φ
                                                @[simp]
                                                @[simp]
                                                theorem PowerSeries.constantCoeff_X {R : Type u_1} [Semiring R] :
                                                (PowerSeries.constantCoeff R) PowerSeries.X = 0
                                                theorem PowerSeries.coeff_zero_mul_X {R : Type u_1} [Semiring R] (φ : PowerSeries R) :
                                                (PowerSeries.coeff R 0) (φ * PowerSeries.X) = 0
                                                theorem PowerSeries.coeff_zero_X_mul {R : Type u_1} [Semiring R] (φ : PowerSeries R) :
                                                (PowerSeries.coeff R 0) (PowerSeries.X * φ) = 0
                                                theorem PowerSeries.coeff_C_mul_X_pow {R : Type u_1} [Semiring R] (x : R) (k : ) (n : ) :
                                                (PowerSeries.coeff R n) ((PowerSeries.C R) x * PowerSeries.X ^ k) = if n = k then x else 0
                                                @[simp]
                                                theorem PowerSeries.coeff_mul_X_pow {R : Type u_1} [Semiring R] (p : PowerSeries R) (n : ) (d : ) :
                                                (PowerSeries.coeff R (d + n)) (p * PowerSeries.X ^ n) = (PowerSeries.coeff R d) p
                                                @[simp]
                                                theorem PowerSeries.coeff_X_pow_mul {R : Type u_1} [Semiring R] (p : PowerSeries R) (n : ) (d : ) :
                                                (PowerSeries.coeff R (d + n)) (PowerSeries.X ^ n * p) = (PowerSeries.coeff R d) p
                                                theorem PowerSeries.coeff_mul_X_pow' {R : Type u_1} [Semiring R] (p : PowerSeries R) (n : ) (d : ) :
                                                (PowerSeries.coeff R d) (p * PowerSeries.X ^ n) = if n d then (PowerSeries.coeff R (d - n)) p else 0
                                                theorem PowerSeries.coeff_X_pow_mul' {R : Type u_1} [Semiring R] (p : PowerSeries R) (n : ) (d : ) :
                                                (PowerSeries.coeff R d) (PowerSeries.X ^ n * p) = if n d then (PowerSeries.coeff R (d - n)) p else 0

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

                                                theorem PowerSeries.eq_shift_mul_X_add_const {R : Type u_1} [Semiring R] (φ : PowerSeries R) :
                                                φ = (PowerSeries.mk fun (p : ) => (PowerSeries.coeff R (p + 1)) φ) * PowerSeries.X + (PowerSeries.C R) ((PowerSeries.constantCoeff R) φ)

                                                Split off the constant coefficient.

                                                theorem PowerSeries.eq_X_mul_shift_add_const {R : Type u_1} [Semiring R] (φ : PowerSeries R) :
                                                φ = (PowerSeries.X * PowerSeries.mk fun (p : ) => (PowerSeries.coeff R (p + 1)) φ) + (PowerSeries.C R) ((PowerSeries.constantCoeff R) φ)

                                                Split off the constant coefficient.

                                                def PowerSeries.map {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] (f : R →+* S) :

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

                                                Equations
                                                Instances For
                                                  @[simp]
                                                  theorem PowerSeries.map_id {R : Type u_1} [Semiring R] :
                                                  theorem PowerSeries.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 PowerSeries.coeff_map {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] (f : R →+* S) (n : ) (φ : PowerSeries R) :
                                                  @[simp]
                                                  theorem PowerSeries.map_C {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] (f : R →+* S) (r : R) :
                                                  @[simp]
                                                  theorem PowerSeries.map_X {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] (f : R →+* S) :
                                                  (PowerSeries.map f) PowerSeries.X = PowerSeries.X
                                                  theorem PowerSeries.X_pow_dvd_iff {R : Type u_1} [Semiring R] {n : } {φ : PowerSeries R} :
                                                  PowerSeries.X ^ n φ m < n, (PowerSeries.coeff R m) φ = 0
                                                  theorem PowerSeries.X_dvd_iff {R : Type u_1} [Semiring R] {φ : PowerSeries R} :
                                                  PowerSeries.X φ (PowerSeries.constantCoeff R) φ = 0
                                                  noncomputable def PowerSeries.rescale {R : Type u_1} [CommSemiring R] (a : R) :

                                                  The ring homomorphism taking a power series f(X) to f(aX).

                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For
                                                    @[simp]
                                                    theorem PowerSeries.coeff_rescale {R : Type u_1} [CommSemiring R] (f : PowerSeries R) (a : R) (n : ) :
                                                    theorem PowerSeries.rescale_mk {R : Type u_1} [CommSemiring R] (f : R) (a : R) :
                                                    def PowerSeries.trunc {R : Type u_1} [Semiring R] (n : ) (φ : PowerSeries R) :

                                                    The nth truncation of a formal power series to a polynomial

                                                    Equations
                                                    Instances For
                                                      theorem PowerSeries.coeff_trunc {R : Type u_1} [Semiring R] (m : ) (n : ) (φ : PowerSeries R) :
                                                      Polynomial.coeff (PowerSeries.trunc n φ) m = if m < n then (PowerSeries.coeff R m) φ else 0
                                                      @[simp]
                                                      theorem PowerSeries.trunc_zero {R : Type u_1} [Semiring R] (n : ) :
                                                      @[simp]
                                                      theorem PowerSeries.trunc_one {R : Type u_1} [Semiring R] (n : ) :
                                                      @[simp]
                                                      theorem PowerSeries.trunc_C {R : Type u_1} [Semiring R] (n : ) (a : R) :
                                                      PowerSeries.trunc (n + 1) ((PowerSeries.C R) a) = Polynomial.C a
                                                      @[simp]
                                                      theorem PowerSeries.trunc_add {R : Type u_1} [Semiring R] (n : ) (φ : PowerSeries R) (ψ : PowerSeries R) :
                                                      @[simp]
                                                      theorem PowerSeries.eval₂_trunc_eq_sum_range {R : Type u_1} [Semiring R] {S : Type u_2} [Semiring S] (s : S) (G : R →+* S) (n : ) (f : PowerSeries R) :
                                                      @[simp]
                                                      theorem PowerSeries.trunc_X {R : Type u_1} [Semiring R] (n : ) :
                                                      PowerSeries.trunc (n + 2) PowerSeries.X = Polynomial.X
                                                      theorem PowerSeries.trunc_X_of {R : Type u_1} [Semiring R] {n : } (hn : 2 n) :
                                                      PowerSeries.trunc n PowerSeries.X = Polynomial.X
                                                      def PowerSeries.inv.aux {R : Type u_1} [Ring R] :
                                                      RPowerSeries RPowerSeries R

                                                      Auxiliary function used for computing inverse of a power series

                                                      Equations
                                                      • PowerSeries.inv.aux = MvPowerSeries.inv.aux
                                                      Instances For
                                                        theorem PowerSeries.coeff_inv_aux {R : Type u_1} [Ring R] (n : ) (a : R) (φ : PowerSeries R) :
                                                        (PowerSeries.coeff R n) (PowerSeries.inv.aux a φ) = if n = 0 then a else -a * Finset.sum (Finset.antidiagonal n) fun (x : × ) => if x.2 < n then (PowerSeries.coeff R x.1) φ * (PowerSeries.coeff R x.2) (PowerSeries.inv.aux a φ) else 0
                                                        def PowerSeries.invOfUnit {R : Type u_1} [Ring R] (φ : PowerSeries R) (u : Rˣ) :

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

                                                        Equations
                                                        Instances For
                                                          theorem PowerSeries.coeff_invOfUnit {R : Type u_1} [Ring R] (n : ) (φ : PowerSeries R) (u : Rˣ) :
                                                          (PowerSeries.coeff R n) (PowerSeries.invOfUnit φ u) = if n = 0 then u⁻¹ else -u⁻¹ * Finset.sum (Finset.antidiagonal n) fun (x : × ) => if x.2 < n then (PowerSeries.coeff R x.1) φ * (PowerSeries.coeff R x.2) (PowerSeries.invOfUnit φ u) else 0
                                                          theorem PowerSeries.mul_invOfUnit {R : Type u_1} [Ring R] (φ : PowerSeries R) (u : Rˣ) (h : (PowerSeries.constantCoeff R) φ = u) :
                                                          theorem PowerSeries.sub_const_eq_shift_mul_X {R : Type u_1} [Ring R] (φ : PowerSeries R) :
                                                          φ - (PowerSeries.C R) ((PowerSeries.constantCoeff R) φ) = (PowerSeries.mk fun (p : ) => (PowerSeries.coeff R (p + 1)) φ) * PowerSeries.X

                                                          Two ways of removing the constant coefficient of a power series are the same.

                                                          theorem PowerSeries.sub_const_eq_X_mul_shift {R : Type u_1} [Ring R] (φ : PowerSeries R) :
                                                          φ - (PowerSeries.C R) ((PowerSeries.constantCoeff R) φ) = PowerSeries.X * PowerSeries.mk fun (p : ) => (PowerSeries.coeff R (p + 1)) φ
                                                          @[simp]
                                                          theorem PowerSeries.rescale_X {A : Type u_2} [CommRing A] (a : A) :
                                                          (PowerSeries.rescale a) PowerSeries.X = (PowerSeries.C A) a * PowerSeries.X
                                                          theorem PowerSeries.rescale_neg_one_X {A : Type u_2} [CommRing A] :
                                                          (PowerSeries.rescale (-1)) PowerSeries.X = -PowerSeries.X
                                                          noncomputable def PowerSeries.evalNegHom {A : Type u_2} [CommRing A] :

                                                          The ring homomorphism taking a power series f(X) to f(-X).

                                                          Equations
                                                          Instances For
                                                            @[simp]
                                                            theorem PowerSeries.evalNegHom_X {A : Type u_2} [CommRing A] :
                                                            PowerSeries.evalNegHom PowerSeries.X = -PowerSeries.X
                                                            theorem PowerSeries.eq_zero_or_eq_zero_of_mul_eq_zero {R : Type u_1} [Ring R] [NoZeroDivisors R] (φ : PowerSeries R) (ψ : PowerSeries R) (h : φ * ψ = 0) :
                                                            φ = 0 ψ = 0
                                                            theorem PowerSeries.span_X_isPrime {R : Type u_1} [CommRing R] [IsDomain R] :
                                                            Ideal.IsPrime (Ideal.span {PowerSeries.X})

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

                                                            theorem PowerSeries.X_prime {R : Type u_1} [CommRing R] [IsDomain R] :
                                                            Prime PowerSeries.X

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

                                                            theorem PowerSeries.algebraMap_apply {R : Type u_1} {A : Type u_2} [CommSemiring R] [Semiring A] [Algebra R A] {r : R} :
                                                            def PowerSeries.inv {k : Type u_2} [Field k] :

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

                                                            Equations
                                                            • PowerSeries.inv = MvPowerSeries.inv
                                                            Instances For
                                                              Equations
                                                              • PowerSeries.instInvPowerSeries = { inv := PowerSeries.inv }
                                                              theorem PowerSeries.coeff_inv {k : Type u_2} [Field k] (n : ) (φ : PowerSeries k) :
                                                              (PowerSeries.coeff k n) φ⁻¹ = if n = 0 then ((PowerSeries.constantCoeff k) φ)⁻¹ else -((PowerSeries.constantCoeff k) φ)⁻¹ * Finset.sum (Finset.antidiagonal n) fun (x : × ) => if x.2 < n then (PowerSeries.coeff k x.1) φ * (PowerSeries.coeff k x.2) φ⁻¹ else 0
                                                              @[simp]
                                                              theorem PowerSeries.zero_inv {k : Type u_2} [Field k] :
                                                              0⁻¹ = 0
                                                              @[simp]
                                                              theorem PowerSeries.invOfUnit_eq' {k : Type u_2} [Field k] (φ : PowerSeries k) (u : kˣ) (h : (PowerSeries.constantCoeff k) φ = u) :
                                                              @[simp]
                                                              theorem PowerSeries.mul_inv_cancel {k : Type u_2} [Field k] (φ : PowerSeries k) (h : (PowerSeries.constantCoeff k) φ 0) :
                                                              φ * φ⁻¹ = 1
                                                              @[simp]
                                                              theorem PowerSeries.inv_mul_cancel {k : Type u_2} [Field k] (φ : PowerSeries k) (h : (PowerSeries.constantCoeff k) φ 0) :
                                                              φ⁻¹ * φ = 1
                                                              theorem PowerSeries.eq_mul_inv_iff_mul_eq {k : Type u_2} [Field k] {φ₁ : PowerSeries k} {φ₂ : PowerSeries k} {φ₃ : PowerSeries k} (h : (PowerSeries.constantCoeff k) φ₃ 0) :
                                                              φ₁ = φ₂ * φ₃⁻¹ φ₁ * φ₃ = φ₂
                                                              theorem PowerSeries.eq_inv_iff_mul_eq_one {k : Type u_2} [Field k] {φ : PowerSeries k} {ψ : PowerSeries k} (h : (PowerSeries.constantCoeff k) ψ 0) :
                                                              φ = ψ⁻¹ φ * ψ = 1
                                                              theorem PowerSeries.inv_eq_iff_mul_eq_one {k : Type u_2} [Field k] {φ : PowerSeries k} {ψ : PowerSeries k} (h : (PowerSeries.constantCoeff k) ψ 0) :
                                                              ψ⁻¹ = φ φ * ψ = 1
                                                              @[simp]
                                                              theorem PowerSeries.mul_inv_rev {k : Type u_2} [Field k] (φ : PowerSeries k) (ψ : PowerSeries k) :
                                                              (φ * ψ)⁻¹ = ψ⁻¹ * φ⁻¹
                                                              Equations
                                                              @[simp]
                                                              theorem PowerSeries.C_inv {k : Type u_2} [Field k] (r : k) :
                                                              @[simp]
                                                              theorem PowerSeries.X_inv {k : Type u_2} [Field k] :
                                                              PowerSeries.X⁻¹ = 0
                                                              @[simp]
                                                              theorem PowerSeries.smul_inv {k : Type u_2} [Field k] (r : k) (φ : PowerSeries k) :
                                                              theorem PowerSeries.exists_coeff_ne_zero_iff_ne_zero {R : Type u_1} [Semiring R] {φ : PowerSeries R} :
                                                              (∃ (n : ), (PowerSeries.coeff R n) φ 0) φ 0
                                                              def PowerSeries.order {R : Type u_1} [Semiring R] (φ : PowerSeries R) :

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

                                                              Equations
                                                              Instances For
                                                                @[simp]

                                                                The order of the 0 power series is infinite.

                                                                theorem PowerSeries.coeff_order {R : Type u_1} [Semiring R] {φ : PowerSeries R} (h : (PowerSeries.order φ).Dom) :

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

                                                                theorem PowerSeries.order_le {R : Type u_1} [Semiring R] {φ : PowerSeries R} (n : ) (h : (PowerSeries.coeff R n) φ 0) :

                                                                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 PowerSeries.coeff_of_lt_order {R : Type u_1} [Semiring R] {φ : PowerSeries R} (n : ) (h : n < PowerSeries.order φ) :
                                                                (PowerSeries.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.

                                                                @[simp]
                                                                theorem PowerSeries.order_eq_top {R : Type u_1} [Semiring R] {φ : PowerSeries R} :

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

                                                                theorem PowerSeries.nat_le_order {R : Type u_1} [Semiring R] (φ : PowerSeries R) (n : ) (h : i < n, (PowerSeries.coeff R i) φ = 0) :

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

                                                                theorem PowerSeries.le_order {R : Type u_1} [Semiring R] (φ : PowerSeries R) (n : PartENat) (h : ∀ (i : ), i < n(PowerSeries.coeff R i) φ = 0) :

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

                                                                theorem PowerSeries.order_eq_nat {R : Type u_1} [Semiring R] {φ : PowerSeries R} {n : } :
                                                                PowerSeries.order φ = n (PowerSeries.coeff R n) φ 0 i < n, (PowerSeries.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 PowerSeries.order_eq {R : Type u_1} [Semiring R] {φ : PowerSeries R} {n : PartENat} :
                                                                PowerSeries.order φ = n (∀ (i : ), i = n(PowerSeries.coeff R i) φ 0) ∀ (i : ), i < n(PowerSeries.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.

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

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

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

                                                                theorem PowerSeries.order_monomial {R : Type u_1} [Semiring R] (n : ) (a : R) [Decidable (a = 0)] :
                                                                PowerSeries.order ((PowerSeries.monomial R n) a) = if a = 0 then else n

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

                                                                theorem PowerSeries.order_monomial_of_ne_zero {R : Type u_1} [Semiring R] (n : ) (a : R) (h : a 0) :

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

                                                                theorem PowerSeries.coeff_mul_of_lt_order {R : Type u_1} [Semiring R] {φ : PowerSeries R} {ψ : PowerSeries R} {n : } (h : n < PowerSeries.order ψ) :
                                                                (PowerSeries.coeff R n) (φ * ψ) = 0

                                                                If n is strictly smaller than the order of ψ, then the nth coefficient of its product with any other power series is 0.

                                                                theorem PowerSeries.coeff_mul_one_sub_of_lt_order {R : Type u_2} [CommRing R] {φ : PowerSeries R} {ψ : PowerSeries R} (n : ) (h : n < PowerSeries.order ψ) :
                                                                (PowerSeries.coeff R n) (φ * (1 - ψ)) = (PowerSeries.coeff R n) φ
                                                                theorem PowerSeries.coeff_mul_prod_one_sub_of_lt_order {R : Type u_2} {ι : Type u_3} [CommRing R] (k : ) (s : Finset ι) (φ : PowerSeries R) (f : ιPowerSeries R) :
                                                                (is, k < PowerSeries.order (f i))(PowerSeries.coeff R k) (φ * Finset.prod s fun (i : ι) => 1 - f i) = (PowerSeries.coeff R k) φ
                                                                theorem PowerSeries.X_pow_order_dvd {R : Type u_1} [Semiring R] {φ : PowerSeries R} (h : (PowerSeries.order φ).Dom) :
                                                                PowerSeries.X ^ (PowerSeries.order φ).get h φ
                                                                theorem PowerSeries.order_eq_multiplicity_X {R : Type u_2} [Semiring R] [DecidableRel fun (x x_1 : PowerSeries R) => x x_1] (φ : PowerSeries R) :
                                                                PowerSeries.order φ = multiplicity PowerSeries.X φ
                                                                @[simp]

                                                                The order of the formal power series 1 is 0.

                                                                @[simp]
                                                                theorem PowerSeries.order_X {R : Type u_1} [Semiring R] [Nontrivial R] :
                                                                PowerSeries.order PowerSeries.X = 1

                                                                The order of the formal power series X is 1.

                                                                @[simp]
                                                                theorem PowerSeries.order_X_pow {R : Type u_1} [Semiring R] [Nontrivial R] (n : ) :
                                                                PowerSeries.order (PowerSeries.X ^ n) = n

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

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

                                                                The natural inclusion from polynomials into formal power series.

                                                                Equations
                                                                Instances For

                                                                  The natural inclusion from polynomials into formal power series.

                                                                  Equations
                                                                  • Polynomial.coeToPowerSeries = { coe := Polynomial.ToPowerSeries }
                                                                  @[simp]
                                                                  theorem Polynomial.coeff_coe {R : Type u_2} [CommSemiring R] (φ : Polynomial R) (n : ) :
                                                                  @[simp]
                                                                  theorem Polynomial.coe_monomial {R : Type u_2} [CommSemiring R] (n : ) (a : R) :
                                                                  @[simp]
                                                                  theorem Polynomial.coe_zero {R : Type u_2} [CommSemiring R] :
                                                                  0 = 0
                                                                  @[simp]
                                                                  theorem Polynomial.coe_one {R : Type u_2} [CommSemiring R] :
                                                                  1 = 1
                                                                  @[simp]
                                                                  theorem Polynomial.coe_add {R : Type u_2} [CommSemiring R] (φ : Polynomial R) (ψ : Polynomial R) :
                                                                  (φ + ψ) = φ + ψ
                                                                  @[simp]
                                                                  theorem Polynomial.coe_mul {R : Type u_2} [CommSemiring R] (φ : Polynomial R) (ψ : Polynomial R) :
                                                                  (φ * ψ) = φ * ψ
                                                                  @[simp]
                                                                  theorem Polynomial.coe_C {R : Type u_2} [CommSemiring R] (a : R) :
                                                                  (Polynomial.C a) = (PowerSeries.C R) a
                                                                  @[simp]
                                                                  theorem Polynomial.coe_bit0 {R : Type u_2} [CommSemiring R] (φ : Polynomial R) :
                                                                  (bit0 φ) = bit0 φ
                                                                  @[simp]
                                                                  theorem Polynomial.coe_bit1 {R : Type u_2} [CommSemiring R] (φ : Polynomial R) :
                                                                  (bit1 φ) = bit1 φ
                                                                  @[simp]
                                                                  theorem Polynomial.coe_X {R : Type u_2} [CommSemiring R] :
                                                                  Polynomial.X = PowerSeries.X
                                                                  @[simp]
                                                                  theorem Polynomial.coe_inj {R : Type u_2} [CommSemiring R] {φ : Polynomial R} {ψ : Polynomial R} :
                                                                  φ = ψ φ = ψ
                                                                  @[simp]
                                                                  theorem Polynomial.coe_eq_zero_iff {R : Type u_2} [CommSemiring R] {φ : Polynomial R} :
                                                                  φ = 0 φ = 0
                                                                  @[simp]
                                                                  theorem Polynomial.coe_eq_one_iff {R : Type u_2} [CommSemiring R] {φ : Polynomial R} :
                                                                  φ = 1 φ = 1

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

                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  Instances For
                                                                    @[simp]
                                                                    theorem Polynomial.coeToPowerSeries.ringHom_apply {R : Type u_2} [CommSemiring R] (φ : Polynomial R) :
                                                                    Polynomial.coeToPowerSeries.ringHom φ = φ
                                                                    @[simp]
                                                                    theorem Polynomial.coe_pow {R : Type u_2} [CommSemiring R] (φ : Polynomial R) (n : ) :
                                                                    (φ ^ n) = φ ^ n
                                                                    theorem Polynomial.eval₂_C_X_eq_coe {R : Type u_2} [CommSemiring R] (φ : Polynomial R) :
                                                                    Polynomial.eval₂ (PowerSeries.C R) PowerSeries.X φ = φ

                                                                    The coercion from polynomials to power series as an algebra homomorphism.

                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For
                                                                      Equations
                                                                      Equations
                                                                      Equations
                                                                      @[simp]
                                                                      @[simp]
                                                                      @[simp]
                                                                      theorem PowerSeries.trunc_trunc_pow {R : Type u_1} [CommSemiring R] (f : PowerSeries R) (n : ) (a : ) :
                                                                      theorem PowerSeries.coeff_coe_trunc_of_lt {R : Type u_1} [CommSemiring R] {n : } {m : } {f : PowerSeries R} (h : n < m) :

                                                                      The function coeff n : R⟦X⟧ → R is continuous. I.e. coeff n f depends only on a sufficiently long truncation of the power series f.

                                                                      theorem PowerSeries.coeff_mul_eq_coeff_trunc_mul_trunc₂ {R : Type u_1} [CommSemiring R] {n : } {a : } {b : } (f : PowerSeries R) (g : PowerSeries R) (ha : n < a) (hb : n < b) :

                                                                      The n-th coefficient of f*g may be calculated from the truncations of f and g.

                                                                      theorem PowerSeries.coeff_mul_eq_coeff_trunc_mul_trunc {R : Type u_1} [CommSemiring R] {d : } {n : } (f : PowerSeries R) (g : PowerSeries R) (h : d < n) :