The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.PowerSeries.WellKnown
27 declarations. Mathlib docs · Source
Definition of well-known power series
In this file we define the following power series:
-
PowerSeries.invUnitsSub: givenu : Rˣ, this is the series for1 / (u - x). It is given by∑ n, x ^ n /ₚ u ^ (n + 1). -
PowerSeries.invOneSubPow: given a commutative ringSand a numberd : ℕ,PowerSeries.invOneSubPow S dis the multiplicative inverse of(1 - X) ^ dinS⟦X⟧ˣ. Whendis0,PowerSeries.invOneSubPow S dwill just be1. Whendis positive,PowerSeries.invOneSubPow S dwill be∑ n, Nat.choose (d - 1 + n) (d - 1). -
PowerSeries.sin,PowerSeries.cos,PowerSeries.exp: power series for sin, cosine, and exponential functions.
theorem PowerSeries.invOneSubPow.match_1.congr_eq_2 E1 #
∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (d : ℕ) → motive d.succ) (d : ℕ),
x = d.succ →
(match x with
| 0 => h_1 ()
| d.succ => h_2 d) ≍
h_2 d
theorem PowerSeries.invOneSubPow.match_1.congr_eq_1 E1 #
∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : (d : ℕ) → motive d.succ),
x = 0 →
(match x with
| 0 => h_1 ()
| d.succ => h_2 d) ≍
h_1 ()
def PowerSeries.invUnitsSub E1 #
{R : Type u_1} → [inst : Ring R] → Rˣ → PowerSeries R
The power series for 1 / (u - x).
theorem PowerSeries.coeff_invUnitsSub E0 #
∀ {R : Type u_1} [inst : Ring R] (u : Rˣ) (n : ℕ), (PowerSeries.coeff n) (PowerSeries.invUnitsSub u) = 1 /ₚ u ^ (n + 1)
theorem PowerSeries.constantCoeff_invUnitsSub E0 #
∀ {R : Type u_1} [inst : Ring R] (u : Rˣ), PowerSeries.constantCoeff (PowerSeries.invUnitsSub u) = 1 /ₚ u
theorem PowerSeries.invUnitsSub_mul_X E0 #
∀ {R : Type u_1} [inst : Ring R] (u : Rˣ),
PowerSeries.invUnitsSub u * PowerSeries.X = PowerSeries.invUnitsSub u * PowerSeries.C ↑u - 1
theorem PowerSeries.invUnitsSub_mul_sub E0 #
∀ {R : Type u_1} [inst : Ring R] (u : Rˣ), PowerSeries.invUnitsSub u * (PowerSeries.C ↑u - PowerSeries.X) = 1
theorem PowerSeries.map_invUnitsSub E0 #
∀ {R : Type u_1} {S : Type u_2} [inst : Ring R] [inst_1 : Ring S] (f : R →+* S) (u : Rˣ),
(PowerSeries.map f) (PowerSeries.invUnitsSub u) = PowerSeries.invUnitsSub ((Units.map ↑f) u)
theorem PowerSeries.mk_one_mul_one_sub_eq_one E1 #
∀ (S : Type u_1) [inst : CommRing S], PowerSeries.mk 1 * (1 - PowerSeries.X) = 1
(1 + X + X^2 + ...) * (1 - X) = 1.
Note that the power series 1 + X + X^2 + ... is written as mk 1 where 1 is the constant
function so that mk 1 is the power series with all coefficients equal to one.
theorem PowerSeries.mk_neg_one_pow_mul_one_add_eq_one E1 #
∀ (S : Type u_1) [inst : CommRing S], (PowerSeries.mk fun n ↦ (-1) ^ n) * (1 + PowerSeries.X) = 1
(1 - X + X ^ 2 - ...) * (1 + X) = 1.
This is the image of PowerSeries.mk_one_mul_one_sub_eq_one under PowerSeries.rescale (-1).
theorem PowerSeries.mk_one_pow_eq_mk_choose_add E2 #
∀ (S : Type u_1) [inst : CommRing S] (d : ℕ), PowerSeries.mk 1 ^ (d + 1) = PowerSeries.mk fun n ↦ ↑((d + n).choose d)
Note that mk 1 is the constant function 1 so the power series 1 + X + X^2 + .... This theorem
states that for any d : ℕ, (1 + X + X^2 + ... : S⟦X⟧) ^ (d + 1) is equal to the power series
mk fun n => Nat.choose (d + n) d : S⟦X⟧.
def PowerSeries.invOneSubPow E1 #
(S : Type u_1) → [inst : CommRing S] → ℕ → (PowerSeries S)ˣ
Given a natural number d : ℕ and a commutative ring S, PowerSeries.invOneSubPow S d is the
multiplicative inverse of (1 - X) ^ d in S⟦X⟧ˣ. When d is 0, PowerSeries.invOneSubPow S d
will just be 1. When d is positive, PowerSeries.invOneSubPow S d will be the power series
mk fun n => Nat.choose (d - 1 + n) (d - 1).
theorem PowerSeries.invOneSubPow_zero E1 #
∀ (S : Type u_1) [inst : CommRing S], PowerSeries.invOneSubPow S 0 = 1
theorem PowerSeries.invOneSubPow_val_eq_mk_sub_one_add_choose_of_pos E1 #
∀ (S : Type u_1) [inst : CommRing S] (d : ℕ),
0 < d → ↑(PowerSeries.invOneSubPow S d) = PowerSeries.mk fun n ↦ ↑((d - 1 + n).choose (d - 1))
theorem PowerSeries.invOneSubPow_val_succ_eq_mk_add_choose E1 #
∀ (S : Type u_1) [inst : CommRing S] (d : ℕ),
↑(PowerSeries.invOneSubPow S (d + 1)) = PowerSeries.mk fun n ↦ ↑((d + n).choose d)
theorem PowerSeries.invOneSubPow_val_one_eq_invUnitSub_one E1 #
∀ (S : Type u_1) [inst : CommRing S], ↑(PowerSeries.invOneSubPow S 1) = PowerSeries.invUnitsSub 1
theorem PowerSeries.invOneSubPow_eq_inv_one_sub_pow E2 #
∀ (S : Type u_1) [inst : CommRing S] (d : ℕ),
PowerSeries.invOneSubPow S d = (Units.mkOfMulEqOne (1 - PowerSeries.X) (PowerSeries.mk 1) ⋯)⁻¹ ^ d
The theorem PowerSeries.mk_one_mul_one_sub_eq_one implies that 1 - X is a unit in S⟦X⟧
whose inverse is the power series 1 + X + X^2 + .... This theorem states that for any d : ℕ,
PowerSeries.invOneSubPow S d is equal to (1 - X)⁻¹ ^ d.
theorem PowerSeries.invOneSubPow_inv_eq_one_sub_pow E1 #
∀ (S : Type u_1) [inst : CommRing S] (d : ℕ), (PowerSeries.invOneSubPow S d).inv = (1 - PowerSeries.X) ^ d
theorem PowerSeries.invOneSubPow_inv_zero_eq_one E1 #
∀ (S : Type u_1) [inst : CommRing S], (PowerSeries.invOneSubPow S 0).inv = 1
theorem PowerSeries.mk_add_choose_mul_one_sub_pow_eq_one E1 #
∀ (S : Type u_1) [inst : CommRing S] (d : ℕ),
(PowerSeries.mk fun n ↦ ↑((d + n).choose d)) * (1 - PowerSeries.X) ^ (d + 1) = 1
theorem PowerSeries.invOneSubPow_add E1 #
∀ (S : Type u_1) [inst : CommRing S] (d e : ℕ),
PowerSeries.invOneSubPow S (d + e) = PowerSeries.invOneSubPow S d * PowerSeries.invOneSubPow S e
theorem PowerSeries.one_sub_pow_mul_invOneSubPow_val_add_eq_invOneSubPow_val E0 #
∀ (S : Type u_1) [inst : CommRing S] (d e : ℕ),
(1 - PowerSeries.X) ^ e * ↑(PowerSeries.invOneSubPow S (d + e)) = ↑(PowerSeries.invOneSubPow S d)
theorem PowerSeries.one_sub_pow_add_mul_invOneSubPow_val_eq_one_sub_pow E1 #
∀ (S : Type u_1) [inst : CommRing S] (d e : ℕ),
(1 - PowerSeries.X) ^ (d + e) * ↑(PowerSeries.invOneSubPow S e) = (1 - PowerSeries.X) ^ d
def PowerSeries.sin E1 #
(A : Type u_1) → [inst : Ring A] → [Algebra ℚ A] → PowerSeries A
Power series for the sine function at zero.
def PowerSeries.cos E1 #
(A : Type u_1) → [inst : Ring A] → [Algebra ℚ A] → PowerSeries A
Power series for the cosine function at zero.
theorem PowerSeries.map_sin E0 #
∀ {A : Type u_1} {A' : Type u_2} [inst : Ring A] [inst_1 : Ring A'] [inst_2 : Algebra ℚ A] [inst_3 : Algebra ℚ A']
(f : A →+* A'), (PowerSeries.map f) (PowerSeries.sin A) = PowerSeries.sin A'
theorem PowerSeries.map_cos E0 #
∀ {A : Type u_1} {A' : Type u_2} [inst : Ring A] [inst_1 : Ring A'] [inst_2 : Algebra ℚ A] [inst_3 : Algebra ℚ A']
(f : A →+* A'), (PowerSeries.map f) (PowerSeries.cos A) = PowerSeries.cos A'