Lean library · module TopologyByExample.Theorems.HilbertNormGraph
Coordinates and the norm determine Hilbert-space convergence
This file was written by Codex (OpenAI's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
theorem tendsto_inner_self_of_coordinates_norm
TopologyByExample.HilbertNormGraph.tendsto_inner_self_of_coordinates_norm
Coordinate convergence and norm convergence imply convergence of the inner product with the proposed limit.
theorem tendsto_inner_self_of_coordinates_norm {ι : Type*} {l : Filter ι}
{f : ι → ℓ²(ℕ, ℝ)} {x : ℓ²(ℕ, ℝ)}
(hc : ∀ n, Tendsto (fun i => f i n) l (𝓝 (x n)))
(hn : Tendsto (fun i => ‖f i‖) l (𝓝 ‖x‖)) :
Tendsto (fun i => inner ℝ (f i) x) l (𝓝 (inner ℝ x x))
Proof
:= by
let v (n : ℕ) : ℓ²(ℕ, ℝ) := ∑ k ∈ Finset.range n, lp.single 2 k (x k)
have hv : Tendsto v atTop (𝓝 x) :=
(lp.hasSum_single (p := 2) (by norm_num) x).tendsto_sum_nat
have hf (n : ℕ) : Tendsto (fun i => inner ℝ (f i) (v n)) l
(𝓝 (inner ℝ x (v n))) := by
simp only [v, inner_sum, lp.inner_single_right, real_inner_comm]
exact tendsto_finsetSum _ fun k _ => (hc k).mul_const (x k)
apply Metric.tendsto_nhds.mpr
intro ε hε
let M : ℝ := ‖x‖ + 1
have hM : 0 < M := by dsimp [M]; positivity
have hb : ∀ᶠ i in l, ‖f i‖ < M := hn.eventually_lt_const (by dsimp [M]; linarith)
have hδ : 0 < ε / (4 * M) := by positivity
obtain ⟨n, hn'⟩ := (Metric.tendsto_atTop.mp hv) (ε / (4 * M)) hδ
have htail : M * ‖x - v n‖ < ε / 4 := by
have ht := hn' n le_rfl
rw [dist_eq_norm, norm_sub_rev] at ht
apply (lt_div_iff₀ (by norm_num : (0 : ℝ) < 4)).mpr
have := (lt_div_iff₀ (by positivity : 0 < 4 * M)).mp ht
nlinarith
have hm := (Metric.tendsto_nhds.mp (hf n)) (ε / 2) (by positivity)
filter_upwards [hb, hm] with i hi hmid
have hleft : dist (inner ℝ (f i) x) (inner ℝ (f i) (v n)) < ε / 4 := by
rw [dist_eq_norm, ← inner_sub_right]
exact (norm_inner_le_norm (f i) (x - v n)).trans_lt
((mul_le_mul_of_nonneg_right hi.le (norm_nonneg _)).trans_lt htail)
have hright : dist (inner ℝ x (v n)) (inner ℝ x x) < ε / 4 := by
rw [dist_comm, dist_eq_norm, ← inner_sub_right]
exact (norm_inner_le_norm x (x - v n)).trans_lt
((mul_le_mul_of_nonneg_right (by dsimp [M]; linarith : ‖x‖ ≤ M)
(norm_nonneg _)).trans_lt htail)
have htri := dist_triangle (inner ℝ (f i) x) (inner ℝ (f i) (v n)) (inner ℝ x x)
have htri' := dist_triangle (inner ℝ (f i) (v n)) (inner ℝ x (v n)) (inner ℝ x x)
linarith
theorem tendsto_of_coordinates_norm
TopologyByExample.HilbertNormGraph.tendsto_of_coordinates_norm
Pointwise coordinates together with the norm determine strong Hilbert convergence.
theorem tendsto_of_coordinates_norm {ι : Type*} {l : Filter ι}
{f : ι → ℓ²(ℕ, ℝ)} {x : ℓ²(ℕ, ℝ)}
(hc : ∀ n, Tendsto (fun i => f i n) l (𝓝 (x n)))
(hn : Tendsto (fun i => ‖f i‖) l (𝓝 ‖x‖)) : Tendsto f l (𝓝 x)
Proof
:= by
have hi := tendsto_inner_self_of_coordinates_norm hc hn
have hs : Tendsto (fun i => ‖f i - x‖ ^ 2) l (𝓝 0) := by
convert ((hn.pow 2).sub (hi.const_mul 2)).add_const (‖x‖ ^ 2) using 1
· funext i
exact norm_sub_sq_real (f i) x
· rw [real_inner_self_eq_norm_sq]
congr 1
ring
apply Metric.tendsto_nhds.mpr
intro ε hε
filter_upwards [hs.eventually_lt_const (sq_pos_of_pos hε)] with i hi
rw [dist_eq_norm]
nlinarith [norm_nonneg (f i - x)]
definition graph
TopologyByExample.HilbertNormGraph.graph
The graph recording every coordinate and the norm.
def graph (x : ℓ²(ℕ, ℝ)) : (ℕ → ℝ) × ℝ
:= (fun n => x n, ‖x‖)
theorem continuous_graph
TopologyByExample.HilbertNormGraph.continuous_graph
The norm graph is continuous.
theorem continuous_graph : Continuous graph
Proof
:= by
exact (continuous_pi fun n => (lp.evalCLM ℝ (fun _ : ℕ => ℝ) 2 n).continuous).prodMk
continuous_norm
theorem isEmbedding_graph
TopologyByExample.HilbertNormGraph.isEmbedding_graph
The graph is a topological embedding, despite using the product topology on coordinates.
theorem isEmbedding_graph : Topology.IsEmbedding graph
Proof
:= by
refine ⟨?_, ?_⟩
· rw [isInducing_iff_nhds]
intro x
apply le_antisymm (continuous_graph.tendsto x).le_comap
have ht : Tendsto graph (Filter.comap graph (𝓝 (graph x))) (𝓝 (graph x)) :=
tendsto_comap
have hn : Tendsto (fun z : ℓ²(ℕ, ℝ) => ‖z‖)
(Filter.comap graph (𝓝 (graph x))) (𝓝 ‖x‖) := (continuous_snd.tendsto (graph x)).comp ht
have hc (n : ℕ) : Tendsto (fun z : ℓ²(ℕ, ℝ) => z n)
(Filter.comap graph (𝓝 (graph x))) (𝓝 (x n)) :=
((continuous_apply n).tendsto _).comp ((continuous_fst.tendsto (graph x)).comp ht)
have hh := (tendsto_of_coordinates_norm hc hn).le_comap
change Filter.comap graph (𝓝 (graph x)) ≤ Filter.comap id (𝓝 x) at hh
simpa only [Filter.comap_id] using hh
· intro x y he
exact lp.ext (congrArg Prod.fst he)