/-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
module
public import Mathlib.Analysis.LocallyConvex.HahnBanach
/-!
# Hahn-Banach extension theorem
In this file, we prove the analytic Hahn-Banach theorem for normed vector spaces. For any continuous
linear functional on a subspace, we can extend it to the entire space without changing
its norm. For Hahn-Banach theorems for locally convex spaces, see
`Mathlib.Analysis.LocallyConvex.HahnBanach`.
We prove
* `exists_extension_norm_eq`: Hahn-Banach theorem for continuous linear functionals on normed spaces
over `ℝ` or `ℂ`.
In order to state and prove the corollaries uniformly, we prove the statements for a field ``
satisfying `RCLike `.
In this setting, `exists_dual_vector` states that, for any nonzero `x`, there exists a continuous
linear form `g` of norm `1` with `g x = ‖x‖` (where the norm has to be interpreted as an element
of ``).
-/
public section
universe u v
section RCLike
variable { : Type*} [NontriviallyNormedField ] [IsRCLikeNormedField ] {E : Type*}
[SeminormedAddCommGroup E] [NormedSpace E]
/-- **Hahn-Banach theorem** for continuous linear functions over ``
satisfying `IsRCLikeNormedField `. -/
@[wikidata Q866116]
theorem exists_extension_norm_eq (p : Subspace E) (f : StrongDual p) :
∃ g : StrongDual E, (∀ x : p, g x = f x) ∧ ‖g‖ = ‖f‖ := by
obtain ⟨g, hg, hl⟩ := by
refine Module.Dual.exists_continuous_extension_of_le_seminorm p f
(show Continuous (‖f‖₊ • (normSeminorm E)) from ?_) fun x => f.le_opNorm x
exact continuous_norm.const_smul ‖f‖₊
refine ⟨g, hg, le_antisymm (g.opNorm_le_bound (norm_nonneg f) hl) ?_⟩
exact f.opNorm_le_bound (norm_nonneg _) fun x => by simpa [hg x] using g.le_opNorm x
end RCLike
section DualVector
variable ( : Type v) [RCLike ]
open ContinuousLinearEquiv Submodule
section Seminormed
variable {E : Type u} [SeminormedAddCommGroup E] [NormedSpace E]
/-- Corollary of Hahn-Banach. Given an element `x` of a normed space with `‖x‖ ≠ 0`, there
exists an element of the dual space, of norm `1`, whose value on `x` is `‖x‖`. -/
theorem exists_dual_vector (x : E) (h : ‖x‖ ≠ 0) : ∃ g : StrongDual E, ‖g‖ = 1 ∧ g x = ‖x‖ := by
have hhomothety := LinearEquiv.toSpanNonzeroSingleton_homothety x (ne_zero_of_norm_ne_zero h)
let coord : span {x} →L[] := (ofHomothety _ _ (by positivity) hhomothety).symm
obtain ⟨g, hg⟩ := exists_extension_norm_eq (span {x}) ((‖x‖ : ) • coord)
have hval : g x = ‖x‖ := by
have hgx : g x = g (⟨x, by simp⟩ : span {x}) := by rw [Submodule.coe_mk]
have hcx : coord ⟨x, _⟩ = 1 := LinearEquiv.coord_self E x (ne_zero_of_norm_ne_zero h)
simp [-algebraMap_smul, hgx, ↓hg.left, hcx]
refine ⟨g, le_antisymm ?_ ?_, hval⟩
· simp only [hg.right, norm_smul, norm_algebraMap', norm_norm]
grw [coord.opNorm_le_bound (by positivity)
(fun y ↦ (homothety_inverse _ (by positivity) _ hhomothety y).le), mul_inv_cancel₀ h]
· have hle := g.le_opNorm x
simp only [hval, norm_algebraMap', norm_norm] at hle
exact one_le_of_le_mul_right₀ (by positivity) hle
/-- Variant of Hahn-Banach, eliminating the hypothesis that `x` be nonzero, but only ensuring that
the dual element has norm at most `1` (this cannot be improved for the trivial
vector space). -/
theorem exists_dual_vector'' (x : E) : ∃ g : StrongDual E, ‖g‖ ≤ 1 ∧ g x = ‖x‖ := by
by_cases hx : ‖x‖ = 0
· exact ⟨0, by simp, by simp [hx]⟩
· obtain ⟨g, hg⟩ := exists_dual_vector x hx
exact ⟨g, hg.left.le, hg.right⟩
end Seminormed
variable {E : Type u} [NormedAddCommGroup E] [NormedSpace E]
/-- Variant of Hahn-Banach, eliminating the hypothesis that `x` be nonzero, and choosing
the dual element arbitrarily when `x = 0`. -/
theorem exists_dual_vector' [Nontrivial E] (x : E) : ∃ g : StrongDual E, ‖g‖ = 1 ∧ g x = ‖x‖ := by
by_cases hx : x = 0
· obtain ⟨y, hy⟩ := exists_norm_ne_zero E
obtain ⟨g, hg⟩ := exists_dual_vector y hy
exact ⟨g, hg.left, by simp [hx]⟩
· exact exists_dual_vector x (norm_ne_zero_iff.mpr hx)
end DualVector
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland