/-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
module
public import Mathlib.Analysis.Normed.Operator.NormedSpace
public import Mathlib.Analysis.RCLike.Basic
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Normed spaces over R or C
This file is about results on normed spaces over the fields `ℝ` and `ℂ`.
## Main definitions
None.
## Main theorems
* `ContinuousLinearMap.opNorm_bound_of_ball_bound`: A bound on the norms of values of a linear
map in a ball yields a bound on the operator norm.
## Notes
This file exists mainly to avoid importing `RCLike` in the main normed space theory files.
-/
public section
open Metric
variable { : Type*} [RCLike ] {E : Type*} [NormedAddCommGroup E]
theorem RCLike.norm_coe_norm {z : E} : ‖(‖z‖ : )‖ = ‖z‖ := by simp
variable [NormedSpace E]
/-- Lemma to normalize a vector in a normed space `E` over either `ℂ` or `ℝ` to unit length. -/
@[simp]
theorem norm_smul_inv_norm {x : E} (hx : x ≠ 0) : ‖(‖x‖⁻¹ : ) • x‖ = 1 := by
have : ‖x‖ ≠ 0 := by simp [hx]
simp [field, norm_smul]
/-- Lemma to normalize a vector in a normed space `E` over either `ℂ` or `ℝ` to length `r`. -/
theorem norm_smul_inv_norm' {r : ℝ} (r_nonneg : 0 ≤ r) {x : E} (hx : x ≠ 0) :
‖((r : ) * (‖x‖ : )⁻¹) • x‖ = r := by
have : ‖x‖ ≠ 0 := by simp [hx]
simp [field, norm_smul, r_nonneg, rclike_simps]
theorem ContinuousLinearEquiv.coord_norm' {x : E} (h : x ≠ 0) :
‖(‖x‖ : ) • ContinuousLinearEquiv.coord x h‖ = 1 := by
simp only [norm_smul, RCLike.norm_coe_norm, coord_norm, mul_inv_cancel₀ (mt norm_eq_zero.mp h)]
theorem LinearMap.bound_of_sphere_bound {r : ℝ} (r_pos : 0 < r) (c : ℝ) (f : E →ₗ[] )
(h : ∀ z ∈ sphere (0 : E) r, ‖f z‖ ≤ c) (z : E) : ‖f z‖ ≤ c / r * ‖z‖ := by
by_cases z_zero : z = 0
· rw [z_zero]
simp only [map_zero, norm_zero, mul_zero]
exact le_rfl
set z₁ := ((r : ) * (‖z‖ : )⁻¹) • z with hz₁
have norm_f_z₁ : ‖f z₁‖ ≤ c := by
apply h
rw [mem_sphere_zero_iff_norm]
exact norm_smul_inv_norm' r_pos.le z_zero
have r_ne_zero : (r : ) ≠ 0 := RCLike.ofReal_ne_zero.mpr r_pos.ne'
have eq : f z = ‖z‖ / r * f z₁ := by
rw [hz₁, map_smul, smul_eq_mul]
rw [← mul_assoc, ← mul_assoc, div_mul_cancel₀ _ r_ne_zero, mul_inv_cancel₀, one_mul]
simp only [z_zero, RCLike.ofReal_eq_zero, norm_eq_zero, Ne, not_false_iff]
rw [eq, norm_mul, norm_div, RCLike.norm_coe_norm, RCLike.norm_of_nonneg r_pos.le,
div_mul_eq_mul_div, div_mul_eq_mul_div, mul_comm]
apply div_le_div₀ _ _ r_pos rfl.ge
· exact mul_nonneg ((norm_nonneg _).trans norm_f_z₁) (norm_nonneg z)
apply mul_le_mul norm_f_z₁ rfl.le (norm_nonneg z) ((norm_nonneg _).trans norm_f_z₁)
/-- `LinearMap.bound_of_ball_bound` is a version of this over arbitrary nontrivially normed fields.
It produces a less precise bound so we keep both versions. -/
theorem LinearMap.bound_of_ball_bound' {r : ℝ} (r_pos : 0 < r) (c : ℝ) (f : E →ₗ[] )
(h : ∀ z ∈ closedBall (0 : E) r, ‖f z‖ ≤ c) (z : E) : ‖f z‖ ≤ c / r * ‖z‖ :=
f.bound_of_sphere_bound r_pos c (fun z hz => h z hz.le) z
theorem ContinuousLinearMap.opNorm_bound_of_ball_bound {r : ℝ} (r_pos : 0 < r) (c : ℝ)
(f : StrongDual E) (h : ∀ z ∈ closedBall (0 : E) r, ‖f z‖ ≤ c) : ‖f‖ ≤ c / r := by
apply ContinuousLinearMap.opNorm_le_bound
· apply div_nonneg _ r_pos.le
exact
(norm_nonneg _).trans
(h 0 (by simp only [norm_zero, mem_closedBall, dist_zero_left, r_pos.le]))
apply LinearMap.bound_of_ball_bound' r_pos
exact fun z hz => h z hz
/-- If a map `f` over an `RCLike` space satisfies `‖x‖ = 1 → 1 ≤ K * ‖f x‖`, then
`f` is antilipschitz with constant `K`.
We require that the map is an additive monoid homomorphism, and acts as a multiplicative action:
in practice this means `f` is a linear map, but we allow the flexibility so it is convenient
to apply for eg continuous linear maps also, without a coercion in the goal.
-/
lemma antilipschitz_of_bound_of_norm_one { E F : Type*}
[NormedAddCommGroup E] [NormedAddCommGroup F] [NormedSpace E] [NormedSpace F]
[FunLike E F] [AddMonoidHomClass E F] [MulActionHomClass E F]
(f : ) {K : NNReal} (h : ∀ x, ‖x‖ = 1 → 1 ≤ K * ‖f x‖) :
AntilipschitzWith K f :=
AddMonoidHomClass.antilipschitz_of_bound f fun x ↦ by
obtain rfl | hx := eq_or_ne x 0
· simp
simpa [norm_smul, field] using h ((‖x‖⁻¹ : ) • x) (norm_smul_inv_norm hx)
variable ()
include in
theorem NormedSpace.sphere_nonempty_rclike [Nontrivial E] {r : ℝ} (hr : 0 ≤ r) :
Nonempty (sphere (0 : E) r) :=
letI : NormedSpace ℝ E := NormedSpace.restrictScalars ℝ E
(NormedSpace.sphere_nonempty.mpr hr).coe_sort
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland