Lean library · module TopologyByExample.Spaces.Circle
The circle
Mathlib's Circle is the unit circle {z : ℂ | ‖z‖ = 1} with the subspace topology. It is a
compact metric space and a one-dimensional manifold, hence path connected and locally path
connected; it is infinite.
Beyond its values on the grid, this file proves:
- the fundamental group of the circle at every point is isomorphic to
ℤ; - the circle is homeomorphic to the one-point compactification of the real line;
- every continuous real function on the circle agrees at some pair of antipodal points, so no continuous map from the circle to the real line is injective;
- removing the two points
1and-1disconnects the circle.
Main statements
TopologyByExample.Circle.metrizableSpace,TopologyByExample.Circle.compactSpace,TopologyByExample.Circle.pathPreconnectedSpace,TopologyByExample.Circle.locallyPathConnectedSpace,TopologyByExample.Circle.not_finite: the values.TopologyByExample.Circle.nonempty_fundamentalGroup_mulEquiv_int:π₁(S¹, x) ≅ ℤ.TopologyByExample.Circle.nonempty_onePoint_real_homeomorph:OnePoint ℝ ≃ₜ S¹.TopologyByExample.Circle.exists_apply_neg_eq: antipodal points with equal values.TopologyByExample.Circle.not_injective_of_continuous: no continuous injection intoℝ.TopologyByExample.Circle.not_isPreconnected_compl_pair:S¹ ∖ {1, -1}is disconnected.
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
- Mathlib.Analysis.InnerProductSpace.PiL2
- Mathlib.Analysis.SpecialFunctions.Complex.Circle
- Mathlib.Geometry.Manifold.Instances.Sphere
- Mathlib.Topology.Compactification.OnePoint.Sphere
- Mathlib.Topology.Covering.FundamentalGroupCircle
- Mathlib.Topology.Order.IntermediateValue
- TopologyByExample.Theorems.Connectedness
Values
theorem metrizableSpace
TopologyByExample.Circle.metrizableSpace
The circle is metrizable.
theorem metrizableSpace : MetrizableSpace Circle
Proof
:= inferInstance
On this site: The circle is metrizable
theorem compactSpace
TopologyByExample.Circle.compactSpace
The circle is compact.
theorem compactSpace : CompactSpace Circle
Proof
:= inferInstance
On this site: The circle is compact
theorem pathPreconnectedSpace
TopologyByExample.Circle.pathPreconnectedSpace
Any two points of the circle are joined by a path.
theorem pathPreconnectedSpace : PathPreconnectedSpace Circle
Proof
:= inferInstance
theorem locallyPathConnectedSpace
TopologyByExample.Circle.locallyPathConnectedSpace
The circle is locally path connected: it is a manifold modelled on ℝ.
theorem locallyPathConnectedSpace : LocallyPathConnectedSpace Circle
Proof
:=
ChartedSpace.locallyPathConnectedSpace (EuclideanSpace ℝ (Fin 1)) Circle
theorem one_ne_neg_one
TopologyByExample.Circle.one_ne_neg_one
The points 1 and -1 of the circle are distinct.
theorem one_ne_neg_one : (1 : Circle) ≠ -1
Proof
:= by
intro h
have := congrArg (fun z : Circle ↦ (z : ℂ)) h
norm_num [Circle.coe_neg] at this
theorem nontrivial
TopologyByExample.Circle.nontrivial
The circle has at least two points.
theorem nontrivial : Nontrivial Circle
Proof
:= ⟨⟨1, -1, one_ne_neg_one⟩⟩
theorem nonempty
TopologyByExample.Circle.nonempty
The circle is nonempty.
theorem nonempty : Nonempty Circle
Proof
:= ⟨1⟩
theorem infinite
TopologyByExample.Circle.infinite
The circle is infinite.
theorem infinite : Infinite Circle
Proof
:= by
have hmem (n : ℕ) : 1 / (n + 1 : ℝ) ∈ Icc (0 : ℝ) 1 :=
⟨by positivity, div_le_one_of_le₀ (by simp) (by positivity)⟩
refine Infinite.of_injective (fun n : ℕ ↦ Circle.exp (1 / (n + 1 : ℝ))) fun m n h ↦ ?_
have h := Circle.exp_injOn_Icc (by linarith [Real.two_le_pi]) (hmem m) (hmem n) h
simpa using h
theorem not_finite
TopologyByExample.Circle.not_finite
The circle is not finite.
theorem not_finite : ¬Finite Circle
Proof
:= @Infinite.not_finite _ infinite
On this site: The circle is not finite
The fundamental group
theorem isAddQuotientCoveringMap_homeomorphCircle_comp
TopologyByExample.Circle.isAddQuotientCoveringMap_homeomorphCircle_comp
The quotient map ℝ → ℝ / 2πℤ, followed by the homeomorphism of that quotient with the circle,
is a covering map with deck group 2πℤ.
theorem isAddQuotientCoveringMap_homeomorphCircle_comp :
IsAddQuotientCoveringMap (AddCircle.homeomorphCircle' ∘ ((↑) : ℝ → AddCircle (2 * Real.pi)))
(AddSubgroup.zmultiples (2 * Real.pi))
Proof
:=
(AddCircle.isAddQuotientCoveringMap_coe (2 * Real.pi)).homeomorph_comp _
theorem nonempty_fundamentalGroup_mulEquiv_int
TopologyByExample.Circle.nonempty_fundamentalGroup_mulEquiv_int
The fundamental group of the circle is ℤ, at every basepoint.
theorem nonempty_fundamentalGroup_mulEquiv_int (x : Circle) :
Nonempty (FundamentalGroup Circle x ≃* Multiplicative ℤ)
Proof
:= by
have hp : (2 * Real.pi) ≠ 0 := by positivity
obtain ⟨t, ht⟩ : ∃ t : ℝ, AddCircle.homeomorphCircle' (t : AddCircle (2 * Real.pi)) = x := by
obtain ⟨y, rfl⟩ := AddCircle.homeomorphCircle'.surjective x
obtain ⟨t, rfl⟩ := QuotientAddGroup.mk_surjective y
exact ⟨t, rfl⟩
exact ⟨(isAddQuotientCoveringMap_homeomorphCircle_comp.fundamentalGroupEquiv
(x := x) ⟨t, ht⟩).trans <|
MulOpposite.opMulEquiv.symm.trans (AddSubgroup.zmultiplesEquivInt hp).toMultiplicative⟩
On this site: Circle: The fundamental group is \(\mathbb{Z}\)
The one-point compactification of the line
definition sphereHomeomorph
TopologyByExample.Circle.sphereHomeomorph
The unit sphere of the Euclidean plane is homeomorphic to the circle in ℂ.
noncomputable def sphereHomeomorph : sphere (0 : EuclideanSpace ℝ (Fin 2)) 1 ≃ₜ Circle
Definition
:=
Complex.orthonormalBasisOneI.repr.symm.toHomeomorph.subtype fun x ↦ by
change x ∈ sphere 0 1 ↔ Complex.orthonormalBasisOneI.repr.symm x ∈ sphere 0 1
simp only [mem_sphere_zero_iff_norm, LinearIsometryEquiv.norm_map]
theorem nonempty_onePoint_real_homeomorph
TopologyByExample.Circle.nonempty_onePoint_real_homeomorph
The circle is homeomorphic to the one-point compactification of the real line.
theorem nonempty_onePoint_real_homeomorph : Nonempty (OnePoint ℝ ≃ₜ Circle)
Proof
:=
⟨(onePointEquivSphereOfFinrankEq (V := ℝ) (ι := Fin 2) (by simp)).trans sphereHomeomorph⟩
On this site: Circle: The one-point compactification of the line
Antipodal points
theorem neg_ne_self
TopologyByExample.Circle.neg_ne_self
A point of the circle is distinct from its antipode.
theorem neg_ne_self (z : Circle) : -z ≠ z
Proof
:= by
intro h
have h' := congrArg (fun w : Circle ↦ (w : ℂ)) h
simp only [Circle.coe_neg, neg_eq_self] at h'
exact Circle.coe_ne_zero z h'
theorem exists_apply_neg_eq
TopologyByExample.Circle.exists_apply_neg_eq
Borsuk–Ulam for the circle: every continuous real function on the circle takes the same value at some pair of antipodal points.
theorem exists_apply_neg_eq (f : Circle → ℝ) (hf : Continuous f) : ∃ z, f (-z) = f z
Proof
:= by
set g : Circle → ℝ := fun z ↦ f z - f (-z) with hg_def
have hg : Continuous g := hf.sub (hf.comp continuous_neg)
have hneg : g (-1) = -g 1 := by simp [hg_def]
suffices h : (0 : ℝ) ∈ range g by
obtain ⟨z, hz⟩ := h
exact ⟨z, (sub_eq_zero.1 hz).symm⟩
rcases le_total (g 1) 0 with h | h
· exact intermediate_value_univ 1 (-1) hg ⟨h, by rw [hneg]; linarith⟩
· exact intermediate_value_univ (-1) 1 hg ⟨by rw [hneg]; linarith, h⟩
On this site: Circle: Every real function agrees at two antipodal points
theorem not_injective_of_continuous
TopologyByExample.Circle.not_injective_of_continuous
No continuous map from the circle to the real line is injective.
theorem not_injective_of_continuous (f : Circle → ℝ) (hf : Continuous f) : ¬Function.Injective f
Proof
:=
fun hinj ↦ by
obtain ⟨z, hz⟩ := exists_apply_neg_eq f hf
exact neg_ne_self z (hinj hz)
On this site: Circle: No continuous injection into the line
Removing two points
theorem not_isPreconnected_compl_pair
TopologyByExample.Circle.not_isPreconnected_compl_pair
Removing the points 1 and -1 disconnects the circle: the open upper and lower half-circles
separate what is left.
theorem not_isPreconnected_compl_pair : ¬IsPreconnected ({1, -1}ᶜ : Set Circle)
Proof
:= by
intro h
let U : Set Circle := {z | 0 < (z : ℂ).im}
let V : Set Circle := {z | (z : ℂ).im < 0}
have him_cont : Continuous fun z : Circle ↦ (z : ℂ).im :=
Complex.continuous_im.comp continuous_subtypeVal
have hU : IsOpen U := isOpen_lt continuous_const him_cont
have hV : IsOpen V := isOpen_lt him_cont continuous_const
have hcover : ({1, -1}ᶜ : Set Circle) ⊆ U ∪ V := by
intro z hz
rcases lt_trichotomy (z : ℂ).im 0 with h | h | h
· exact .inr h
· exfalso
have hn : (z : ℂ).re ^ 2 + (z : ℂ).im ^ 2 = 1 := by
have := Circle.normSq_coe z
rw [Complex.normSq_apply] at this
nlinarith [this]
rw [h] at hn
have hre : (z : ℂ).re = 1 ∨ (z : ℂ).re = -1 := by
have : ((z : ℂ).re - 1) * ((z : ℂ).re + 1) = 0 := by nlinarith [hn]
rcases mul_eq_zero.1 this with h1 | h1
· exact .inl (by linarith)
· exact .inr (by linarith)
apply hz
rcases hre with h1 | h1
· left
exact Subtype.ext (Complex.ext (by simp [h1]) (by simp [h]))
· right
exact Subtype.ext (Complex.ext (by simp [h1]) (by simp [h]))
· exact .inl h
let i : Circle := ⟨Complex.I, by simp [Submonoid.unitSphere]⟩
have him (w : Circle) (hw : (w : ℂ).im ≠ 0) : w ∈ ({1, -1}ᶜ : Set Circle) := by
rintro (h | h)
· exact hw (by simp [h])
· rw [Set.mem_singleton_iff] at h
exact hw (by simp [h])
have hi_coe : (i : ℂ) = Complex.I := rfl
have hi : i ∈ ({1, -1}ᶜ : Set Circle) ∩ U :=
⟨him i (by simp [hi_coe]), show 0 < (i : ℂ).im by simp [hi_coe]⟩
have hi' : -i ∈ ({1, -1}ᶜ : Set Circle) ∩ V :=
⟨him (-i) (by simp [Circle.coe_neg, hi_coe]), show ((-i : Circle) : ℂ).im < 0 by
simp [Circle.coe_neg, hi_coe]⟩
obtain ⟨z, -, hzU, hzV⟩ := h U V hU hV hcover ⟨i, hi⟩ ⟨-i, hi'⟩
have h1 : 0 < (z : ℂ).im := hzU
have h2 : (z : ℂ).im < 0 := hzV
linarith
On this site: Circle: Removing two points disconnects it
On this site: Space: Circle