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 / V16. Normed spaces and functional analysis

Mathlib.Analysis.Normed.Algebra.Logarithm

20 declarations. Mathlib docs Β· Source

The logarithm in a topological algebra

In this file we define NormedSpace.log : 𝔸 β†’ 𝔸, the logarithm log x = βˆ‘β‚™ ((-1) ^ (n + 1) / n) β€’ (x - 1) ^ n in a topological ring 𝔸, following the development style of NormedSpace.exp (see Mathlib/Analysis/Normed/Algebra/Exponential.lean). It is the value at x - 1 of the FormalMultilinearSeries NormedSpace.logSeries β„š 𝔸, where the β„š-algebra structure on 𝔸 is chosen using Classical.choice. It takes the junk value 0 if the series does not converge or if 𝔸 has no β„š-algebra structure (equivalently, if 1 / n doesn't correspond to what a mathematician thinks).

This file only contains the definition and its immediate algebraic properties; convergence of the series and the relation to NormedSpace.exp are left to later files.

Main definitions

  • NormedSpace.logSeries 𝕂 𝔸: the formal multilinear series whose n-th term is (xα΅’) ↦ ((-1) ^ (n + 1) / n : 𝕂) β€’ ∏ xα΅’; its sum at x - 1 is log x.
  • NormedSpace.log: the logarithm 𝔸 β†’ 𝔸.

Main results

  • NormedSpace.log_eq_tsum: log as a tsum.
  • NormedSpace.log_one, NormedSpace.log_op, NormedSpace.star_log, NormedSpace.log_mem, Commute.log: immediate properties.

TODO

  • Ultrametric convergence: if K is a complete ultrametric normed field of characteristic zero then the series converges on the whole disc β€–x - 1β€– < 1 (no choice of prime is needed: the natural numbers of norm < 1 form a prime ideal of β„•, and if it is pβ„• then β€–nβ€– = β€–pβ€– ^ padicValNat p n).
  • If moreover β€–(p : K)β€– < 1 for a prime p, Iwasawa's formula log x = lim (x ^ p ^ k - 1) / p ^ k gives log (x * y) = log x + log y on that disc, hence log_inv, log_pow, log_zpow etc.
  • The formal identity log ((1 + X) * (1 + Y)) = log (1 + X) + log (1 + Y) in β„šβŸ¦X, Y⟧.
  • Relation with NormedSpace.exp: exp (log x) = x and log (exp x) = x whenever both series converge.
  • In the ultrametric case, the computation of where the series for exp and log converge (β€–x - 1β€– ^ (p - 1) < β€–(p : K)β€– for log).
  • β€–log xβ€– = β€–x - 1β€– when the series converges
  • Analyticity: HasFPowerSeriesOnBall log (logSeries 𝕂 𝔸) 1 (logSeries 𝕂 𝔸).radius and its consequences, mirroring NormedSpace.analyticAt_exp_of_mem_ball.
  • Over ℝ and β„‚, NormedSpace.log agrees with Real.log and Complex.log on β€–x - 1β€– < 1.
  • Analytic continuation of log in the ultrametric case (probably best to be opinionated and define log p = 0 so we get a "canonical branch" analogous to how mathlib has chosen a branch of Complex.log).

theorem NormedSpace.logSeries.congr_simp E1 #

βˆ€ (𝕂 : Type u_1) (𝔸 : Type u_2) [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] (n : β„•), NormedSpace.logSeries 𝕂 𝔸 n = NormedSpace.logSeries 𝕂 𝔸 n

theorem NormedSpace.log.congr_simp E1 #

βˆ€ {𝔸 : Type u_2} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] (x x_1 : 𝔸),
  x = x_1 β†’ NormedSpace.log x = NormedSpace.log x_1

def NormedSpace.logSeries E1 #

(𝕂 : Type u_1) β†’
  (𝔸 : Type u_2) β†’
    [inst : Field 𝕂] β†’
      [inst_1 : Ring 𝔸] β†’
        [inst_2 : Algebra 𝕂 𝔸] β†’
          [inst_3 : TopologicalSpace 𝔸] β†’ [inst_4 : IsTopologicalRing 𝔸] β†’ FormalMultilinearSeries 𝕂 𝔸 𝔸

logSeries 𝕂 𝔸 is the FormalMultilinearSeries whose n-th term is the map (xα΅’) : 𝔸ⁿ ↦ ((-1) ^ (n + 1) / n : 𝕂) β€’ ∏ xα΅’; its 0-th term is 0 since 1 / 0 = 0. The corresponding sum evaluated at x - 1 is the logarithm NormedSpace.log x.

theorem NormedSpace.logSeries_eq_ofScalars E1 #

βˆ€ (𝕂 : Type u_1) (𝔸 : Type u_2) [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸],
  NormedSpace.logSeries 𝕂 𝔸 = FormalMultilinearSeries.ofScalars 𝔸 fun n ↦ (-1) ^ (n + 1) / ↑n

def NormedSpace.log E3 #

{𝔸 : Type u_2} β†’ [inst : Ring 𝔸] β†’ [inst_1 : TopologicalSpace 𝔸] β†’ [IsTopologicalRing 𝔸] β†’ 𝔸 β†’ 𝔸

