SSL Exponential.lean
Sprache: Lean
|
|
/-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Eric Wieser, Yuyang Zhao
-/
module
public import Mathlib.Algebra.Ring.Action.ConjAct
public import Mathlib.Analysis.Analytic.ChangeOrigin
public import Mathlib.Analysis.Analytic.OfScalars
public import Mathlib.Analysis.Complex.Basic
import Mathlib.Algebra.Algebra.TransferInstance
import Mathlib.Data.Nat.Choose.Cast
/-!
# Exponential in a Banach algebra
In this file, we define `NormedSpace.exp : → `,
the exponential map in a topological algebra ``.
While for most interesting results we need `` to be normed algebra, we do not require this in the
definition in order to make `NormedSpace.exp` independent of a particular choice of norm. The
definition also does not require that `` be complete, but we need to assume it for most results.
We then prove some basic results, but we avoid importing derivatives here to minimize dependencies.
Results involving derivatives and comparisons with `Real.exp` and `Complex.exp` can be found in
`Analysis.SpecialFunctions.Exponential`.
## Main results
We prove most result for an arbitrary field ``, and then specialize to ` = ℝ` or ` = ℂ`.
### General case
- `NormedSpace.exp_add_of_commute_of_mem_ball` : if `` has characteristic zero,
then given two commuting elements `x` and `y` in the disk of convergence, we have
`NormedSpace.exp (x+y) = (NormedSpace.exp x) * (NormedSpace.exp y)`
- `NormedSpace.exp_add_of_mem_ball` : if `` has characteristic zero and `` is commutative,
then given two elements `x` and `y` in the disk of convergence, we have
`NormedSpace.exp (x+y) = (NormedSpace.exp x) * (NormedSpace.exp y)`
- `NormedSpace.exp_neg_of_mem_ball` : if `` has characteristic zero and `` is a division ring,
then given an element `x` in the disk of convergence,
we have `NormedSpace.exp (-x) = (NormedSpace.exp x)⁻¹`.
### ` = ℝ` or ` = ℂ`
- `expSeries_radius_eq_top` : the `FormalMultilinearSeries` defining `NormedSpace.exp`
has infinite radius of convergence
- `NormedSpace.exp_add_of_commute` : given two commuting elements `x` and `y`, we have
`NormedSpace.exp (x+y) = (NormedSpace.exp x) * (NormedSpace.exp y)`
- `NormedSpace.exp_add` : if `` is commutative, then we have
`NormedSpace.exp (x+y) = (NormedSpace.exp x) * (NormedSpace.exp y)` for any `x` and `y`
- `NormedSpace.exp_neg` : if `` is a division ring, then we have
`NormedSpace.exp (-x) = (NormedSpace.exp x)⁻¹`.
- `NormedSpace.exp_sum_of_commute` : the analogous result to `NormedSpace.exp_add_of_commute`
for `Finset.sum`.
- `NormedSpace.exp_sum` : the analogous result to `NormedSpace.exp_add` for `Finset.sum`.
- `NormedSpace.exp_nsmul` : repeated addition in the domain corresponds to
repeated multiplication in the codomain.
- `NormedSpace.exp_zsmul` : repeated addition in the domain corresponds to
repeated multiplication in the codomain.
### Notes
We put nearly all the statements in this file in the `NormedSpace` namespace,
to avoid collisions with the `Real` or `Complex` namespaces.
As of 2023-11-16 due to bad instances in Mathlib
```
import Mathlib
open Real
#time example (x : ℝ) : 0 < exp x := exp_pos _ -- 250ms
#time example (x : ℝ) : 0 < Real.exp x := exp_pos _ -- 2ms
```
This is because `exp x` tries the `NormedSpace.exp : → ` function previously defined here,
and generates a slow coercion search from `Real` to `Type`, to fit the first argument here.
We will resolve this slow coercion separately,
but we want to move `exp` out of the root namespace in any case to avoid this ambiguity.
To avoid explicitly passing the base field ``, we currently fix ` = ℚ` in the definition of
`NormedSpace.exp : → `. If `` can be equipped with a `ℚ`-algebra structure, we use
`Classical.choice` to pick the unique `Algebra ℚ ` instead of requiring an instance argument.
This eliminates the need to provide `Algebra ℚ ` every time `exp` is used. If `` can't be equipped
with a `ℚ`-algebra structure, we use the junk value `1`.
In the long term it may be possible to replace `Real.exp` and `Complex.exp` with `NormedSpace.exp`
and move it back to the root namespace.
-/
@[expose] public section
namespace NormedSpace
open Filter RCLike ContinuousMultilinearMap NormedField Asymptotics FormalMultilinearSeries
open scoped Nat Topology ENNReal Ring
section TopologicalAlgebra
variable ( : Type*) [Field ] [Ring ] [Algebra ] [TopologicalSpace ] [IsTopologicalRing ]
/-- `expSeries ` is the `FormalMultilinearSeries` whose `n`-th term is the map
`(xᵢ) : ⁿ ↦ (1/n! : ) • ∏ xᵢ`. Its sum is the exponential map `NormedSpace.exp : → `. -/
def expSeries : FormalMultilinearSeries := fun n =>
(n !⁻¹ : ) • ContinuousMultilinearMap.mkPiAlgebraFin n
/-- The exponential series as an `ofScalars` series. -/
theorem expSeries_eq_ofScalars : expSeries = ofScalars fun n ↦ (n !⁻¹ : ) := by
simp_rw [FormalMultilinearSeries.ext_iff, expSeries, ofScalars, implies_true]
variable { }
open scoped Classical in
/-- `NormedSpace.exp : → ` is the exponential map. It is defined as the sum of the
`FormalMultilinearSeries` `expSeries ℚ `.
If `` can't be equipped with a `ℚ`-algebra structure, we use the junk value `1`. For details on why
this approach is taken, see the module documentation for
`Mathlib/Analysis/Normed/Algebra/Exponential.lean`.
Note that when ` = Matrix n n `, this is the **Matrix Exponential**; see
`Mathlib/Analysis/Normed/Algebra/MatrixExponential.lean` for lemmas
specific to that case. -/
@[no_expose] noncomputable def exp (x : ) : :=
if h : Nonempty (Algebra ℚ ) then
letI _ := h.some
(NormedSpace.expSeries ℚ ).sum x
else
1
/-- The junk value when `` can't be equipped with a `ℚ`-algebra structure. -/
@[simp]
theorem exp_of_isEmpty_algebra_rat [IsEmpty (Algebra ℚ )] (x : ) : exp x = 1 := by
rw [exp, dite_eq_right (not_nonempty_iff.mpr ‹_›)]
theorem expSeries_apply_eq (x : ) (n : ℕ) :
(expSeries n fun _ => x) = (n !⁻¹ : ) • x ^ n := by simp [expSeries]
theorem expSeries_apply_eq' (x : ) :
(fun n => expSeries n fun _ => x) = fun n => (n !⁻¹ : ) • x ^ n :=
funext (expSeries_apply_eq x)
theorem expSeries_sum_eq (x : ) : (expSeries ).sum x = ∑' n : ℕ, (n !⁻¹ : ) • x ^ n :=
tsum_congr fun n => expSeries_apply_eq x n
theorem expSeries_sum_eq_rat [Algebra ℚ ] : (expSeries ).sum = (expSeries ℚ ).sum := by
ext; simp_rw [expSeries_sum_eq, inv_natCast_smul_eq ℚ]
theorem expSeries_eq_expSeries_rat [Algebra ℚ ] (n : ℕ) :
⇑(expSeries n) = expSeries ℚ n := by
ext c
simp [expSeries, inv_natCast_smul_eq ℚ]
variable () in
theorem exp_eq_expSeries_sum [CharZero ] : exp = (expSeries ).sum := by
ext x
rw [exp, dite_eq_left ⟨RestrictScalars.algebra ℚ ⟩, ← @expSeries_sum_eq_rat ( := )]
variable () in
theorem exp_eq_tsum [CharZero ] : exp = fun x : => ∑' n : ℕ, (n !⁻¹ : ) • x ^ n := by
rw [exp_eq_expSeries_sum ]
ext x
exact expSeries_sum_eq x
theorem exp_eq_tsum_rat [Algebra ℚ ] : exp = fun x : => ∑' n : ℕ, (n !⁻¹ : ℚ) • x ^ n :=
exp_eq_tsum ℚ
variable () in
/-- The exponential sum as an `ofScalarsSum`. -/
theorem exp_eq_ofScalarsSum [CharZero ] :
exp = ofScalarsSum (E := ) fun n ↦ (n !⁻¹ : ) := by
rw [exp_eq_tsum , ofScalarsSum_eq_tsum]
theorem expSeries_apply_zero (n : ℕ) :
expSeries n (fun _ => (0 : )) = Pi.single (M := fun _ => ) 0 1 n := by
rw [expSeries_apply_eq]
rcases n with - | n
· simp
· rw [zero_pow (Nat.succ_ne_zero _), smul_zero, Pi.single_eq_of_ne n.succ_ne_zero]
@[simp]
theorem exp_zero : exp (0 : ) = 1 := by
rw [exp]
split_ifs
· simp_rw [expSeries_sum_eq, ← expSeries_apply_eq, expSeries_apply_zero, tsum_pi_single]
· rfl
@[simp]
theorem exp_op [T2Space ] (x : ) :
exp (MulOpposite.op x) = MulOpposite.op (exp x) := by
obtain h | ⟨⟨_⟩⟩ := isEmpty_or_nonempty (Algebra ℚ )
· have : IsEmpty (Algebra ℚ ᵐᵒᵖ) := ⟨fun _ => h.elim <| (RingEquiv.opOp ).algebra ℚ⟩
simp
· rw [exp_eq_tsum ℚ, exp_eq_tsum ℚ]
simp_rw [← MulOpposite.op_pow, ← MulOpposite.op_smul, tsum_op]
@[simp]
theorem exp_unop [T2Space ] (x : ᵐᵒᵖ) :
exp (MulOpposite.unop x) = MulOpposite.unop (exp x) := by
induction x; simp
theorem star_exp [T2Space ] [StarRing ] [ContinuousStar ] (x : ) :
star (exp x) = exp (star x) := by
obtain _ | ⟨⟨_⟩⟩ := isEmpty_or_nonempty (Algebra ℚ )
· simp
· simp_rw [exp_eq_tsum ℚ, ← star_pow, ← star_inv_natCast_smul, ← tsum_star]
/-- A subalgebra of `` that is closed topologically and under `ℚ`-scaling is closed under `exp`. -/
theorem exp_mem
{R S : Type*} [Monoid R] [SMul ℚ R] [MulAction R ] [Algebra ℚ ] [IsScalarTower ℚ R ]
[SetLike S ] [SubsemiringClass S ] [SMulMemClass S R ] {s : S}
(h_closed : IsClosed (s : Set )) {x : } (h : x ∈ s) :
exp x ∈ s := by
have := SMulMemClass.ofIsScalarTower S ℚ R
rw [exp_eq_tsum ℚ]
exact tsum_mem h_closed fun i => SMulMemClass.smul_mem _ <| pow_mem h _
variable ()
@[aesop safe apply]
theorem _root_.IsSelfAdjoint.exp [T2Space ] [StarRing ] [ContinuousStar ] {x : }
(h : IsSelfAdjoint x) : IsSelfAdjoint (exp x) :=
(star_exp x).trans <| h.symm ▸ rfl
theorem _root_.Commute.exp_right [T2Space ] {x y : } (h : Commute x y) :
Commute x (exp y) := by
obtain _ | ⟨⟨_⟩⟩ := isEmpty_or_nonempty (Algebra ℚ )
· simp
· rw [exp_eq_tsum ℚ]
exact Commute.tsum_right x fun n => (h.pow_right n).smul_right _
theorem _root_.Commute.exp_left [T2Space ] {x y : } (h : Commute x y) :
Commute (exp x) y :=
h.symm.exp_right.symm
theorem _root_.Commute.exp [T2Space ] {x y : } (h : Commute x y) :
Commute (exp x) (exp y) :=
h.exp_left.exp_right
end TopologicalAlgebra
section TopologicalDivisionAlgebra
variable { : Type*} [Field ] [DivisionRing ] [Algebra ] [TopologicalSpace ]
[IsTopologicalRing ]
theorem expSeries_apply_eq_div (x : ) (n : ℕ) : (expSeries n fun _ => x) = x ^ n / n ! := by
rw [div_eq_mul_inv, ← (Nat.cast_commute n ! (x ^ n)).inv_left₀.eq, ← smul_eq_mul,
expSeries_apply_eq, inv_natCast_smul_eq ]
theorem expSeries_apply_eq_div' (x : ) :
(fun n => expSeries n fun _ => x) = fun n => x ^ n / n ! :=
funext (expSeries_apply_eq_div x)
theorem expSeries_sum_eq_div (x : ) : (expSeries ).sum x = ∑' n : ℕ, x ^ n / n ! :=
tsum_congr (expSeries_apply_eq_div x)
theorem exp_eq_tsum_div [CharZero ] : exp = fun x : => ∑' n : ℕ, x ^ n / n ! := by
rw [exp_eq_expSeries_sum ℚ]
ext x
exact expSeries_sum_eq_div x
end TopologicalDivisionAlgebra
section Normed
section AnyFieldAnyAlgebra
variable { : Type*} [NontriviallyNormedField ]
variable [NormedRing ] [NormedRing ] [NormedAlgebra ]
theorem norm_expSeries_summable_of_mem_ball (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
Summable fun n => ‖expSeries n fun _ => x‖ :=
(expSeries ).summable_norm_apply hx
theorem norm_expSeries_summable_of_mem_ball' (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
Summable fun n => ‖(n !⁻¹ : ) • x ^ n‖ := by
change Summable (norm ∘ _)
rw [← expSeries_apply_eq']
exact norm_expSeries_summable_of_mem_ball x hx
section CompleteAlgebra
variable [CompleteSpace ]
theorem expSeries_summable_of_mem_ball (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
Summable fun n => expSeries n fun _ => x :=
(norm_expSeries_summable_of_mem_ball x hx).of_norm
theorem expSeries_summable_of_mem_ball' (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
Summable fun n => (n !⁻¹ : ) • x ^ n :=
(norm_expSeries_summable_of_mem_ball' x hx).of_norm
theorem expSeries_hasSum_exp_of_mem_ball [CharZero ] (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
HasSum (fun n => expSeries n fun _ => x) (exp x) := by
simpa only [exp_eq_expSeries_sum , expSeries_sum_eq_rat] using
FormalMultilinearSeries.hasSum (expSeries ) hx
theorem expSeries_hasSum_exp_of_mem_ball' [CharZero ] (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
HasSum (fun n => (n !⁻¹ : ) • x ^ n) (exp x) := by
rw [← expSeries_apply_eq']
exact expSeries_hasSum_exp_of_mem_ball x hx
theorem hasFPowerSeriesOnBall_exp_of_radius_pos [CharZero ] (h : 0 < (expSeries ).radius) :
HasFPowerSeriesOnBall exp (expSeries ) 0 (expSeries ).radius := by
simpa only [exp_eq_expSeries_sum , expSeries_sum_eq_rat] using
(expSeries ).hasFPowerSeriesOnBall h
theorem hasFPowerSeriesAt_exp_zero_of_radius_pos [CharZero ] (h : 0 < (expSeries ).radius) :
HasFPowerSeriesAt exp (expSeries ) 0 := by
simpa only [exp, expSeries_sum_eq_rat] using
(hasFPowerSeriesOnBall_exp_of_radius_pos h).hasFPowerSeriesAt
theorem continuousOn_exp [CharZero ] :
ContinuousOn (exp : → ) (Metric.eball 0 (expSeries ).radius) := by
have := FormalMultilinearSeries.continuousOn (p := expSeries )
simpa only [exp_eq_expSeries_sum , expSeries_sum_eq_rat] using this
theorem analyticAt_exp_of_mem_ball [CharZero ] (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) : AnalyticAt exp x := by
by_cases h : (expSeries ).radius = 0
· rw [h] at hx; exact (ENNReal.not_lt_zero hx).elim
· have h := pos_iff_ne_zero.mpr h
exact (hasFPowerSeriesOnBall_exp_of_radius_pos h).analyticAt_of_mem hx
/-- In a Banach-algebra `` over a normed field `` of characteristic zero, if `x` and `y` are
in the disk of convergence and commute, then
`NormedSpace.exp (x + y) = (NormedSpace.exp x) * (NormedSpace.exp y)`. -/
theorem exp_add_of_commute_of_mem_ball [CharZero ] {x y : } (hxy : Commute x y)
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius)
(hy : y ∈ Metric.eball (0 : ) (expSeries ).radius) : exp (x + y) = exp x * exp y := by
rw [exp_eq_tsum ,
tsum_mul_tsum_eq_tsum_sum_antidiagonal_of_summable_norm
(norm_expSeries_summable_of_mem_ball' x hx) (norm_expSeries_summable_of_mem_ball' y hy)]
dsimp only
conv_lhs =>
enter [1, _]
rw [hxy.add_pow' _, Finset.smul_sum]
refine tsum_congr fun n => Finset.sum_congr rfl fun kl hkl => ?_
rw [← Nat.cast_smul_eq_nsmul , smul_smul, smul_mul_smul_comm, ← Finset.mem_antidiagonal.mp hkl,
Nat.cast_add_choose, Finset.mem_antidiagonal.mp hkl]
field_simp [n.factorial_ne_zero]
/-- `NormedSpace.exp x` has explicit two-sided inverse `NormedSpace.exp (-x)`. -/
@[instance_reducible]
noncomputable def invertibleExpOfMemBall [CharZero ] {x : }
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) : Invertible (exp x)
where
invOf := exp (-x)
invOf_mul_self := by
have hnx : -x ∈ Metric.eball (0 : ) (expSeries ).radius := by
rw [Metric.mem_eball, ← neg_zero, edist_neg_neg]
exact hx
rw [← exp_add_of_commute_of_mem_ball (Commute.neg_left <| Commute.refl x) hnx hx,
neg_add_cancel, exp_zero]
mul_invOf_self := by
have hnx : -x ∈ Metric.eball (0 : ) (expSeries ).radius := by
rw [Metric.mem_eball, ← neg_zero, edist_neg_neg]
exact hx
rw [← exp_add_of_commute_of_mem_ball (Commute.neg_right <| Commute.refl x) hx hnx,
add_neg_cancel, exp_zero]
theorem isUnit_exp_of_mem_ball [CharZero ] {x : }
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) : IsUnit (exp x) :=
@isUnit_of_invertible _ _ _ (invertibleExpOfMemBall hx)
theorem invOf_exp_of_mem_ball [CharZero ] {x : }
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) [Invertible (exp x)] :
⅟(exp x) = exp (-x) := by
let := invertibleExpOfMemBall hx; convert (rfl : ⅟(exp x) = _)
/-- Any continuous ring homomorphism commutes with `NormedSpace.exp`. -/
theorem map_exp_of_mem_ball [Algebra ] [CharZero ] {F} [FunLike F ] [RingHomClass F ]
(f : F) (hf : Continuous f) (x : ) (hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
f (exp x) = exp (f x) := by
rw [exp_eq_tsum , exp_eq_tsum ]
refine ((expSeries_summable_of_mem_ball' _ hx).hasSum.map f hf).tsum_eq.symm.trans ?_
dsimp only [Function.comp_def]
simp_rw [map_inv_natCast_smul f , map_pow]
end CompleteAlgebra
theorem algebraMap_exp_comm_of_mem_ball [CharZero ] [CompleteSpace ] (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
algebraMap (exp x) = exp (algebraMap x) :=
map_exp_of_mem_ball (algebraMap _ _) (algebraMapCLM _ _).continuous _ hx
end AnyFieldAnyAlgebra
section AnyFieldDivisionAlgebra
variable { : Type*} [NontriviallyNormedField ] [NormedDivisionRing ] [NormedAlgebra ]
variable ()
theorem norm_expSeries_div_summable_of_mem_ball (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
Summable fun n => ‖x ^ n / (n !)‖ := by
change Summable (norm ∘ _)
rw [← expSeries_apply_eq_div' ( := ) x]
exact norm_expSeries_summable_of_mem_ball x hx
theorem expSeries_div_summable_of_mem_ball [CompleteSpace ] (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) : Summable fun n => x ^ n / n ! :=
(norm_expSeries_div_summable_of_mem_ball x hx).of_norm
theorem expSeries_div_hasSum_exp_of_mem_ball [CharZero ] [CompleteSpace ] (x : )
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) :
HasSum (fun n => x ^ n / n !) (exp x) := by
rw [← expSeries_apply_eq_div' ( := ) x]
exact expSeries_hasSum_exp_of_mem_ball x hx
theorem exp_neg_of_mem_ball [CharZero ] [CompleteSpace ] {x : }
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius) : exp (-x) = (exp x)⁻¹ :=
letI := invertibleExpOfMemBall hx
invOf_eq_inv (exp x)
end AnyFieldDivisionAlgebra
section AnyFieldCommAlgebra
variable { : Type*} [NontriviallyNormedField ] [NormedCommRing ] [NormedAlgebra ]
[CompleteSpace ]
/-- In a commutative Banach-algebra `` over a normed field `` of characteristic zero,
`NormedSpace.exp (x+y) = (NormedSpace.exp x) * (NormedSpace.exp y)`
for all `x`, `y` in the disk of convergence. -/
theorem exp_add_of_mem_ball [CharZero ] {x y : }
(hx : x ∈ Metric.eball (0 : ) (expSeries ).radius)
(hy : y ∈ Metric.eball (0 : ) (expSeries ).radius) : exp (x + y) = exp x * exp y :=
exp_add_of_commute_of_mem_ball (Commute.all x y) hx hy
end AnyFieldCommAlgebra
section AnyAlgebra
variable ( : Type*) [NontriviallyNormedField ] [CharZero ] [ContinuousSMul ℚ ]
variable [NormedRing ] [NormedAlgebra ]
/-- In a normed algebra `` over ` = ℝ` or ` = ℂ`, the series defining the exponential map
has an infinite radius of convergence. -/
theorem expSeries_radius_eq_top : (expSeries ).radius = ∞ := by
have {n : ℕ} : (Nat.factorial n : ) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero n)
apply expSeries_eq_ofScalars ▸
ofScalars_radius_eq_top_of_tendsto _ (Eventually.of_forall fun n => ?_)
· simp_rw [← norm_div, Nat.factorial_succ, Nat.cast_mul, mul_inv_rev, mul_div_right_comm,
inv_div_inv, norm_mul, div_self this, norm_one, one_mul]
apply norm_zero (E := ) ▸ Filter.Tendsto.norm
apply (Filter.tendsto_add_atTop_iff_nat (f := fun n => (n : )⁻¹) 1).mpr
exact tendsto_inv_atTop_nhds_zero_nat
· simp [this]
theorem expSeries_radius_pos : 0 < (expSeries ).radius := by
rw [expSeries_radius_eq_top]
exact WithTop.top_pos
variable { }
theorem norm_expSeries_summable (x : ) : Summable fun n => ‖expSeries n fun _ => x‖ :=
norm_expSeries_summable_of_mem_ball x ((expSeries_radius_eq_top ).symm ▸ edist_lt_top _ _)
theorem norm_expSeries_summable' (x : ) : Summable fun n => ‖(n !⁻¹ : ) • x ^ n‖ :=
norm_expSeries_summable_of_mem_ball' x ((expSeries_radius_eq_top ).symm ▸ edist_lt_top _ _)
theorem algebraMap_exp_comm [CompleteSpace ] (x : ) :
algebraMap (exp x) = exp (algebraMap x) :=
algebraMap_exp_comm_of_mem_ball x <| (expSeries_radius_eq_top ).symm ▸ edist_lt_top _ _
variable [CompleteSpace ]
theorem expSeries_summable (x : ) : Summable fun n => expSeries n fun _ => x :=
(norm_expSeries_summable x).of_norm
theorem expSeries_summable' (x : ) : Summable fun n => (n !⁻¹ : ) • x ^ n :=
(norm_expSeries_summable' x).of_norm
theorem expSeries_hasSum_exp (x : ) : HasSum (fun n => expSeries n fun _ => x) (exp x) :=
expSeries_hasSum_exp_of_mem_ball x ((expSeries_radius_eq_top ).symm ▸ edist_lt_top _ _)
theorem exp_series_hasSum_exp' (x : ) : HasSum (fun n => (n !⁻¹ : ) • x ^ n) (exp x) :=
expSeries_hasSum_exp_of_mem_ball' x ((expSeries_radius_eq_top ).symm ▸ edist_lt_top _ _)
theorem exp_hasFPowerSeriesOnBall : HasFPowerSeriesOnBall exp (expSeries ) 0 ∞ :=
expSeries_radius_eq_top ▸ hasFPowerSeriesOnBall_exp_of_radius_pos (expSeries_radius_pos _ _)
theorem exp_hasFPowerSeriesAt_zero : HasFPowerSeriesAt exp (expSeries ) 0 :=
exp_hasFPowerSeriesOnBall.hasFPowerSeriesAt
theorem exp_analytic (x : ) : AnalyticAt exp x :=
analyticAt_exp_of_mem_ball x ((expSeries_radius_eq_top ).symm ▸ edist_lt_top _ _)
end AnyAlgebra
section Rat
variable { : Type*} [NormedRing ] [NormedAlgebra ℚ ] [CompleteSpace ] [NormedRing ]
@[continuity, fun_prop]
theorem exp_continuous : Continuous (exp : → ) := by
rw [← continuousOn_univ, ← Metric.eball_top_eq_univ (0 : ), ←
expSeries_radius_eq_top ℚ ]
exact continuousOn_exp
open Topology in
lemma _root_.Filter.Tendsto.exp {α : Type*} {l : Filter α} {f : α → } {a : }
(hf : Tendsto f l ( a)) :
Tendsto (fun x => exp (f x)) l ( (exp a)) :=
(exp_continuous.tendsto _).comp hf
/-- In a Banach-algebra `` over ` = ℝ` or ` = ℂ`, if `x` and `y` commute, then
`NormedSpace.exp (x+y) = (NormedSpace.exp x) * (NormedSpace.exp y)`. -/
theorem exp_add_of_commute {x y : } (hxy : Commute x y) : exp (x + y) = exp x * exp y :=
exp_add_of_commute_of_mem_ball hxy ((expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _)
((expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _)
/-- `NormedSpace.exp x` has explicit two-sided inverse `NormedSpace.exp (-x)`. -/
@[instance_reducible]
noncomputable def invertibleExp (x : ) : Invertible (exp x) :=
invertibleExpOfMemBall <| (expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _
theorem isUnit_exp (x : ) : IsUnit (exp x) :=
isUnit_exp_of_mem_ball <| (expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _
theorem invOf_exp (x : ) [Invertible (exp x)] : ⅟(exp x) = exp (-x) :=
invOf_exp_of_mem_ball <| (expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _
theorem _root_.Ring.inverse_exp (x : ) : (exp x)⁻¹ʳ = exp (-x) :=
letI := invertibleExp x
Ring.inverse_invertible _
theorem exp_mem_unitary_of_mem_skewAdjoint [StarRing ] [ContinuousStar ] {x : }
(h : x ∈ skewAdjoint ) : exp x ∈ unitary := by
rw [Unitary.mem_iff, star_exp, skewAdjoint.mem_iff.mp h, ←
exp_add_of_commute (Commute.refl x).neg_left, ← exp_add_of_commute (Commute.refl x).neg_right,
neg_add_cancel, add_neg_cancel, exp_zero, and_self_iff]
lemma _root_.SemiconjBy.exp_right {x a b : } (h : SemiconjBy x a b) :
SemiconjBy x (exp a) (exp b) := by
rw [exp_eq_tsum ℚ]
apply SemiconjBy.tsum_right x (expSeries_summable' _) (expSeries_summable' _)
exact fun _ ↦ h.pow_right _ |>.smul_right _
lemma _root_.SemiconjBy.exp_neg_mul_mul_exp_eq_self {x a b : } (h : SemiconjBy x a b) :
exp (-b) * x * exp a = x := by
let := invertibleExp b
simpa [← invOf_exp, mul_assoc, invOf_mul_eq_iff_eq_mul_left] using! h.exp_right
set_option backward.isDefEq.respectTransparency false in
open scoped Function in -- required for scoped `on` notation
/-- In a Banach-algebra `` over ` = ℝ` or ` = ℂ`, if a family of elements `f i` mutually
commute then `NormedSpace.exp (∑ i, f i) = ∏ i, NormedSpace.exp (f i)`. -/
theorem exp_sum_of_commute {ι} (s : Finset ι) (f : ι → )
(h : (s : Set ι).Pairwise (Commute on f)) :
exp (∑ i ∈ s, f i) =
s.noncommProd (fun i => exp (f i)) fun _ hi _ hj _ => (h.forall₂ hi hj).exp := by
classical
induction s using Finset.induction_on with
| empty => simp
| insert a s ha ih =>
rw [Finset.noncommProd_insert_of_notMem _ _ _ _ ha, Finset.sum_insert ha, exp_add_of_commute,
ih (h.mono <| Finset.subset_insert _ _)]
refine Commute.sum_right _ _ _ fun i hi => ?_
exact h.forall₂ (Finset.mem_insert_self _ _) (Finset.mem_insert_of_mem hi)
theorem exp_nsmul (n : ℕ) (x : ) : exp (n • x) = exp x ^ n := by
induction n with
| zero => rw [zero_smul, pow_zero, exp_zero]
| succ n ih => rw [succ_nsmul, pow_succ, exp_add_of_commute ((Commute.refl x).smul_left n), ih]
/-- Any continuous ring homomorphism commutes with `NormedSpace.exp`. -/
theorem map_exp [Algebra ℚ ]
{F} [FunLike F ] [RingHomClass F ] (f : F) (hf : Continuous f) (x : ) :
f (exp x) = exp (f x) :=
map_exp_of_mem_ball f hf x <| (expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _
theorem exp_smul {G} [Monoid G] [MulSemiringAction G ] [ContinuousConstSMul G ] (g : G) (x : ) :
exp (g • x) = g • exp x :=
(map_exp (MulSemiringAction.toRingHom G g) (continuous_const_smul g) x).symm
theorem exp_units_conj (y : ˣ) (x : ) : exp (y * x * ↑y⁻¹ : ) = y * exp x * ↑y⁻¹ :=
exp_smul (ConjAct.toConjAct y) x
theorem exp_units_conj' (y : ˣ) (x : ) : exp (↑y⁻¹ * x * y) = ↑y⁻¹ * exp x * y :=
exp_units_conj _ _
@[simp]
theorem _root_.Prod.fst_exp [NormedAlgebra ℚ ] [CompleteSpace ] (x : × ) :
(exp x).fst = exp x.fst :=
map_exp (RingHom.fst ) continuous_fst x
@[simp]
theorem _root_.Prod.snd_exp [NormedAlgebra ℚ ] [CompleteSpace ] (x : × ) :
(exp x).snd = exp x.snd :=
map_exp (RingHom.snd ) continuous_snd x
@[simp]
theorem _root_.Pi.coe_exp {ι : Type*} { : ι → Type*} [Finite ι] [∀ i, NormedRing ( i)]
[∀ i, NormedAlgebra ℚ ( i)] [∀ i, CompleteSpace ( i)] (x : ∀ i, i) (i : ι) :
exp x i = exp (x i) :=
let ⟨_⟩ := nonempty_fintype ι
map_exp (Pi.evalRingHom i) (continuous_apply _) x
theorem _root_.Pi.exp_def {ι : Type*} { : ι → Type*} [Finite ι] [∀ i, NormedRing ( i)]
[∀ i, NormedAlgebra ℚ ( i)] [∀ i, CompleteSpace ( i)] (x : ∀ i, i) :
exp x = fun i => exp (x i) :=
funext <| Pi.coe_exp x
theorem _root_.Function.update_exp {ι : Type*} { : ι → Type*} [Finite ι] [DecidableEq ι]
[∀ i, NormedRing ( i)] [∀ i, NormedAlgebra ℚ ( i)] [∀ i, CompleteSpace ( i)] (x : ∀ i, i)
(j : ι) (xj : j) :
Function.update (exp x) j (exp xj) = exp (Function.update x j xj) := by
ext i
simp_rw [Pi.exp_def]
exact (Function.apply_update (fun i => exp) x j xj i).symm
end Rat
section DivisionAlgebra
variable { : Type*} [NormedDivisionRing ] [NormedAlgebra ℚ ]
theorem norm_expSeries_div_summable (x : ) : Summable fun n => ‖(x ^ n / n ! : )‖ :=
norm_expSeries_div_summable_of_mem_ball ℚ x
((expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _)
variable [CompleteSpace ]
theorem expSeries_div_summable (x : ) : Summable fun n => x ^ n / n ! :=
(norm_expSeries_div_summable x).of_norm
theorem expSeries_div_hasSum_exp (x : ) : HasSum (fun n => x ^ n / n !) (exp x) :=
expSeries_div_hasSum_exp_of_mem_ball ℚ x ((expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _)
theorem exp_neg (x : ) : exp (-x) = (exp x)⁻¹ :=
exp_neg_of_mem_ball ℚ <| (expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _
theorem exp_zsmul (z : ℤ) (x : ) : exp (z • x) = exp x ^ z := by
obtain ⟨n, rfl | rfl⟩ := z.eq_nat_or_neg
· rw [zpow_natCast, natCast_zsmul, exp_nsmul]
· rw [zpow_neg, zpow_natCast, neg_smul, exp_neg, natCast_zsmul, exp_nsmul]
theorem exp_conj (y : ) (x : ) (hy : y ≠ 0) : exp (y * x * y⁻¹) = y * exp x * y⁻¹ :=
exp_units_conj (Units.mk0 y hy) x
theorem exp_conj' (y : ) (x : ) (hy : y ≠ 0) : exp (y⁻¹ * x * y) = y⁻¹ * exp x * y :=
exp_units_conj' (Units.mk0 y hy) x
end DivisionAlgebra
section CommAlgebra
variable { : Type*} [NormedCommRing ] [NormedAlgebra ℚ ] [CompleteSpace ]
/-- In a commutative Banach-algebra `` over ` = ℝ` or ` = ℂ`,
`NormedSpace.exp (x+y) = (NormedSpace.exp x) * (NormedSpace.exp y)`. -/
theorem exp_add {x y : } : exp (x + y) = exp x * exp y :=
exp_add_of_mem_ball ((expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _)
((expSeries_radius_eq_top ℚ ).symm ▸ edist_lt_top _ _)
/-- A version of `NormedSpace.exp_sum_of_commute` for a commutative Banach-algebra. -/
theorem exp_sum {ι} (s : Finset ι) (f : ι → ) : exp (∑ i ∈ s, f i) = ∏ i ∈ s, exp (f i) := by
rw [exp_sum_of_commute, Finset.noncommProd_eq_prod]
exact fun i _hi j _hj _ => Commute.all _ _
end CommAlgebra
end Normed
section ScalarTower
variable ( ' : Type*) [Field ] [Field '] [Ring ] [Algebra ] [Algebra ' ]
[TopologicalSpace ] [IsTopologicalRing ]
/-- If a normed ring `` is a normed algebra over two fields, then they define the same
`expSeries` on ``. -/
theorem expSeries_eq_expSeries (n : ℕ) (x : ) :
(expSeries n fun _ => x) = expSeries ' n fun _ => x := by
rw [expSeries_apply_eq, expSeries_apply_eq, inv_natCast_smul_eq ']
/-- A version of `Complex.ofReal_exp` for `NormedSpace.exp` instead of `Complex.exp` -/
@[simp, norm_cast]
theorem ofReal_exp_ℝ_ℝ (r : ℝ) : ↑(exp r) = exp (r : ℂ) :=
map_exp (algebraMap ℝ ℂ) (continuous_algebraMap _ _) r
end ScalarTower
end NormedSpace
¤ Dauer der Verarbeitung: 0.44 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|