The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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 series log(1+X) = X - X²/2 + X³/3 - ⋯.

Main results

  • PowerSeries.coeff_log: The coefficient of log A at n is (-1)^(n+1)/n for n ≥ 1, and 0 for n = 0.
  • PowerSeries.constantCoeff_log: The constant term of log A is 0.
  • PowerSeries.map_log: log is preserved by ring homomorphisms between ℚ-algebras.
  • PowerSeries.coeff_one_log: The coefficient of log A at 1 is 1.
  • PowerSeries.order_log: The order of log A is 1.
  • PowerSeries.derivative_log: The derivative of log(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: exp and log are mutually inverse: substituting log(1+X) into exp yields 1 + X.
  • PowerSeries.subst_log_exp_sub_one: Substituting exp X - 1 into log(1+X) yields X.
  • PowerSeries.logOf_exp: The reformulation logOf (exp X) = X, where logOf f is log(1+X) evaluated at f - 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

NameNew nameSince
PowerSeries.deriv_logPowerSeries.derivative_log2026-08-29