The areas / V09. Commutative algebra I: ideals, polynomials, factorization
Mathlib.RingTheory.PowerSeries.Log
17 declarations and 1 deprecated aliases. Mathlib docs · Source
Logarithmic Power Series
This file defines the logarithmic power series log A = ∑ (-1)^(n+1)/n · Xⁿ
over ℚ-algebras and establishes its key properties.
Main definitions
PowerSeries.log: The power serieslog(1+X) = X - X²/2 + X³/3 - ⋯.
Main results
PowerSeries.coeff_log: The coefficient oflog Aatnis(-1)^(n+1)/nforn ≥ 1, and0forn = 0.PowerSeries.constantCoeff_log: The constant term oflog Ais0.PowerSeries.map_log:logis preserved by ring homomorphisms between ℚ-algebras.PowerSeries.coeff_one_log: The coefficient oflog Aat1is1.PowerSeries.order_log: The order oflog Ais1.PowerSeries.derivative_log: The derivative oflog(1+X)is the geometric series∑ (-1)^n · Xⁿ = 1/(1+X).PowerSeries.derivative_log_mul_one_add_X:(log(1+X))' · (1 + X) = 1.PowerSeries.subst_exp_log:expandlogare mutually inverse: substitutinglog(1+X)intoexpyields1 + X.PowerSeries.subst_log_exp_sub_one: Substitutingexp X - 1intolog(1+X)yieldsX.PowerSeries.logOf_exp: The reformulationlogOf (exp X) = X, wherelogOf fislog(1+X)evaluated atf - 1.
Substitution
Log and exp as inverses
def PowerSeries.log E3 #
(A : Type u_1) → [inst : CommRing A] → [Algebra ℚ A] → PowerSeries A
Power series for log(1 + X) = X - X²/2 + X³/3 - ⋯.
theorem PowerSeries.coeff_log E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A] (n : ℕ),
(PowerSeries.coeff n) (PowerSeries.log A) = if n = 0 then 0 else (algebraMap ℚ A) ((-1) ^ (n + 1) / ↑n)
theorem PowerSeries.constantCoeff_log E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A], PowerSeries.constantCoeff (PowerSeries.log A) = 0
theorem PowerSeries.map_log E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A] {A' : Type u_2} [inst_2 : CommRing A']
[inst_3 : Algebra ℚ A'] (f : A →+* A'), (PowerSeries.map f) (PowerSeries.log A) = PowerSeries.log A'
theorem PowerSeries.coeff_one_log E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A], (PowerSeries.coeff 1) (PowerSeries.log A) = 1
theorem PowerSeries.order_log E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A] [Nontrivial A], (PowerSeries.log A).order = 1
theorem PowerSeries.derivative_log E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A],
PowerSeries.derivative (PowerSeries.log A) = PowerSeries.mk fun n ↦ (-1) ^ n
The derivative of log(1+X) is the geometric series 1 - X + X² - X³ + ⋯ = 1/(1+X).
theorem PowerSeries.derivative_log_mul_one_add_X E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A],
PowerSeries.derivative (PowerSeries.log A) * (1 + PowerSeries.X) = 1
The derivative of log(1+X) is the inverse of 1 + X.
theorem PowerSeries.HasSubst.log E3 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A], PowerSeries.HasSubst (PowerSeries.log A)
theorem PowerSeries.HasSubst.exp_sub_one E1 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A], PowerSeries.HasSubst (PowerSeries.exp A - 1)
def PowerSeries.logOf E1 #
{A : Type u_1} → [inst : CommRing A] → [Algebra ℚ A] → PowerSeries A → PowerSeries A
logOf f is log(1+X) substituted at f - 1, i.e., (f-1) - (f-1)²/2 + (f-1)³/3 - ⋯.
theorem PowerSeries.logOf_eq E0 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A] (f : PowerSeries A),
f.logOf = PowerSeries.subst (f - 1) (PowerSeries.log A)
theorem PowerSeries.constantCoeff_logOf E1 #
∀ {A : Type u_1} [inst : CommRing A] [inst_1 : Algebra ℚ A] {f : PowerSeries A},
PowerSeries.constantCoeff f = 1 → PowerSeries.constantCoeff f.logOf = 0
theorem PowerSeries.logOf_one_add_X E0 #
∀ (A : Type u_1) [inst : CommRing A] [inst_1 : Algebra ℚ A], (1 + PowerSeries.X).logOf = PowerSeries.log A
theorem PowerSeries.subst_exp_log E3 #
∀ (A : Type u_1) [inst : CommRing A] [inst_1 : Algebra ℚ A],
PowerSeries.subst (PowerSeries.log A) (PowerSeries.exp A) = 1 + PowerSeries.X
theorem PowerSeries.subst_log_exp_sub_one E3 #
∀ (A : Type u_1) [inst : CommRing A] [inst_1 : Algebra ℚ A],
PowerSeries.subst (PowerSeries.exp A - 1) (PowerSeries.log A) = PowerSeries.X
theorem PowerSeries.logOf_exp E3 #
∀ (A : Type u_1) [inst : CommRing A] [inst_1 : Algebra ℚ A], (PowerSeries.exp A).logOf = PowerSeries.X
Deprecated aliases
| Name | New name | Since |
|---|---|---|
PowerSeries.deriv_log | PowerSeries.derivative_log | 2026-08-29 |