Lean library · module TopologyByExample.Spaces.ClosureComplementComplement
Failure of local connectedness in the complementary 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 zeroComplement
TopologyByExample.ClosureComplementSubsets.zeroComplement
Zero belongs to the complement of the original subset.
def zeroComplement : ComplementSpace
:=
⟨0, fun h ↦ lt_irrefl _ (positive_of_mem_original h)⟩
theorem nonempty_complement
TopologyByExample.ClosureComplementSubsets.nonempty_complement
The complementary set is nonempty.
theorem nonempty_complement : Nonempty ComplementSpace
Proof
:= ⟨zeroComplement⟩
definition gapMidpoint
TopologyByExample.ClosureComplementSubsets.gapMidpoint
A positive midpoint in each reciprocal gap, regarded as a point of the complement.
def gapMidpoint (n : ℕ) : ComplementSpace
Definition
:=
⟨(reciprocal (n + 1) + reciprocal n) / 2, by
have hlt := reciprocal_strictAnti (Nat.lt_succ_self n)
have hg : (reciprocal (n + 1) + reciprocal n) / 2 ∈ gap n := by
constructor <;> linarith
exact fun h ↦ gap_subset_complement n hg (subset_closure h)⟩
theorem tendsto_gapMidpoint
TopologyByExample.ClosureComplementSubsets.tendsto_gapMidpoint
The positive complementary points converge to zero.
theorem tendsto_gapMidpoint : Tendsto gapMidpoint atTop (𝓝 zeroComplement)
Proof
:= by
apply tendsto_subtype_rng.mpr
have ht : Tendsto reciprocal atTop (𝓝 (0 : ℝ)) :=
tendsto_one_div_add_atTop_nhds_zero_nat
simpa only [gapMidpoint, zeroComplement, Function.comp_def, zero_add, zero_div] using
((ht.comp (tendsto_add_atTop_nat 1)).add ht).div_const 2
theorem component_zero_nonpos
TopologyByExample.ClosureComplementSubsets.component_zero_nonpos
No positive point is in the connected component of zero in the complement.
theorem component_zero_nonpos {x : ComplementSpace} (hx : x ∈ connectedComponent zeroComplement) :
x.val ≤ 0
Proof
:= by
by_contra hn
have hp : 0 < x.val := lt_of_not_ge hn
have ht : Tendsto reciprocal atTop (𝓝 (0 : ℝ)) :=
tendsto_one_div_add_atTop_nhds_zero_nat
obtain ⟨n, hlt⟩ := ((tendsto_order.mp ht).2 x.val hp).exists
have hc : IsPreconnected (Subtype.val '' connectedComponent zeroComplement : Set ℝ) :=
isPreconnected_connectedComponent.image _ continuous_subtypeVal.continuousOn
have hz : (0 : ℝ) ∈ Subtype.val '' connectedComponent zeroComplement :=
⟨zeroComplement, mem_connectedComponent, rfl⟩
have hx' : x.val ∈ Subtype.val '' connectedComponent zeroComplement := ⟨x, hx, rfl⟩
have hpos : 0 < reciprocal n := by unfold reciprocal; positivity
obtain ⟨y, _, hy⟩ := hc.ordConnected.out hz hx' ⟨hpos.le, hlt.le⟩
apply y.property
rw [hy]
exact Or.inl (Or.inl (Or.inl ⟨n, rfl⟩))
theorem not_locallyConnected_complement
TopologyByExample.ClosureComplementSubsets.not_locallyConnected_complement
The connected component of zero is not open, so the complement is not locally connected.
theorem not_locallyConnected_complement : ¬LocallyConnectedSpace ComplementSpace
Proof
:= by
intro h
have he : ∀ᶠ n in atTop, gapMidpoint n ∈ connectedComponent zeroComplement :=
tendsto_gapMidpoint.eventually (isOpen_connectedComponent.mem_nhds mem_connectedComponent)
obtain ⟨n, hn⟩ := he.exists
have hle := component_zero_nonpos hn
change (reciprocal (n + 1) + reciprocal n) / 2 ≤ 0 at hle
have hpos : 0 < (reciprocal (n + 1) + reciprocal n) / 2 := by
unfold reciprocal
positivity
exact (not_lt_of_ge hle) hpos
On this site: The complement of the fourteen-set example is not locally connected