Lean library · module TopologyByExample.Spaces.WeakHilbert
The real separable Hilbert space in its weak topology
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.
Imports
- Mathlib.Analysis.InnerProductSpace.Dual
- Mathlib.Analysis.InnerProductSpace.l2Space
- Mathlib.Analysis.Normed.Module.WeakDual
- Mathlib.Analysis.LocallyConvex.WeakSpace
- TopologyByExample.Theorems.ConvexLocalArcs
- TopologyByExample.Theorems.RealCardinalities
- TopologyByExample.Spaces.RealExtensions
- TopologyByExample.Theorems.Category
definition H
TopologyByExample.WeakHilbert.H
The normed real space of square-summable sequences.
abbrev H : Type
:= ℓ²(ℕ, ℝ)
definition Space
TopologyByExample.WeakHilbert.Space
Real square-summable sequences with the topology induced by every norm-continuous linear functional.
abbrev Space
:= WeakSpace ℝ H
On this site: Space: Weak topology on separable Hilbert space
definition coords
TopologyByExample.WeakHilbert.coords
The coordinate Hilbert basis.
noncomputable def coords : HilbertBasis ℕ ℝ H
:= .ofRepr (.refl ℝ H)
definition block
TopologyByExample.WeakHilbert.block
The span of the first n coordinate directions.
noncomputable def block (n : ℕ) : Submodule ℝ H
:=
Submodule.span ℝ (range fun i : Fin n ↦ coords i.val)
instance
instance (n : ℕ) : FiniteDimensional ℝ (block n)
Proof
:= by
unfold block
exact FiniteDimensional.span_of_finite _ (finite_range _)
theorem finrank_block
TopologyByExample.WeakHilbert.finrank_block
The initial coordinate blocks have their stated dimensions.
theorem finrank_block (n : ℕ) : Module.finrank ℝ (block n) = n
theorem dense_blocks
TopologyByExample.WeakHilbert.dense_blocks
private theorem dense_blocks : Dense (⋃ n, (block n : Set H))
theorem norm_separable
TopologyByExample.WeakHilbert.norm_separable
private theorem norm_separable : SeparableSpace H
Proof
:=
dense_blocks.isSeparable_iff.mp
(isSeparable_iUnion.mpr fun n ↦ by
let _ : SeparableSpace (block n : Set H) := by
change SeparableSpace (block n)
infer_instance
exact IsSeparable.of_subtype _)
definition riesz
TopologyByExample.WeakHilbert.riesz
The Riesz correspondence carries the weak topology to the weak-star topology.
noncomputable def riesz : Space ≃ₜ WeakDual ℝ H
Definition
where
toEquiv := (toWeakSpace ℝ H).symm.toEquiv.trans
((InnerProductSpace.toDual ℝ H).toEquiv.trans StrongDual.toWeakDual.toEquiv)
continuous_toFun := by
apply WeakDual.continuous_of_continuous_eval
intro y
change Continuous (fun x : Space ↦ inner ℝ ((toWeakSpace ℝ H).symm x) y)
have he (x : Space) : inner ℝ ((toWeakSpace ℝ H).symm x) y =
WeakSpace.pairing ℝ H x (InnerProductSpace.toDual ℝ H y) := real_inner_comm _ _
simp only [he]
exact LinearMap.IsWeak.continuous_eval (WeakSpace.pairing ℝ H) (InnerProductSpace.toDual ℝ H y)
continuous_invFun := by
apply WeakSpace.continuous_of_continuous_eval
intro f
let y := (InnerProductSpace.toDual ℝ H).symm f
change Continuous (fun g : WeakDual ℝ H ↦
f ((InnerProductSpace.toDual ℝ H).symm g.toStrongDual))
have he (g : WeakDual ℝ H) : f ((InnerProductSpace.toDual ℝ H).symm g.toStrongDual) = g y := by
rw [← InnerProductSpace.toDual_symm_apply, real_inner_comm,
InnerProductSpace.toDual_symm_apply]
rfl
simp only [he]
exact WeakDual.continuous_eval (continuous_id (X := WeakDual ℝ H)) y
On this site: Weak topology on separable Hilbert space: The Riesz homeomorphism
definition ball
TopologyByExample.WeakHilbert.ball
The weakly topologized closed norm ball with centre zero.
def ball (r : ℝ) : Set Space
:= {x | ‖(toWeakSpace ℝ H).symm x‖ ≤ r}
theorem isCompact_ball
TopologyByExample.WeakHilbert.isCompact_ball
Norm-closed balls about zero are weakly compact.
theorem isCompact_ball (r : ℝ) : IsCompact (ball r)
Proof
:= by
have he : ball r = riesz ⁻¹' (WeakDual.toStrongDual ⁻¹' Metric.closedBall 0 r) := by
ext x
change ‖(toWeakSpace ℝ H).symm x‖ ≤ r ↔
dist ((InnerProductSpace.toDual ℝ H) ((toWeakSpace ℝ H).symm x)) 0 ≤ r
simp only [dist_zero_right, LinearIsometryEquiv.norm_map]
rw [he]
exact riesz.isCompact_preimage.mpr (WeakDual.isCompact_closedBall 0 r)
On this site: Weak topology on separable Hilbert space: Weak compactness of norm balls
instance
instance : SigmaCompactSpace Space
Proof
:= by
refine ⟨fun n ↦ ball n, fun n ↦ isCompact_ball n, eq_univ_of_forall fun x ↦ ?_⟩
obtain ⟨n, hn⟩ := exists_nat_ge ‖(toWeakSpace ℝ H).symm x‖
exact mem_iUnion.mpr ⟨n, hn⟩
theorem hereditarilyLindelofSpace
TopologyByExample.WeakHilbert.hereditarilyLindelofSpace
Every weak subspace is a continuous image of its norm subspace.
theorem hereditarilyLindelofSpace : HereditarilyLindelofSpace Space
Proof
:= by
let _ := norm_separable
constructor
intro s _
have h := (HereditarilyLindelofSpace.isLindelof ((toWeakSpace ℝ H) ⁻¹' s)).image
(WeakSpace.continuous_toWeakSpace (𝕜 := ℝ) (E := H))
rwa [(toWeakSpace ℝ H).surjective.image_preimage s] at h
On this site: The weak topology on separable Hilbert space is hereditarily Lindelöf
theorem separableSpace
TopologyByExample.WeakHilbert.separableSpace
A countable norm-dense set is also weakly dense.
theorem separableSpace : SeparableSpace Space
Proof
:= by
let _ := norm_separable
exact (toWeakSpace ℝ H).surjective.denseRange.separableSpace
(WeakSpace.continuous_toWeakSpace (𝕜 := ℝ) (E := H))
On this site: The weak topology on separable Hilbert space is separable
theorem arcConnectedSpace
TopologyByExample.WeakHilbert.arcConnectedSpace
Straight segments give arcs between distinct points.
theorem arcConnectedSpace : ArcConnectedSpace Space
On this site: The weak topology on separable Hilbert space is arc connected
theorem locallyArcConnectedSpace
TopologyByExample.WeakHilbert.locallyArcConnectedSpace
Open convex neighbourhoods form a basis and are arc connected.
theorem locallyArcConnectedSpace : LocallyArcConnectedSpace Space
Proof
:= by
let _ : LocallyConvexSpace ℝ Space :=
inferInstanceAs (LocallyConvexSpace ℝ (WeakBilin (topDualPairing ℝ H).flip))
refine ⟨fun x U hU hx ↦ ?_⟩
obtain ⟨s, ⟨hs, hc⟩, hsub⟩ := (LocallyConvexSpace.convex_basis (𝕜 := ℝ) x).mem_iff.mp
(hU.mem_nhds hx)
exact ⟨interior s, isOpen_interior, mem_interior_iff_mem_nhds.mpr hs,
interior_subset.trans hsub, arcConnectedSpace_of_convex hc.interior⟩
On this site: The weak topology on separable Hilbert space is locally arc connected
definition coordinates
TopologyByExample.WeakHilbert.coordinates
The map recording all coordinates of a square-summable sequence.
noncomputable def coordinates (x : Space) : ℕ → ℝ
:= (toWeakSpace ℝ H).symm x
theorem continuous_coordinates
TopologyByExample.WeakHilbert.continuous_coordinates
private theorem continuous_coordinates : Continuous coordinates
theorem injective_coordinates
TopologyByExample.WeakHilbert.injective_coordinates
private theorem injective_coordinates : Function.Injective coordinates
Proof
:=
fun _ _ h ↦ (toWeakSpace ℝ H).symm.injective (Subtype.ext h)
theorem submetrizableSpace
TopologyByExample.WeakHilbert.submetrizableSpace
The sequence coordinates continuously and injectively map the weak space to real sequences.
theorem submetrizableSpace : SubmetrizableSpace Space
Proof
:=
RealExtension.submetrizableSpace_of_continuous_injective
continuous_coordinates injective_coordinates
On this site: The weak topology on separable Hilbert space is submetrizable
theorem kernel_vector
TopologyByExample.WeakHilbert.kernel_vector
A finite list of functionals has a common nonzero kernel vector in an initial coordinate block of dimension strictly greater than the length of the list.
private theorem kernel_vector (F : Finset (StrongDual ℝ H)) :
∃ v : block (F.card + 1), v ≠ 0 ∧ ∀ f ∈ F, f v.val = 0
Proof
:= by
classical
let L : block (F.card + 1) →ₗ[ℝ] (F → ℝ) :=
LinearMap.pi fun f ↦ f.val.toLinearMap.comp (block _).subtype
have hk : L.ker ≠ ⊥ := by
intro h
have he := LinearMap.finrank_le_finrank_of_injective (LinearMap.ker_eq_bot.mp h)
rw [finrank_block, Module.finrank_fintype_fun_eq_card, Fintype.card_coe] at he
omega
obtain ⟨v, hv, hne⟩ := Submodule.exists_mem_ne_zero_of_ne_bot hk
exact ⟨v, hne, fun f hf ↦ congrFun (LinearMap.mem_ker.mp hv) ⟨f, hf⟩⟩
theorem finite_constraints
TopologyByExample.WeakHilbert.finite_constraints
Every weak neighbourhood of zero contains the common kernel of finitely many functionals.
private theorem finite_constraints {U : Set Space} (hU : IsOpen U) (hz : 0 ∈ U) :
∃ F : Finset (StrongDual ℝ H), ∀ y : H, (∀ f ∈ F, f y = 0) → toWeakSpace ℝ H y ∈ U
Proof
:= by
let B := WeakSpace.pairing ℝ H
obtain ⟨O, hO, rfl⟩ := (LinearMap.IsWeak.isInducing B).isOpen_iff.mp hU
obtain ⟨F, u, hu, hsub⟩ := isOpen_pi_iff.mp hO _ hz
refine ⟨F, fun y hy ↦ hsub fun f hf ↦ ?_⟩
change f y ∈ u f
rw [hy f hf]
simpa only [map_zero, LinearMap.zero_apply] using (hu f hf).2
definition blockSphere
TopologyByExample.WeakHilbert.blockSphere
The sphere of radius n+1 in the initial n+1 coordinate block, viewed weakly.
noncomputable def blockSphere (n : ℕ) : Set Space
:=
(fun v : block (n + 1) ↦ toWeakSpace ℝ H v.val) '' Metric.sphere 0 (n + 1 : ℝ)
theorem isClosed_blockSphere
TopologyByExample.WeakHilbert.isClosed_blockSphere
private theorem isClosed_blockSphere (n : ℕ) : IsClosed (blockSphere n)
Proof
:=
((isCompact_sphere (0 : block (n + 1)) _).image
(WeakSpace.continuous_toWeakSpace.comp continuous_subtypeVal)).isClosed
theorem norm_of_mem_blockSphere
TopologyByExample.WeakHilbert.norm_of_mem_blockSphere
private theorem norm_of_mem_blockSphere {n : ℕ} {x : Space} (hx : x ∈ blockSphere n) :
‖(toWeakSpace ℝ H).symm x‖ = (n : ℝ) + 1
Proof
:= by
obtain ⟨v, hv, rfl⟩ := hx
rw [LinearEquiv.symm_apply_apply]
exact (dist_zero_right v).symm.trans (Metric.mem_sphere.mp hv)
theorem zero_mem_closure_blockSpheres
TopologyByExample.WeakHilbert.zero_mem_closure_blockSpheres
The union of the growing finite-dimensional spheres approaches zero in the weak topology.
theorem zero_mem_closure_blockSpheres : (0 : Space) ∈ closure (⋃ n, blockSphere n)
Proof
:= by
rw [mem_closure_iff]
intro U hU hz
obtain ⟨F, hF⟩ := finite_constraints hU hz
obtain ⟨v, hv, hann⟩ := kernel_vector F
let r : ℝ := (F.card : ℝ) + 1
have hr : 0 < r := by dsimp [r]; positivity
let w := (r / ‖v‖) • v
have hw : ‖w‖ = r := by
rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg (div_nonneg hr.le (norm_nonneg _)),
div_mul_cancel₀ _ (norm_ne_zero_iff.mpr hv)]
refine ⟨toWeakSpace ℝ H w.val, hF w.val (fun f hf ↦ ?_), mem_iUnion.mpr
⟨F.card, w, Metric.mem_sphere.mpr (by simpa only [dist_zero_right] using hw), rfl⟩⟩
change f ((r / ‖v‖) • v.val) = 0
rw [map_smul, hann f hf, smul_zero]
theorem norm_bounded_of_isCompact
TopologyByExample.WeakHilbert.norm_bounded_of_isCompact
A weakly compact set is norm bounded by uniform boundedness.
theorem norm_bounded_of_isCompact {s : Set Space} (h : IsCompact s) :
∃ C : ℝ, ∀ x ∈ s, ‖(toWeakSpace ℝ H).symm x‖ ≤ C
Proof
:= by
have hb := WeakDual.isBounded_iff_isVonNBounded.mpr
((h.image riesz.continuous).isVonNBounded ℝ)
have hs := WeakDual.isBounded_toWeakDual_preimage_iff_isBounded.mpr hb
obtain ⟨C, hC⟩ := isBounded_iff_forall_norm_le.mp hs
refine ⟨C, fun x hx ↦ ?_⟩
convert hC (InnerProductSpace.toDual ℝ H ((toWeakSpace ℝ H).symm x))
(mem_image_of_mem riesz hx) using 1
exact ((InnerProductSpace.toDual ℝ H).norm_map _).symm
On this site: Weak topology on separable Hilbert space: Weakly compact sets are norm bounded
theorem not_sequentialSpace
TopologyByExample.WeakHilbert.not_sequentialSpace
Sequences cannot detect the closure of the growing spheres.
theorem not_sequentialSpace : ¬ SequentialSpace Space
Proof
:= by
intro _
let A := ⋃ n, blockSphere n
have hseq : IsSeqClosed A := by
intro u x hu hx
obtain ⟨C, hC⟩ := norm_bounded_of_isCompact hx.isCompact_insert_range
obtain ⟨N, hN⟩ := exists_nat_gt C
have he (i : ℕ) : u i ∈ ⋃ n ∈ Finset.range N, blockSphere n := by
obtain ⟨n, hn⟩ := mem_iUnion.mp (hu i)
have hb := hC (u i) (mem_insert_of_mem _ (mem_range_self i))
rw [norm_of_mem_blockSphere hn] at hb
have hlt : (n : ℝ) < N := by linarith
exact mem_iUnion₂.mpr ⟨n, Finset.mem_range.mpr (by exact_mod_cast hlt), hn⟩
have hclosed := isClosed_biUnion_finset (s := Finset.range N) (fun n _ ↦ isClosed_blockSphere n)
obtain ⟨n, _, hn⟩ := mem_iUnion₂.mp (hclosed.mem_of_tendsto hx (Eventually.of_forall he))
exact mem_iUnion.mpr ⟨n, hn⟩
obtain ⟨n, hn⟩ := mem_iUnion.mp (hseq.isClosed.closure_subset_iff.mpr Subset.rfl
zero_mem_closure_blockSpheres)
have hh := norm_of_mem_blockSphere hn
simp only [map_zero, norm_zero] at hh
linarith [Nat.cast_nonneg (α := ℝ) n]
On this site: The weak topology on separable Hilbert space is not sequential
theorem weak_lt_coordinateTopology
TopologyByExample.WeakHilbert.weak_lt_coordinateTopology
The topology of coordinatewise convergence is strictly coarser than the weak topology.
theorem weak_lt_coordinateTopology :
(inferInstance : TopologicalSpace Space) <
TopologicalSpace.induced coordinates inferInstance
Proof
:= by
refine lt_of_le_of_ne continuous_coordinates.le_induced ?_
intro h
have he : IsEmbedding coordinates := ⟨⟨h⟩, injective_coordinates⟩
let _ := he.metrizableSpace
exact not_sequentialSpace inferInstance
On this site: Weak topology on separable Hilbert space: Coordinatewise convergence
theorem unbounded_open_zero
TopologyByExample.WeakHilbert.unbounded_open_zero
Weak neighbourhoods of zero contain vectors of arbitrarily large norm.
theorem unbounded_open_zero {U : Set Space} (hU : IsOpen U) (hz : 0 ∈ U) (C : ℝ) :
∃ w : H, toWeakSpace ℝ H w ∈ U ∧ C < ‖w‖
Proof
:= by
obtain ⟨F, hF⟩ := finite_constraints hU hz
obtain ⟨v, hv, hann⟩ := kernel_vector F
let r := max C 0 + 1
have hr : 0 < r := by dsimp [r]; positivity
let w : H := (r / ‖v‖) • v.val
refine ⟨w, hF _ (fun f hf ↦ ?_), ?_⟩
· change f ((r / ‖v‖) • v.val) = 0
rw [map_smul, hann f hf, smul_zero]
· change C < ‖(r / ‖v‖) • v.val‖
rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg (div_nonneg hr.le (norm_nonneg _))]
change C < r / ‖v‖ * ‖v‖
rw [div_mul_cancel₀ _ (norm_ne_zero_iff.mpr hv)]
exact (le_max_left _ _).trans_lt (lt_add_one _)
theorem nowhereDense_ball
TopologyByExample.WeakHilbert.nowhereDense_ball
Norm balls are nowhere dense in the weak topology.
theorem nowhereDense_ball (r : ℝ) : IsNowhereDense (ball r)
Proof
:= by
rw [IsNowhereDense, (isCompact_ball r).isClosed.closure_eq]
apply eq_empty_iff_forall_notMem.mpr
intro x hx
let a := (toWeakSpace ℝ H).symm x
let U := (fun y : Space ↦ x + y) ⁻¹' interior (ball r)
have hU : IsOpen U := isOpen_interior.preimage (continuous_const.add continuous_id)
have hz : 0 ∈ U := by simpa [U] using hx
obtain ⟨w, hw, hlarge⟩ := unbounded_open_zero hU hz (r + ‖a‖)
have hsmall := interior_subset (show x + toWeakSpace ℝ H w ∈ interior (ball r) from hw)
change ‖(toWeakSpace ℝ H).symm (x + toWeakSpace ℝ H w)‖ ≤ r at hsmall
rw [map_add, LinearEquiv.symm_apply_apply] at hsmall
have hnorm : ‖w‖ ≤ ‖a + w‖ + ‖a‖ := by
simpa only [add_sub_cancel_left] using norm_sub_le (a + w) a
exact hlarge.not_ge (hnorm.trans (add_le_add_left hsmall _))
theorem isMeagre_univ
TopologyByExample.WeakHilbert.isMeagre_univ
The entire weak Hilbert space is meagre.
theorem isMeagre_univ : IsMeagre (univ : Set Space)
Proof
:= by
apply (isMeagre_iUnion fun n : ℕ ↦ (nowhereDense_ball (n : ℝ)).isMeagre).mono
intro x _
obtain ⟨n, hn⟩ := exists_nat_ge ‖(toWeakSpace ℝ H).symm x‖
exact mem_iUnion.mpr ⟨n, hn⟩
On this site: The weak topology on separable Hilbert space is not of second category
theorem cardinalityContinuum
TopologyByExample.WeakHilbert.cardinalityContinuum
The square-summable sequences have cardinality continuum.
theorem cardinalityContinuum : CardinalityContinuum Space
Proof
:= by
change #Space = continuum
rw [← mk_congr (toWeakSpace ℝ H).toEquiv]
apply le_antisymm
· calc
#H ≤ #(ℕ → ℝ) := mk_le_of_injective (f := fun x : H ↦ x.val) Subtype.val_injective
_ = continuum := by
rw [mk_arrow, mk_nat, mk_real, lift_id, lift_id, continuum_power_aleph0]
· rw [← mk_real]
apply mk_le_of_injective (f := fun r : ℝ ↦ (lp.single 2 (0 : ℕ) r : H))
intro r s h
simpa only [lp.single_apply_self] using congrArg (fun x : H ↦ x 0) h
On this site: The weak topology on separable Hilbert space has cardinality equal to \(\mathfrak{c}\)
instance
instance : Nontrivial Space
Proof
:= by
apply Cardinal.one_lt_iff_nontrivial.mp
rw [show Cardinal.mk Space = Cardinal.continuum from cardinalityContinuum]
exact Cardinal.one_lt_aleph0.trans Cardinal.aleph0_lt_continuum
theorem not_linearlyOrderable
TopologyByExample.WeakHilbert.not_linearlyOrderable
A compatible linear order would make this connected separable space second countable.
theorem not_linearlyOrderable : ¬ ∃ o : LinearOrder Space, letI := o; OrderTopology Space
Proof
:= by
rintro ⟨o, ho⟩
let _ := o
let _ := ho
let _ := separableSpace
let _ := arcConnectedSpace
let _ : DenselyOrdered Space := denselyOrdered_of_preconnectedSpace
let _ := SecondCountableTopology.of_separableSpace_orderTopology Space
exact not_sequentialSpace inferInstance
On this site: The weak topology on separable Hilbert space is not linearly orderable