Lean library · module TopologyByExample.Spaces.ClosureComplementClosure
The compact closure in the fourteen-set example
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
definition ClosureSpace
TopologyByExample.ClosureComplementSubsets.ClosureSpace
The closure of the original real subset.
abbrev ClosureSpace
:= ↥(closure original)
On this site: Space: Closure of the fourteen-set example
definition remainder
TopologyByExample.ClosureComplementSubsets.remainder
The compact components other than the reciprocal sequence and its limit.
def remainder : Set ℝ
:= {9 / 2} ∪ Icc 7 8 ∪ (Icc 2 4 ∪ Icc 5 6)
definition closureSplit
TopologyByExample.ClosureComplementSubsets.closureSplit
The sequence component is separated from the remaining compact pieces.
def closureSplit : ClosureSpace ≃ₜ FortSpaces.harmonicSet ⊕ remainder
Definition
:= by
have he : closure original = FortSpaces.harmonicSet ∪ remainder := by
rw [closure_original]
unfold remainder
ext x
simp only [mem_union]
tauto
refine (Homeomorph.setCongr he).trans
(SeparatedRealSubsets.cutHomeomorph _ _ (3 / 2) ?_ ?_)
· rintro x (hx | ⟨n, rfl⟩)
· have hx' : x = 0 := hx
rw [hx']
norm_num
· have h := ReciprocalSubsets.reciprocal_le_one n
change 1 / ((n : ℝ) + 1) < 3 / 2
change 1 / ((n : ℝ) + 1) ≤ 1 at h
linarith
· rintro x ((hx | hx) | (hx | hx))
· have hx' : x = 9 / 2 := hx
rw [hx']; norm_num
· change (3 : ℝ) / 2 < x
linarith [hx.1]
· change (3 : ℝ) / 2 < x
linarith [hx.1]
· change (3 : ℝ) / 2 < x
linarith [hx.1]
theorem compact_closure
TopologyByExample.ClosureComplementSubsets.compact_closure
The closure is compact, as a finite union of compact components.
theorem compact_closure : CompactSpace ClosureSpace
Proof
:= by
apply isCompact_iff_compactSpace.mp
rw [closure_original]
exact ((FortSpaces.isCompact_harmonicSet.union isCompact_singleton).union
isCompact_Icc).union (isCompact_Icc.union isCompact_Icc)
On this site: The closure of the fourteen-set example is compact
theorem metrizable_closure
TopologyByExample.ClosureComplementSubsets.metrizable_closure
The closure inherits a metric from the real line.
theorem metrizable_closure : MetrizableSpace ClosureSpace
Proof
:= inferInstance
On this site: The closure of the fourteen-set example is metrizable
theorem harmonic_not_locallyConnected
TopologyByExample.ClosureComplementSubsets.harmonic_not_locallyConnected
The convergent-sequence component is not locally connected.
theorem harmonic_not_locallyConnected : ¬LocallyConnectedSpace FortSpaces.harmonicSet
Proof
:= by
intro h
obtain ⟨e, _⟩ := FortSpaces.exists_homeomorph_harmonicSet (X := ℕ)
have : LocallyConnectedSpace (OnePoint ℕ) := (Homeomorph.locallyConnectedSpace_iff e).mpr h
have : DiscreteTopology (OnePoint ℕ) := discreteTopology_of_locallyConnectedSpace
have : Finite (OnePoint ℕ) := finite_of_compact_of_discrete
exact Infinite.not_finite this
theorem not_locallyConnected_closure
TopologyByExample.ClosureComplementSubsets.not_locallyConnected_closure
Local connectedness fails on the open convergent-sequence component.
theorem not_locallyConnected_closure : ¬LocallyConnectedSpace ClosureSpace
Proof
:= by
intro h
have : LocallyConnectedSpace (FortSpaces.harmonicSet ⊕ remainder) :=
(Homeomorph.locallyConnectedSpace_iff closureSplit).mp h
exact harmonic_not_locallyConnected
((show IsOpenEmbedding (Sum.inl : FortSpaces.harmonicSet →
FortSpaces.harmonicSet ⊕ remainder) from IsOpenEmbedding.inl).locallyConnectedSpace)
On this site: The closure of the fourteen-set example is not locally connected
definition closureInterval
TopologyByExample.ClosureComplementSubsets.closureInterval
A compact interval inside the closure.
def closureInterval (t : unitInterval) : ClosureSpace
:=
⟨(t : ℝ) + 5, subset_closure (Or.inr (Or.inr
⟨by linarith [t.property.1], by linarith [t.property.2]⟩))⟩
theorem continuous_closureInterval
TopologyByExample.ClosureComplementSubsets.continuous_closureInterval
The interval parametrization is continuous.
theorem continuous_closureInterval : Continuous closureInterval
Proof
:=
(continuous_subtypeVal.add_const 5).subtype_mk _
theorem nonempty_closure
TopologyByExample.ClosureComplementSubsets.nonempty_closure
The compact closure is nonempty.
theorem nonempty_closure : Nonempty ClosureSpace
Proof
:= ⟨closureInterval 0⟩
theorem not_preconnected_closure
TopologyByExample.ClosureComplementSubsets.not_preconnected_closure
The separated sequence component witnesses disconnectedness.
theorem not_preconnected_closure : ¬PreconnectedSpace ClosureSpace
Proof
:= by
intro h
have : Nonempty FortSpaces.harmonicSet := ⟨⟨0, Or.inl rfl⟩⟩
have : Nonempty remainder := ⟨⟨9 / 2, Or.inl (Or.inl rfl)⟩⟩
exact not_preconnectedSpace_sum ((Homeomorph.preconnectedSpace_iff closureSplit).mp h)
On this site: The closure of the fourteen-set example is not connected
theorem not_totallyPathDisconnected_closure
TopologyByExample.ClosureComplementSubsets.not_totallyPathDisconnected_closure
The interval component contains a nonconstant path.
theorem not_totallyPathDisconnected_closure : ¬TotallyPathDisconnectedSpace ClosureSpace
Proof
:= by
intro h
have he := TotallyPathDisconnectedSpace.eq_of_joined _ _
((UnitInterval.joined 0 1).map continuous_closureInterval)
have := congrArg Subtype.val he
norm_num [closureInterval] at this
On this site: The closure of the fourteen-set example is not totally path disconnected
theorem cardinality_closure
TopologyByExample.ClosureComplementSubsets.cardinality_closure
The closure has continuum cardinality.
theorem cardinality_closure : CardinalityContinuum ClosureSpace
Proof
:= by
apply le_antisymm
· simpa only [Cardinal.mk_real] using Cardinal.mk_subtype_le (fun x : ℝ ↦ x ∈ closure original)
· have hi : Function.Injective closureInterval := fun _ _ h ↦
Subtype.ext (add_right_cancel (congrArg Subtype.val h))
simpa only [Cardinal.mk_unitInterval] using Cardinal.mk_le_of_injective hi
On this site: The closure of the fourteen-set example has cardinality equal to \(\mathfrak{c}\)