|
|
|
|
Quelle Extend.lean
Sprache: Lean
|
|
/-
Copyright (c) 2020 Ruben Van de Velde. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ruben Van de Velde
-/
module
public import Mathlib.Analysis.RCLike.Basic
public import Mathlib.Topology.Algebra.Module.ContinuousLinearMap.RestrictScalars
/-!
# Extending an `ℝ`-linear functional to a ``-linear functional
In this file we provide a way to extend a (optionally, continuous) `ℝ`-linear map to a (continuous)
``-linear map in a way that bounds the norm by the norm of the original map, when `` is either
`ℝ` (the extension is trivial) or `ℂ`. We formulate the extension uniformly, by assuming `RCLike `.
We motivate the form of the extension as follows. Note that `fc : F →ₗ[] ` is determined fully by
`re fc`: for all `x : F`, `fc (I • x) = I * fc x`, so `im (fc x) = -re (fc (I • x))`. Therefore,
given an `fr : F →ₗ[ℝ] ℝ`, we define `fc x = fr x - fr (I • x) * I`.
In `Mathlib/Analysis/Normed/Module/RCLike/Extend.lean` we show that this extension is isometric.
This is separate to avoid importing material about the operator norm into files about more
elementary properties, like locally convex spaces.
## Main definitions
* `LinearMap.extendRCLike`
* `ContinuousLinearMap.extendRCLike`
-/
@[expose] public section
open RCLike
open scoped ComplexConjugate
variable { : Type*} [RCLike ] {F : Type*}
namespace Module.Dual
variable [AddCommGroup F] [Module ℝ F] [Module F] [IsScalarTower ℝ F]
/-- Extend `fr : Dual ℝ F` to `Dual F` in a way that will also be continuous and have its norm
(as a continuous linear map) equal to `‖fr‖` when `fr` is itself continuous on a normed space. -/
noncomputable def extendRCLike (fr : Dual ℝ F) : Dual F :=
letI fc : F → := fun x => (fr x : ) - (I : ) * fr ((I : ) • x)
have add (x y) : fc (x + y) = fc x + fc y := by
simp only [fc, smul_add, map_add, mul_add]
abel
have A (c : ℝ) (x : F) : (fr ((c : ) • x) : ) = (c : ) * (fr x : ) := by simp
have smul_ℝ (c : ℝ) (x : F) : fc ((c : ) • x) = (c : ) * fc x := by
simp only [fc, A, smul_comm I, mul_comm I, mul_sub, mul_assoc]
have smul_I (x : F) : fc ((I : ) • x) = (I : ) * fc x := by
obtain (h | h) := @I_mul_I_ax _
· simp [fc, h]
· simp [fc, mul_sub, ← mul_assoc, smul_smul, h, add_comm]
have smul_ (c : ) (x : F) : fc (c • x) = c • fc x := by
rw [← re_add_im c]
simp only [add_smul, ← smul_smul, add, smul_ℝ, smul_I, ← mul_assoc, smul_eq_mul, add_mul]
{ toFun := fc
map_add' := add
map_smul' := smul_ }
theorem extendRCLike_apply (fr : Dual ℝ F) (x : F) :
fr.extendRCLike x = (fr x : ) - (I : ) * (fr ((I : ) • x) : ) := rfl
@[simp]
theorem re_extendRCLike_apply (fr : Dual ℝ F) (x : F) : re (fr.extendRCLike x : ) = fr x := by
simp only [extendRCLike_apply, map_sub, zero_mul, mul_zero, sub_zero, rclike_simps]
@[simp]
lemma im_extendRCLike_apply (g : Dual ℝ F) (x : F) :
im ((extendRCLike g) x : ) = - g ((I : ) • x) := by
obtain (h | h) := RCLike.I_eq_zero_or_im_I_eq_one (K := )
all_goals simp [h, extendRCLike_apply]
theorem norm_extendRCLike_apply_sq (fr : Dual ℝ F) (x : F) :
‖(fr.extendRCLike x : )‖ ^ 2 = fr (conj (fr.extendRCLike x : ) • x) := calc
‖(fr.extendRCLike x : )‖ ^ 2 = re (conj (fr.extendRCLike x) * fr.extendRCLike x : ) := by
rw [RCLike.conj_mul, ← ofReal_pow, ofReal_re]
_ = fr (conj (fr.extendRCLike x : ) • x) := by
rw [← smul_eq_mul, ← map_smul, re_extendRCLike_apply]
/-- The extension `Module.Dual.extendRCLike` as a linear equivalence between the algebraic duals. -/
@[simps -isSimp apply symm_apply]
noncomputable def extendRCLikeₗ : Dual ℝ F ≃ₗ[ℝ] Dual F where
toFun := extendRCLike ( := )
invFun f := RCLike.reLm.comp (f.restrictScalars ℝ)
left_inv f := by ext; simp
right_inv f := by ext; apply RCLike.ext <;> simp
map_add' := by intros; ext; simp [extendRCLike_apply]; ring
map_smul' := by intros; ext; simp [extendRCLike_apply, real_smul_eq_coe_mul]; ring
end Module.Dual
namespace StrongDual
variable [TopologicalSpace F] [AddCommGroup F] [Module F] [ContinuousConstSMul F]
variable [Module ℝ F] [IsScalarTower ℝ F]
/-- Extend `fr : StrongDual ℝ F` to `StrongDual F`.
Norm properties of this extension can be found in
`Mathlib/Analysis/Normed/Module/RCLike/Extend.lean`. -/
noncomputable def extendRCLike (fr : StrongDual ℝ F) : StrongDual F where
__ := Module.Dual.extendRCLike fr.toLinearMap
cont := show Continuous fun x ↦ (fr x : ) - (I : ) * (fr ((I : ) • x) : ) by fun_prop
theorem extendRCLike_apply (fr : StrongDual ℝ F) (x : F) :
fr.extendRCLike x = (fr x : ) - (I : ) * (fr ((I : ) • x) : ) := rfl
@[simp]
lemma re_extendRCLike_apply (g : StrongDual ℝ F) (x : F) :
re ((extendRCLike g) x : ) = g x := by
simp [extendRCLike_apply]
@[simp]
lemma im_extendRCLike_apply (g : StrongDual ℝ F) (x : F) :
im ((extendRCLike g) x : ) = - g ((I : ) • x) := by
obtain (h | h) := RCLike.I_eq_zero_or_im_I_eq_one (K := )
all_goals simp [h, extendRCLike_apply]
/-- The extension `StrongDual.extendRCLike` as a linear equivalence between the algebraic duals.
When `F` is a normed space, this can be upgraded to an *isometric* linear equivalence, see
`StrongDual.extendRCLikeₗᵢ`. -/
@[simps -isSimp apply symm_apply]
noncomputable def extendRCLikeₗ : StrongDual ℝ F ≃ₗ[ℝ] StrongDual F where
toFun := StrongDual.extendRCLike ( := )
invFun f := RCLike.reCLM.comp (f.restrictScalars ℝ)
left_inv f := by ext; simp
right_inv f := by ext; apply RCLike.ext <;> simp [extendRCLike_apply]
map_add' := by intros; ext; simp [extendRCLike_apply]; ring
map_smul' := by intros; ext; simp [extendRCLike_apply, real_smul_eq_coe_mul]; ring
end StrongDual
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|