Lean library · module TopologyByExample.Spaces.Sphere
The sphere
The two-dimensional sphere S² = {x ∈ ℝ³ : ‖x‖ = 1}, as Mathlib's
Metric.sphere (0 : EuclideanSpace ℝ (Fin 3)) 1, with the subspace topology. It is a compact
metric space and a two-dimensional manifold, path connected and locally path connected, and
infinite.
Beyond its values on the grid, this file proves that the sphere is homeomorphic to the one-point
compactification of the plane ℝ × ℝ, that removing any two points from it leaves a connected
space (through stereographic projection), and hence that it is not homeomorphic to the circle.
Main statements
TopologyByExample.Sphere.metrizableSpace,TopologyByExample.Sphere.compactSpace,TopologyByExample.Sphere.pathPreconnectedSpace,TopologyByExample.Sphere.locallyPathConnectedSpace,TopologyByExample.Sphere.not_finite: the values.TopologyByExample.Sphere.nonempty_onePoint_plane_homeomorph:OnePoint (ℝ × ℝ) ≃ₜ S².TopologyByExample.Sphere.isPreconnected_compl_pair:S² ∖ {x, y}is connected.TopologyByExample.Sphere.isEmpty_homeomorph_circle:S²is not homeomorphic toS¹.
This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.
Imports
local notation "S²" => sphere (0 : EuclideanSpace ℝ (Fin 3)) 1
Values
theorem metrizableSpace
TopologyByExample.Sphere.metrizableSpace
The sphere is metrizable.
theorem metrizableSpace : MetrizableSpace S²
Proof
:= inferInstance
On this site: The sphere is metrizable
theorem compactSpace
TopologyByExample.Sphere.compactSpace
The sphere is compact.
theorem compactSpace : CompactSpace S²
Proof
:= inferInstance
On this site: The sphere is compact
theorem one_lt_rank
TopologyByExample.Sphere.one_lt_rank
Euclidean ℝ³ has rank greater than one.
theorem one_lt_rank : 1 < Module.rank ℝ (EuclideanSpace ℝ (Fin 3))
Proof
:= by
rw [← Module.finrank_eq_rank, finrank_euclideanSpace_fin]
norm_num
theorem pathConnectedSpace
TopologyByExample.Sphere.pathConnectedSpace
The sphere is path connected.
theorem pathConnectedSpace : PathConnectedSpace S²
Proof
:=
isPathConnected_iff_pathConnectedSpace.1 (isPathConnected_sphere one_lt_rank 0 zero_le_one)
theorem pathPreconnectedSpace
TopologyByExample.Sphere.pathPreconnectedSpace
Any two points of the sphere are joined by a path.
theorem pathPreconnectedSpace : PathPreconnectedSpace S²
Proof
:=
haveI := pathConnectedSpace
inferInstance
On this site: The sphere is path connected
theorem locallyPathConnectedSpace
TopologyByExample.Sphere.locallyPathConnectedSpace
The sphere is locally path connected: it is a manifold modelled on ℝ².
theorem locallyPathConnectedSpace : LocallyPathConnectedSpace S²
Proof
:=
ChartedSpace.locallyPathConnectedSpace (EuclideanSpace ℝ (Fin 2)) S²
theorem nonempty_onePoint_plane_homeomorph
TopologyByExample.Sphere.nonempty_onePoint_plane_homeomorph
The sphere is homeomorphic to the one-point compactification of the plane.
theorem nonempty_onePoint_plane_homeomorph : Nonempty (OnePoint (ℝ × ℝ) ≃ₜ S²)
Proof
:=
⟨onePointEquivSphereOfFinrankEq (V := ℝ × ℝ) (ι := Fin 3) (by simp)⟩
On this site: Sphere: The one-point compactification of the plane
theorem infinite
TopologyByExample.Sphere.infinite
The sphere is infinite.
theorem infinite : Infinite S²
Proof
:= by
obtain ⟨e⟩ := nonempty_onePoint_plane_homeomorph
exact Infinite.of_injective (e ∘ OnePoint.some) (e.injective.comp OnePoint.coe_injective)
theorem not_finite
TopologyByExample.Sphere.not_finite
The sphere is not finite.
theorem not_finite : ¬Finite S²
Proof
:= @Infinite.not_finite _ infinite
On this site: The sphere is not finite
theorem nontrivial
TopologyByExample.Sphere.nontrivial
The sphere has at least two points.
theorem nontrivial : Nontrivial S²
Proof
:=
haveI := infinite
inferInstance
theorem nonempty
TopologyByExample.Sphere.nonempty
The sphere is nonempty.
theorem nonempty : Nonempty S²
Proof
:=
haveI := infinite
inferInstance
Removing two points
theorem isPreconnected_compl_pair
TopologyByExample.Sphere.isPreconnected_compl_pair
Removing any two points (or one) from the sphere leaves a connected space.
theorem isPreconnected_compl_pair (x y : S²) : IsPreconnected ({x, y}ᶜ : Set S²)
Proof
:= by
have hv : ‖(x : EuclideanSpace ℝ (Fin 3))‖ = 1 := norm_eq_of_mem_sphere x
set f := (stereographic hv).symm with hf_def
have hfc : Continuous f := (isOpenEmbedding_stereographic_symm hv).continuous
have hfi : Function.Injective f := (isOpenEmbedding_stereographic_symm hv).injective
have hrange : range f = {x}ᶜ := range_stereographic_symm hv x.property
have : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 2 + 1) := ⟨by simp⟩
have hrank : 1 < Module.rank ℝ (ℝ ∙ (x : EuclideanSpace ℝ (Fin 3)))ᗮ := by
rw [← Module.finrank_eq_rank,
Submodule.finrank_orthogonal_span_singleton (n := 2) (ne_zero_of_mem_unit_sphere x)]
norm_num
by_cases hy : y ∈ range f
· obtain ⟨w, rfl⟩ := hy
have : ({x, f w}ᶜ : Set S²) = f '' {w}ᶜ := by
rw [image_compl_eq_range_sdiff_image hfi, image_singleton, hrange]
ext z
simp only [mem_compl_iff, mem_insert_iff, mem_singleton_iff, mem_sdiff]
tauto
rw [this]
exact ((isPathConnected_compl_singleton_of_one_lt_rank hrank w).image hfc).isConnected
|>.isPreconnected
· have hyx : y = x := by simpa only [hrange, mem_compl_iff, mem_singleton_iff, not_not] using hy
have : ({x, y}ᶜ : Set S²) = range f := by rw [hrange, hyx, pair_eq_singleton]
rw [this, ← image_univ]
exact (isPreconnected_univ.image f hfc.continuousOn)
On this site: Sphere: Removing two points leaves it connected
theorem isEmpty_homeomorph_circle
TopologyByExample.Sphere.isEmpty_homeomorph_circle
The sphere is not homeomorphic to the circle: removing two points disconnects the circle but not the sphere.
theorem isEmpty_homeomorph_circle : IsEmpty (S² ≃ₜ Circle)
Proof
:= by
refine ⟨fun h ↦ Circle.not_isPreconnected_compl_pair ?_⟩
have : h '' ({h.symm 1, h.symm (-1)}ᶜ : Set S²) = {1, -1}ᶜ := by
rw [h.image_compl, image_pair, h.apply_symm_apply, h.apply_symm_apply]
rw [← this]
exact (isPreconnected_compl_pair _ _).image h h.continuous.continuousOn
On this site: Sphere: Not homeomorphic to the circle
On this site: Space: Sphere