Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Analysis/Normed/Operator/     Datei vom 15.10.2026 mit Größe 24 kB image not shown  

Quelle  Bilinear.lean   Sprache: Lean

 

/-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/

module

public import Mathlib.Analysis.Normed.Operator.NNNorm

/-!
# Operator norm: bilinear maps

This file contains lemmas concerning operator norm as applied to bilinear maps `E × F → G`,
interpreted as linear maps `E → F → G` as usual (and similarly for semilinear variants).
-/


@[expose] public section

suppress_compilation

open Filter hiding map_smul
open scoped NNReal Topology Uniformity

-- the `ₗ` subscript variables are for special cases about linear (as opposed to semilinear) maps
variable {�� ��₂ ��₃ E Eₗ E' Eₗ' F Fₗ F' Fₗ' G Gₗ G' Gₗ' : Type*}

section SemiNormed

open ContinuousLinearMap

variable [SeminormedAddCommGroup E] [SeminormedAddCommGroup Eₗ] [SeminormedAddCommGroup F]
  [SeminormedAddCommGroup Fₗ] [SeminormedAddCommGroup G] [SeminormedAddCommGroup Gₗ]

variable [NontriviallyNormedField ��] [NontriviallyNormedField ��₂] [NontriviallyNormedField ��₃]
  [NormedSpace �� E] [NormedSpace �� Eₗ] [NormedSpace ��₂ F] [NormedSpace �� Fₗ] [NormedSpace ��₃ G]
  [NormedSpace �� Gₗ] {σ₁₂ : �� →+* ��₂} {σ₂₃ : ��₂ →+* ��₃} {σ₁₃ : �� →+* ��₃}
  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃]