NormedSpace.log : 𝔸 β†’ 𝔸 is the logarithm log x = βˆ‘β‚™ ((-1) ^ (n + 1) / n) β€’ (x - 1) ^ n. It is defined as the sum of the FormalMultilinearSeries logSeries β„š 𝔸 at x - 1, in the same way as NormedSpace.exp, and takes the junk value 0 where the series does not converge.

If 𝔸 can't be equipped with a β„š-algebra structure, we use the junk value 0.

theorem NormedSpace.log_of_isEmpty_algebra_rat E0 #

βˆ€ {𝔸 : Type u_2} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] [IsEmpty (Algebra β„š 𝔸)]
  (x : 𝔸), NormedSpace.log x = 0

The junk value when 𝔸 can't be equipped with a β„š-algebra structure.

theorem NormedSpace.logSeries_apply_eq E0 #

βˆ€ {𝕂 : Type u_1} {𝔸 : Type u_2} [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] (x : 𝔸) (n : β„•),
  ((NormedSpace.logSeries 𝕂 𝔸 n) fun x_1 ↦ x) = ((-1) ^ (n + 1) / ↑n) β€’ x ^ n

theorem NormedSpace.logSeries_sum_eq E0 #

βˆ€ {𝕂 : Type u_1} {𝔸 : Type u_2} [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] (x : 𝔸), (NormedSpace.logSeries 𝕂 𝔸).sum x = βˆ‘' (n : β„•), ((-1) ^ (n + 1) / ↑n) β€’ x ^ n

theorem NormedSpace.logSeries_sum_eq_rat E1 #

βˆ€ {𝕂 : Type u_1} {𝔸 : Type u_2} [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] [inst_5 : Algebra β„š 𝔸],
  (NormedSpace.logSeries 𝕂 𝔸).sum = (NormedSpace.logSeries β„š 𝔸).sum

theorem NormedSpace.logSeries_eq_logSeries_rat E1 #

βˆ€ {𝕂 : Type u_1} {𝔸 : Type u_2} [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] [inst_5 : Algebra β„š 𝔸] (n : β„•),
  ⇑(NormedSpace.logSeries 𝕂 𝔸 n) = ⇑(NormedSpace.logSeries β„š 𝔸 n)

theorem NormedSpace.log_eq_logSeries_sum E1 #

βˆ€ (𝕂 : Type u_1) {𝔸 : Type u_2} [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] [CharZero 𝕂], NormedSpace.log = fun x ↦ (NormedSpace.logSeries 𝕂 𝔸).sum (x - 1)

theorem NormedSpace.log_eq_tsum E3 #

βˆ€ (𝕂 : Type u_1) {𝔸 : Type u_2} [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] [CharZero 𝕂], NormedSpace.log = fun x ↦ βˆ‘' (n : β„•), ((-1) ^ (n + 1) / ↑n) β€’ (x - 1) ^ n

theorem NormedSpace.logSeries_apply_zero E1 #

βˆ€ {𝕂 : Type u_1} {𝔸 : Type u_2} [inst : Field 𝕂] [inst_1 : Ring 𝔸] [inst_2 : Algebra 𝕂 𝔸] [inst_3 : TopologicalSpace 𝔸]
  [inst_4 : IsTopologicalRing 𝔸] (n : β„•), ((NormedSpace.logSeries 𝕂 𝔸 n) fun x ↦ 0) = 0

theorem NormedSpace.log_one E3 #

βˆ€ {𝔸 : Type u_2} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸], NormedSpace.log 1 = 0

theorem NormedSpace.log_op E3 #

βˆ€ {𝔸 : Type u_2} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] [T2Space 𝔸] (x : 𝔸),
  NormedSpace.log (MulOpposite.op x) = MulOpposite.op (NormedSpace.log x)

theorem NormedSpace.star_log E3 #

βˆ€ {𝔸 : Type u_2} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] [T2Space 𝔸]
  [inst_4 : StarRing 𝔸] [ContinuousStar 𝔸] (x : 𝔸), star (NormedSpace.log x) = NormedSpace.log (star x)

theorem NormedSpace.log_mem E3 #

βˆ€ {𝔸 : Type u_2} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] {R : Type u_3}
  {S : Type u_4} [inst_3 : Monoid R] [inst_4 : SMul β„š R] [inst_5 : MulAction R 𝔸] [inst_6 : Algebra β„š 𝔸]
  [IsScalarTower β„š R 𝔸] [inst_8 : SetLike S 𝔸] [SubringClass S 𝔸] [SMulMemClass S R 𝔸] {s : S},
  IsClosed ↑s β†’ βˆ€ {x : 𝔸}, x ∈ s β†’ NormedSpace.log x ∈ s

A subring of 𝔸 that is closed topologically and under β„š-scaling is closed under log.

theorem Commute.log_right E1 #

βˆ€ {𝔸 : Type u_1} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] [T2Space 𝔸] {x y : 𝔸},
  Commute x y β†’ Commute x (NormedSpace.log y)

theorem Commute.log_left E1 #

βˆ€ {𝔸 : Type u_1} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] [T2Space 𝔸] {x y : 𝔸},
  Commute x y β†’ Commute (NormedSpace.log x) y

theorem Commute.log E3 #

βˆ€ {𝔸 : Type u_1} [inst : Ring 𝔸] [inst_1 : TopologicalSpace 𝔸] [inst_2 : IsTopologicalRing 𝔸] [T2Space 𝔸] {x y : 𝔸},
  Commute x y β†’ Commute (NormedSpace.log x) (NormedSpace.log y)