variable
  [AddCommGroup E'] [Module �� E'] [TopologicalSpace E']
  [AddCommGroup Eₗ'] [Module �� Eₗ'] [TopologicalSpace Eₗ'] [IsNormableSpace �� Eₗ']
  [AddCommGroup F'] [Module ��₂ F'] [TopologicalSpace F'] [IsNormableSpace ��₂ F']
  [AddCommGroup Fₗ'] [Module �� Fₗ'] [TopologicalSpace Fₗ'] [IsNormableSpace �� Fₗ']
  [AddCommGroup G'] [Module ��₃ G'] [TopologicalSpace G'] [IsNormableSpace ��₃ G']
  [AddCommGroup Gₗ'] [Module �� Gₗ'] [TopologicalSpace Gₗ'] [IsNormableSpace �� Gₗ']

namespace ContinuousLinearMap

section OpNorm

open Real

theorem opNorm_ext [RingHomIsometric σ₁₃] (f : E →SL[σ₁₂] F) (g : E →SL[σ₁₃] G)
    (h : ∀ x, ‖f x‖ = ‖g x‖) : ‖f‖ = ‖g‖ :=
  opNorm_eq_of_bounds (norm_nonneg _)
    (fun x => by
      rw [h x]
      exact le_opNorm _ _)
    fun c hc h₂ =>
    opNorm_le_bound _ hc fun z => by
      rw [← h z]
      exact h₂ z

variable [RingHomIsometric σ₂₃]

theorem opNorm_le_bound₂ (f : E →SL[σ₁₃] F →SL[σ₂₃] G) {C : ℝ} (h0 : 0 ≤ C)
    (hC : ∀ x y, ‖f x y‖ ≤ C * ‖x‖ * ‖y‖) : ‖f‖ ≤ C :=
  f.opNorm_le_bound h0 fun x => (f x).opNorm_le_bound (by positivity) <| hC x

theorem le_opNorm₂ [RingHomIsometric σ₁₃] (f : E →SL[σ₁₃] F →SL[σ₂₃] G) (x : E) (y : F) :
    ‖f x y‖ ≤ ‖f‖ * ‖x‖ * ‖y‖ :=
  (f x).le_of_opNorm_le (f.le_opNorm x) y

theorem le_of_opNorm₂_le_of_le [RingHomIsometric σ₁₃] (f : E →SL[σ₁₃] F →SL[σ₂₃] G) {x : E} {y : F}
    {a b c : ℝ} (hf : ‖f‖ ≤ a) (hx : ‖x‖ ≤ b) (hy : ‖y‖ ≤ c) :
    ‖f x y‖ ≤ a * b * c :=
  (f x).le_of_opNorm_le_of_le (f.le_of_opNorm_le_of_le hf hx) hy

open scoped ENNReal

theorem opENorm_le_bound₂ [RingHomIsometric σ₁₃] (f : E →SL[σ₁₃] F →SL[σ₂₃] G) {C : ℝ≥0∞}
    (hC : ∀ x y, ‖f x y‖ₑ ≤ C * ‖x‖ₑ * ‖y‖ₑ) : ‖f‖ₑ ≤ C :=
  f.opENorm_le_bound fun x => (f x).opENorm_le_bound <| hC x

theorem le_opENorm₂ [RingHomIsometric σ₁₃] (f : E →SL[σ₁₃] F →SL[σ₂₃] G) (x : E) (y : F) :
    ‖f x y‖ₑ ≤ ‖f‖ₑ * ‖x‖ₑ * ‖y‖ₑ :=
  (f x).le_of_opENorm_le (f.le_opENorm x) y

end OpNorm

end ContinuousLinearMap

namespace LinearMap

lemma norm_mkContinuous₂_aux (f : E →ₛₗ[σ₁₃] F →ₛₗ[σ₂₃] G) (C : ℝ)
    (h : ∀ x y, ‖f x y‖ ≤ C * ‖x‖ * ‖y‖) (x : E) :
    ‖(f x).mkContinuous (C * ‖x‖) (h x)‖ ≤ max C 0 * ‖x‖ :=
  (mkContinuous_norm_le' (f x) (h x)).trans_eq <| by
    rw [max_mul_of_nonneg _ _ (norm_nonneg x), zero_mul]

variable [RingHomIsometric σ₂₃]

/-- Create a bilinear map (represented as a map `E →L[��] F →L[��] G`) from the corresponding linear
map and existence of a bound on the norm of the image. The linear map can be constructed using
`LinearMap.mk₂`.

If you have an explicit bound, use `LinearMap.mkContinuous₂` instead, as a norm estimate will
follow automatically in `LinearMap.mkContinuous₂_norm_le`. -/

def mkContinuousOfExistsBound₂ (f : E →ₛₗ[σ₁₃] F →ₛₗ[σ₂₃] G)
    (h : ∃ C, ∀ x y, ‖f x y‖ ≤ C * ‖x‖ * ‖y‖) : E →SL[σ₁₃] F →SL[σ₂₃] G :=
  LinearMap.mkContinuousOfExistsBound
    { toFun := fun x => (f x).mkContinuousOfExistsBound <| let ⟨C, hC⟩ := h; ⟨C * ‖x‖, hC x⟩
      map_add' := fun x y => by
        ext z
        simp
      map_smul' := fun c x => by
        ext z
        simp } <|
    let ⟨C, hC⟩ := h; ⟨max C 0, norm_mkContinuous₂_aux f C hC⟩

/-- Create a bilinear map (represented as a map `E →L[��] F →L[��] G`) from the corresponding linear
map and a bound on the norm of the image. The linear map can be constructed using
`LinearMap.mk₂`. Lemmas `LinearMap.mkContinuous₂_norm_le'` and `LinearMap.mkContinuous₂_norm_le`
provide estimates on the norm of an operator constructed using this function. -/

def mkContinuous₂ (f : E →ₛₗ[σ₁₃] F →ₛₗ[σ₂₃] G) (C : ℝ) (hC : ∀ x y, ‖f x y‖ ≤ C * ‖x‖ * ‖y‖) :
    E →SL[σ₁₃] F →SL[σ₂₃] G :=
  mkContinuousOfExistsBound₂ f ⟨C, hC⟩

@[simp]
theorem mkContinuous₂_apply (f : E →ₛₗ[σ₁₃] F →ₛₗ[σ₂₃] G) {C : ℝ}
    (hC : ∀ x y, ‖f x y‖ ≤ C * ‖x‖ * ‖y‖) (x : E) (y : F) : f.mkContinuous₂ C hC x y = f x y :=
  rfl

theorem mkContinuous₂_norm_le' (f : E →ₛₗ[σ₁₃] F →ₛₗ[σ₂₃] G) {C : ℝ}
    (hC : ∀ x y, ‖f x y‖ ≤ C * ‖x‖ * ‖y‖) : ‖f.mkContinuous₂ C hC‖ ≤ max C 0 :=
  mkContinuous_norm_le _ (le_max_iff.2 <| Or.inr le_rfl) (norm_mkContinuous₂_aux f C hC)

theorem mkContinuous₂_norm_le (f : E →ₛₗ[σ₁₃] F →ₛₗ[σ₂₃] G) {C : ℝ} (h0 : 0 ≤ C)
    (hC : ∀ x y, ‖f x y‖ ≤ C * ‖x‖ * ‖y‖) : ‖f.mkContinuous₂ C hC‖ ≤ C :=
  (f.mkContinuous₂_norm_le' hC).trans_eq <| max_eq_left h0

/-- Given a bilinear map, convert it to a continuous bilinear map if there exists a continuous
bilinear map which coincides with it.
This may seem silly: why not use the witness directly? The reason to use this is good
definitional behavior: in use cases for normable spaces, the witness is constructed by putting a
norm on the space, so it has a complicated definition which the kernel struggles with, while
the output of the current definition is definitionally much nicer.
-/

def mkContinuous₂OfExists [IsTopologicalAddGroup G'] (f : E' →ₛₗ[σ₁₃] F' →ₛₗ[σ₂₃] G')
    (hf : ∃ g : E' →SL[σ₁₃] F' →SL[σ₂₃] G', ∀ a b, f a b = g a b) :
    E' →SL[σ₁₃] F' →SL[σ₂₃] G' where
  toFun a :=
    { toFun b := f a b
      map_add' b b' := by simp
      map_smul' c b := by simp
      cont := by
        rcases hf with ⟨g, hg⟩
        convert (g a).continuous
        apply hg }
  map_add' a a' := by ext; simp
  map_smul' c a := by ext; simp
  cont := by
    rcases hf with ⟨g, hg⟩
    convert g.continuous
    apply hg

end LinearMap

namespace ContinuousLinearMap

variable [RingHomIsometric σ₂₃] [RingHomIsometric σ₁₃]
  [IsNormableSpace �� E'] [IsTopologicalAddGroup G'] [IsTopologicalAddGroup Gₗ']

private lemma exists_eq_flip_toLinearMap (f : E' →SL[σ₁₃] F' →SL[σ₂₃] G') :
    ∃ g : F' →SL[σ₂₃] E' →SL[σ₁₃] G', ∀ a b, f.toLinearMap₁₂.flip a b = g a b := by
  let : SeminormedAddCommGroup E' := IsNormableSpace.toSeminormedAddCommGroup �� E'
  let : NormedSpace �� E' := IsNormableSpace.toNormedSpace �� E'
  let : SeminormedAddCommGroup F' := IsNormableSpace.toSeminormedAddCommGroup ��₂ F'
  let : NormedSpace ��₂ F' := IsNormableSpace.toNormedSpace ��₂ F'
  let : SeminormedAddCommGroup G' := IsNormableSpace.toSeminormedAddCommGroup ��₃ G'
  let : NormedSpace ��₃ G' := IsNormableSpace.toNormedSpace ��₃ G'
  exact ⟨LinearMap.mkContinuous₂ f.toLinearMap₁₂.flip
    ‖f‖ fun y x => (f.le_opNorm₂ x y).trans_eq <| by simp only [mul_right_comm], fun a b ↦ rfl⟩

/-- Flip the order of arguments of a continuous bilinear map.
For a version bundled as `LinearIsometryEquiv`, see `ContinuousLinearMap.flipL`. -/

def flip (f : E' →SL[σ₁₃] F' →SL[σ₂₃] G') : F' →SL[σ₂₃] E' →SL[σ₁₃] G' :=
  f.toLinearMap₁₂.flip.mkContinuous₂OfExists (by exact exists_eq_flip_toLinearMap f)

private theorem le_norm_flip (f : E →SL[σ₁₃] F →SL[σ₂₃] G) : ‖f‖ ≤ ‖flip f‖ :=
  f.opNorm_le_bound₂ (norm_nonneg f.flip) fun x y => by
    rw [mul_right_comm]
    exact (flip f).le_opNorm₂ y x

@[simp]
theorem flip_apply (f : E' →SL[σ₁₃] F' →SL[σ₂₃] G') (x : E') (y : F') : f.flip y x = f x y :=
  rfl

@[simp]
theorem flip_flip (f : E' →SL[σ₁₃] F' →SL[σ₂₃] G') : f.flip.flip = f := by
  ext
  rfl

@[simp]
theorem opNorm_flip (f : E →SL[σ₁₃] F →SL[σ₂₃] G) : ‖f.flip‖ = ‖f‖ :=
  le_antisymm (by simpa only [flip_flip] using le_norm_flip f.flip) (le_norm_flip f)

@[simp]
theorem opNNNorm_flip (f : E →SL[σ₁₃] F →SL[σ₂₃] G) : ‖f.flip‖₊ = ‖f‖₊ := by
  simp [← NNReal.coe_inj]

@[simp]
theorem opENorm_flip (f : E →SL[σ₁₃] F →SL[σ₂₃] G) : ‖f.flip‖ₑ = ‖f‖ₑ := by
  simp [eNorm_eq_nnNorm]

@[simp]
lemma flip_zero : flip (0 : E' →SL[σ₁₃] F' →SL[σ₂₃] G') = 0 := rfl

@[simp]
theorem flip_add (f g : E' →SL[σ₁₃] F' →SL[σ₂₃] G') : (f + g).flip = f.flip + g.flip :=
  rfl

@[simp]
theorem flip_smul (c : ��₃) (f : E' →SL[σ₁₃] F' →SL[σ₂₃] G') : (c • f).flip = c • f.flip :=
  rfl

variable (E F G σ₁₃ σ₂₃)

/-- Flip the order of arguments of a continuous bilinear map.
This is a version bundled as a `LinearIsometryEquiv`.
For an unbundled version see `ContinuousLinearMap.flip`. -/

def flipₗᵢ' : (E →SL[σ₁₃] F →SL[σ₂₃] G) ≃ₗᵢ[��₃] F →SL[σ₂₃] E →SL[σ₁₃] G where
  toFun := flip
  invFun := flip
  map_add' := flip_add
  map_smul' := flip_smul
  left_inv := flip_flip
  right_inv := flip_flip
  norm_map' := opNorm_flip

variable {E F G σ₁₃ σ₂₃}

@[simp]
theorem flipₗᵢ'_symm : (flipₗᵢ' E F G σ₂₃ σ₁₃).symm = flipₗᵢ' F E G σ₁₃ σ₂₃ :=
  rfl

@[simp]
theorem coe_flipₗᵢ' : ⇑(flipₗᵢ' E F G σ₂₃ σ₁₃) = flip :=
  rfl

variable (�� E Fₗ Gₗ)

/-- Flip the order of arguments of a continuous bilinear map.
This is a version bundled as a `LinearIsometryEquiv`.
For an unbundled version see `ContinuousLinearMap.flip`. -/

def flipₗᵢ : (E →L[��] Fₗ →L[��] Gₗ) ≃ₗᵢ[��] Fₗ →L[��] E →L[��] Gₗ where
  toFun := flip
  invFun := flip
  map_add' := flip_add
  map_smul' := flip_smul
  left_inv := flip_flip
  right_inv := flip_flip
  norm_map' := opNorm_flip

variable {�� E Fₗ Gₗ}

@[simp]
theorem flipₗᵢ_symm : (flipₗᵢ �� E Fₗ Gₗ).symm = flipₗᵢ �� Fₗ E Gₗ :=
  rfl

@[simp]
theorem coe_flipₗᵢ : ⇑(flipₗᵢ �� E Fₗ Gₗ) = flip :=
  rfl

variable (F' σ₁₂)
variable [RingHomIsometric σ₁₂] [IsTopologicalAddGroup F'] [IsTopologicalAddGroup Fₗ']

/-- The continuous semilinear map obtained by applying a continuous semilinear map at a given
vector.

This is the continuous version of `applyₗ` (and the fully continuous version of
`LinearMap.applyₗ`). -/

def apply' : E' →SL[σ₁₂] (E' →SL[σ₁₂] F') →L[��₂] F' :=
  flip (.id ��₂ (E' →SL[σ₁₂] F'))

variable {F' σ₁₂}

@[simp]
theorem apply_apply' (v : E') (f : E' →SL[σ₁₂] F') : apply' F' σ₁₂ v f = f v :=
  rfl

@[simp] lemma toLinearMap_apply' : (apply' (E' := E') F' σ₁₂).toLinearMap = applyₗ F' σ₁₂ := rfl

variable (�� Fₗ') in
/-- The continuous semilinear map obtained by applying a continuous semilinear map at a given
vector.

This is the continuous version of `applyₗ` (and fully continuous version of `LinearMap.applyₗ`). -/

def apply : E' →L[��] (E' →L[��] Fₗ') →L[��] Fₗ' :=
  flip (.id �� (E' →L[��] Fₗ'))

@[simp]
theorem apply_apply (v : E') (f : E' →L[��] Fₗ') : apply �� Fₗ' v f = f v :=
  rfl

@[simp] lemma toLinearMap_apply : (apply �� (E' := E') Fₗ').toLinearMap = applyₗ Fₗ' (.id ��) := rfl

variable (σ₁₂ σ₂₃ E F G E' F' G')

/-- Composition of continuous semilinear maps as a semibilinear map.
Do not use: use instead the version `compSL` which outputs a continuous semibilinear map. -/

def compSLₗ : (F' →SL[σ₂₃] G') →ₗ[��₃] (E' →SL[σ₁₂] F') →ₛₗ[σ₂₃] E' →SL[σ₁₃] G' :=
  LinearMap.mk₂'ₛₗ (RingHom.id ��₃) σ₂₃ comp add_comp smul_comp comp_add
    fun c f g => by ext; simp only [map_smulₛₗ, comp_apply, smul_apply]

private lemma exists_eq_compSLₗ :
    ∃ g : (F' →SL[σ₂₃] G') →L[��₃] (E' →SL[σ₁₂] F') →SL[σ₂₃] E' →SL[σ₁₃] G',
      ∀ a b, compSLₗ E' F' G' σ₁₂ σ₂₃ a b = g a b := by
  let : SeminormedAddCommGroup E' := IsNormableSpace.toSeminormedAddCommGroup �� E'
  let : NormedSpace �� E' := IsNormableSpace.toNormedSpace �� E'
  let : SeminormedAddCommGroup F' := IsNormableSpace.toSeminormedAddCommGroup ��₂ F'
  let : NormedSpace ��₂ F' := IsNormableSpace.toNormedSpace ��₂ F'
  let : SeminormedAddCommGroup G' := IsNormableSpace.toSeminormedAddCommGroup ��₃ G'
  let : NormedSpace ��₃ G' := IsNormableSpace.toNormedSpace ��₃ G'
  exact ⟨LinearMap.mkContinuous₂ (compSLₗ E' F' G' σ₁₂ σ₂₃) 1
    fun f g => by simpa only [one_mul] using! opNorm_comp_le f g, fun a b ↦ rfl⟩

/-- Composition of continuous semilinear maps as a continuous semibilinear map. -/
def compSL : (F' →SL[σ₂₃] G') →L[��₃] (E' →SL[σ₁₂] F') →SL[σ₂₃] E' →SL[σ₁₃] G' :=
  (compSLₗ E' F' G' σ₁₂ σ₂₃).mkContinuous₂OfExists (by exact exists_eq_compSLₗ E' F' G' σ₁₂ σ₂₃)

theorem norm_compSL_le : ‖compSL E F G σ₁₂ σ₂₃‖ ≤ 1 :=
  ContinuousLinearMap.opNorm_le_bound₂ _ zero_le_one
    fun f g => by simpa only [one_mul] using! opNorm_comp_le f g

variable {σ₁₂ σ₂₃ E F G E' F' G'}

@[simp]
theorem compSL_apply (f : F' →SL[σ₂₃] G') (g : E' →SL[σ₁₂] F') :
    compSL E' F' G' σ₁₂ σ₂₃ f g = f.comp g :=
  rfl

theorem _root_.Continuous.const_clm_comp {X} [TopologicalSpace X] {f : X → E' →SL[σ₁₂] F'}
    (hf : Continuous f) (g : F' →SL[σ₂₃] G') :
    Continuous (fun x => g.comp (f x) : X → E' →SL[σ₁₃] G') :=
  (compSL E' F' G' σ₁₂ σ₂₃ g).continuous.comp hf

theorem _root_.Continuous.clm_comp_const {X} [TopologicalSpace X] {g : X → F' →SL[σ₂₃] G'}
    (hg : Continuous g) (f : E' →SL[σ₁₂] F') :
    Continuous (fun x => (g x).comp f : X → E' →SL[σ₁₃] G') :=
  (ContinuousLinearMap.flip (compSL E' F' G' σ₁₂ σ₂₃) f).continuous.comp hg

variable (�� σ₁₂ σ₂₃ E E' Fₗ Fₗ' Gₗ Gₗ')

/-- Composition of continuous linear maps as a continuous bilinear map. -/
def compL : (Fₗ' →L[��] Gₗ') →L[��] (E' →L[��] Fₗ') →L[��] E' →L[��] Gₗ' :=
  compSL E' Fₗ' Gₗ' (RingHom.id ��) (RingHom.id ��)

theorem norm_compL_le : ‖compL �� E Fₗ Gₗ‖ ≤ 1 :=
  norm_compSL_le _ _ _ _ _

@[simp]
theorem compL_apply (f : Fₗ' →L[��] Gₗ') (g : E' →L[��] Fₗ') : compL �� E' Fₗ' Gₗ' f g = f.comp g :=
  rfl

variable (Eₗ Eₗ') {�� E E' Fₗ Fₗ' Gₗ Gₗ'}

/-- Apply `L(x,-)` pointwise to bilinear maps, as a continuous bilinear map -/
@[simps! apply]
def precompR (L : E' →L[��] Fₗ' →L[��] Gₗ') : E' →L[��] (Eₗ' →L[��] Fₗ') →L[��] Eₗ' →L[��] Gₗ' :=
  compL �� Eₗ' Fₗ' Gₗ' ∘L L

variable [IsTopologicalAddGroup E']

/-- Apply `L(-,y)` pointwise to bilinear maps, as a continuous bilinear map -/
def precompL (L : E' →L[��] Fₗ' →L[��] Gₗ') : (Eₗ' →L[��] E') →L[��] Fₗ' →L[��] Eₗ' →L[��] Gₗ' :=
  (precompR Eₗ' (flip L)).flip

omit [IsTopologicalAddGroup Fₗ'] in
@[simp] lemma precompL_apply (L : E' →L[��] Fₗ' →L[��] Gₗ') (u : Eₗ' →L[��] E') (f : Fₗ') (g : Eₗ') :
    precompL Eₗ' L u f g = L (u g) f := rfl

theorem norm_precompR_le (L : E →L[��] Fₗ →L[��] Gₗ) : ‖precompR Eₗ L‖ ≤ ‖L‖ :=
  calc
    ‖precompR Eₗ L‖ ≤ ‖compL �� Eₗ Fₗ Gₗ‖ * ‖L‖ := opNorm_comp_le _ _
    _ ≤ 1 * ‖L‖ := by gcongr; apply norm_compL_le
    _ = ‖L‖ := by rw [one_mul]

theorem norm_precompL_le (L : E →L[��] Fₗ →L[��] Gₗ) : ‖precompL Eₗ L‖ ≤ ‖L‖ := by
  rw [precompL, opNorm_flip, ← opNorm_flip L]
  exact norm_precompR_le _ L.flip

end ContinuousLinearMap

namespace ContinuousLinearMap

variable {E'' F'' : Type*} [AddCommGroup E''] [AddCommGroup F'']
  [TopologicalSpace E''] [TopologicalSpace F'']
  [IsTopologicalAddGroup G'] [IsTopologicalAddGroup Gₗ']
variable {��₁' : Type*} {��₂' : Type*} [NontriviallyNormedField ��₁'] [NontriviallyNormedField ��₂']
  [Module ��₁' E''] [Module ��₂' F''] [IsNormableSpace ��₁' E''] [IsNormableSpace ��₂' F'']
  {σ₁' : ��₁' →+* ��} {σ₁₃' : ��₁' →+* ��₃} {σ₂' : ��₂' →+* ��₂}
  {σ₂₃' : ��₂' →+* ��₃} [RingHomCompTriple σ₁' σ₁₃ σ₁₃'] [RingHomCompTriple σ₂' σ₂₃ σ₂₃']
  [RingHomIsometric σ₂₃] [RingHomIsometric σ₁₃'] [RingHomIsometric σ₂₃']

/-- Compose a bilinear map `E' →SL[σ₁₃] F' →SL[σ₂₃] G'` with two linear maps
`E'' →SL[σ₁'] E'` and `F'' →SL[σ₂'] F'`. -/

def bilinearComp (f : E' →SL[σ₁₃] F' →SL[σ₂₃] G') (gE : E'' →SL[σ₁'] E') (gF : F'' →SL[σ₂'] F') :
    E'' →SL[σ₁₃'] F'' →SL[σ₂₃'] G' :=
  ((f.comp gE).flip.comp gF).flip

@[simp]
theorem bilinearComp_apply
    (f : E' →SL[σ₁₃] F' →SL[σ₂₃] G') (gE : E'' →SL[σ₁'] E') (gF : F'' →SL[σ₂'] F')
    (x : E'') (y : F'') : f.bilinearComp gE gF x y = f (gE x) (gF y) :=
  rfl

@[simp]
lemma bilinearComp_zero {gE : E'' →SL[σ₁'] E'} {gF : F'' →SL[σ₂'] F'} :
    bilinearComp (0 : E' →SL[σ₁₃] F' →SL[σ₂₃] G') gE gF = 0 := rfl

@[simp]
lemma bilinearComp_zero_left {f : E' →SL[σ₁₃] F' →SL[σ₂₃] G'} {gF : F'' →SL[σ₂'] F'} :
    bilinearComp f (0 : E'' →SL[σ₁'] E') gF = 0 := by ext; simp

@[simp]
lemma bilinearComp_zero_right {f : E' →SL[σ₁₃] F' →SL[σ₂₃] G'} {gE : E'' →SL[σ₁'] E'} :
    bilinearComp f gE (0 : F'' →SL[σ₂'] F') = 0 := by ext; simp

variable [RingHomIsometric σ₁₃] [RingHomIsometric σ₁'] [RingHomIsometric σ₂'] [IsNormableSpace �� E']

/-- Derivative of a continuous bilinear map `f : E →L[��] F →L[��] G` interpreted as a map `E × F → G`
at point `p : E × F` evaluated at `q : E × F`, as a continuous bilinear map. -/

def deriv₂ (f : E' →L[��] Fₗ' →L[��] Gₗ') : E' × Fₗ' →L[��] E' × Fₗ' →L[��] Gₗ' :=
  f.bilinearComp (fst _ _ _) (snd _ _ _) + f.flip.bilinearComp (snd _ _ _) (fst _ _ _)

@[simp]
theorem coe_deriv₂ (f : E' →L[��] Fₗ' →L[��] Gₗ') (p : E' × Fₗ') :
    ⇑(f.deriv₂ p) = fun q : E' × Fₗ' => f p.1 q.2 + f q.1 p.2 :=
  rfl

theorem map_add_add (f : E' →L[��] Fₗ' →L[��] Gₗ') (x x' : E') (y y' : Fₗ') :
    f (x + x') (y + y') = f x y + f.deriv₂ (x, y) (x', y') + f x' y' := by
  simp only [map_add, add_apply, coe_deriv₂, add_assoc]
  abel

/-- The norm of the tensor product of a scalar linear map and of an element of a normed space
is the product of the norms. -/

@[simp]
theorem norm_smulRight_apply (c : StrongDual �� E) (f : Fₗ) : ‖smulRight c f‖ = ‖c‖ * ‖f‖ := by
  refine le_antisymm ?_ ?_
  · refine opNorm_le_bound _ (by positivity) fun x => ?_
    calc
      ‖c x • f‖ = ‖c x‖ * ‖f‖ := norm_smul _ _
      _ ≤ ‖c‖ * ‖x‖ * ‖f‖ := by gcongr; apply le_opNorm
      _ = ‖c‖ * ‖f‖ * ‖x‖ := by ring
  · obtain hf | hf := (norm_nonneg f).eq_or_lt'
    · simp [hf]
    · rw [← le_div_iff₀ hf]
      refine opNorm_le_bound _ (by positivity) fun x => ?_
      rw [div_mul_eq_mul_div, le_div_iff₀ hf]
      calc
        ‖c x‖ * ‖f‖ = ‖c x • f‖ := (norm_smul _ _).symm
        _ = ‖smulRight c f x‖ := rfl
        _ ≤ ‖smulRight c f‖ * ‖x‖ := le_opNorm _ _

/-- The non-negative norm of the tensor product of a scalar linear map and of an element of a normed
space is the product of the non-negative norms. -/

@[simp]
theorem nnNorm_smulRight_apply (c : StrongDual �� E) (f : Fₗ) : ‖smulRight c f‖₊ = ‖c‖₊ * ‖f‖₊ :=
  NNReal.eq <| c.norm_smulRight_apply f

@[deprecated (since := "2026-10-31")] alias nnnorm_smulRight_apply := nnNorm_smulRight_apply

@[simp] theorem norm_toSpanSingleton (x : E) : ‖toSpanSingleton �� x‖ = ‖x‖ := by
  simp [← smulRight_id, norm_id]

@[simp] theorem nnNorm_toSpanSingleton (x : E) : ‖toSpanSingleton �� x‖₊ = ‖x‖₊ :=
  NNReal.eq <| norm_toSpanSingleton _

@[deprecated (since := "2026-10-31")] alias nnnorm_toSpanSingleton := nnNorm_toSpanSingleton

variable [IsTopologicalAddGroup Fₗ']
variable (�� E' Fₗ')

/-- `ContinuousLinearMap.smulRight` as a trilinear map:
`smulRightLₗ (c : StrongDual �� E) (f : F) (x : E) = c x • f`.
Do not use: use instead `smulRightL` which outputs a continuous trilinear map. -/

@[simps! apply_apply]
def smulRightLₗ : StrongDual �� E' →ₗ[��] Fₗ' →ₗ[��] E' →L[��] Fₗ' where
  toFun := smulRightₗ
  map_add' := fun c₁ c₂ => by
    ext x
    simp only [add_smul, coe_smulRightₗ, add_apply, smulRight_apply, LinearMap.add_apply]
  map_smul' := fun m c => by
    ext x
    simp [smul_smul]

private lemma exists_eq_smulRightLₗ :
    ∃ g : StrongDual �� E' →L[��] Fₗ' →L[��] E' →L[��] Fₗ',
      ∀ a b, smulRightLₗ �� E' Fₗ' a b = g a b := by
  let : SeminormedAddCommGroup E' := IsNormableSpace.toSeminormedAddCommGroup �� E'
  let : NormedSpace �� E' := IsNormableSpace.toNormedSpace �� E'
  let : SeminormedAddCommGroup Fₗ' := IsNormableSpace.toSeminormedAddCommGroup �� Fₗ'
  let : NormedSpace �� Fₗ' := IsNormableSpace.toNormedSpace �� Fₗ'
  exact ⟨LinearMap.mkContinuous₂ (smulRightLₗ �� E' Fₗ') 1
    fun c x => by simp only [smulRightLₗ, coe_smulRightₗ, one_mul, norm_smulRight_apply,
      LinearMap.coe_mk, AddHom.coe_mk, le_refl], fun a b ↦ rfl⟩

/-- `ContinuousLinearMap.smulRight` as a continuous trilinear map:
`smulRightL (c : StrongDual �� E) (f : F) (x : E) = c x • f`.

This is also known as a rank-one operator.
See also `InnerProductSpace.rankOne` for the rank-one operator on Hilbert spaces. -/

@[simps! apply_apply]
def smulRightL : StrongDual �� E' →L[��] Fₗ' →L[��] E' →L[��] Fₗ' :=
  (smulRightLₗ �� E' Fₗ').mkContinuous₂OfExists (by exact exists_eq_smulRightLₗ �� E' Fₗ')

end ContinuousLinearMap

end SemiNormed

section Restrict

namespace ContinuousLinearMap

variable {��' : Type*} [NontriviallyNormedField ��] [NontriviallyNormedField ��'] [NormedAlgebra �� ��']
  [SeminormedAddCommGroup E] [NormedSpace �� E] [NormedSpace ��' E] [IsScalarTower �� ��' E]
  [SeminormedAddCommGroup F] [NormedSpace �� F] [NormedSpace ��' F] [IsScalarTower �� ��' F]
  [SeminormedAddCommGroup G] [NormedSpace �� G] [NormedSpace ��' G] [IsScalarTower �� ��' G]

variable (��) in
/-- Convenience function for restricting the linearity of a bilinear map. -/
def bilinearRestrictScalars (B : E →L[��'] F →L[��'] G) : E →L[��] F →L[��] G :=
  (restrictScalarsL ��' F G �� ��).comp (B.restrictScalars ��)

variable (B : E →L[��'] F →L[��'] G) (x : E) (y : F)

theorem bilinearRestrictScalars_eq_restrictScalarsL_comp_restrictScalars :
    B.bilinearRestrictScalars �� = (restrictScalarsL ��' F G �� ��).comp (B.restrictScalars ��) := rfl

theorem bilinearRestrictScalars_eq_restrictScalars_restrictScalarsL_comp :
    B.bilinearRestrictScalars �� = restrictScalars �� ((restrictScalarsL ��' F G �� ��').comp B) := rfl

variable (��) in
@[simp]
theorem bilinearRestrictScalars_apply_apply : (B.bilinearRestrictScalars ��) x y = B x y := rfl

@[simp]
theorem norm_bilinearRestrictScalars : ‖B.bilinearRestrictScalars ��‖ = ‖B‖ := rfl

end ContinuousLinearMap

end Restrict

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.19 Sekunden  ¤

*© Formatika GbR, Deutschland