Lean library · module TopologyByExample.Spaces.LambdaLocalConnectedness

Λ is not locally connected

Source file

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

theorem not_locallyConnectedSpace

TopologyByExample.GillmanJerisonLambda.not_locallyConnectedSpace

Λ is not locally connected: a retained half-integer remainder point has no connected neighbourhood avoiding the integer hull.

theorem not_locallyConnectedSpace : ¬LocallyConnectedSpace GillmanJerisonLambda
Proof
:= by
  intro hlocal
  let A : Set ℝ := (fun x : ℝ ↦ x - 1 / 2) ⁻¹' range (Int.cast : ℤ → ℝ)
  let B : Set ℝ := range (Int.cast : ℤ → ℝ)
  have hA : IsClosed A := Int.isClosedEmbedding_coe_real.isClosed_range.preimage
    (continuous_id.sub continuous_const)
  have hB : IsClosed B := Int.isClosedEmbedding_coe_real.isClosed_range
  have hd : Disjoint A B := by
    apply disjoint_left.2
    rintro x ⟨z, hz⟩ ⟨k, rfl⟩
    have he : (2 : ℝ) * (k : ℝ) - 2 * (z : ℝ) = 1 := by linarith
    have hi : (2 : ℤ) * k - 2 * z = 1 := by exact_mod_cast he
    omega
  have hu : ¬BddAbove (abs '' A) := by
    rintro ⟨M, hM⟩
    obtain ⟨n, hn⟩ := exists_nat_gt M
    have ha : (n : ℝ) + 1 / 2 ∈ A := by
      exact ⟨(n : ℤ), by push_cast; ring⟩
    have hh := hM ⟨(n : ℝ) + 1 / 2, ha, rfl⟩
    have hab := le_abs_self ((n : ℝ) + 1 / 2)
    linarith
  obtain ⟨p, hpA, hpnon⟩ := exists_nonreal_hull_point hA hu
  have hdn : Disjoint A (range (Nat.cast : ℕ → ℝ)) := hd.mono_right (by
    rintro x ⟨n, rfl⟩
    exact ⟨(n : ℤ), by simp⟩)
  obtain ⟨q, hq⟩ := hull_subset_range_inclusion hA hdn hpA
  have hpB : p ∉ closure (stoneCechUnit '' B) :=
    fun hb ↦ disjoint_left.1 (disjoint_stoneCech_hulls hA hB hd) hpA hb
  let W := inclusion ⁻¹' (closure (stoneCechUnit '' B))ᶜ
  have hW : IsOpen W := isClosed_closure.isOpen_compl.preimage isEmbedding_inclusion.continuous
  have hqW : q ∈ W := by change inclusion q ∉ _; rwa [hq]
  obtain ⟨V, hVU, hVo, hqV, hVc⟩ :=
    locallyConnectedSpace_iff_subsets_isOpen_isConnected.1 hlocal q W (hW.mem_nhds hqW)
  obtain ⟨_, hxV, x, rfl⟩ := denseRange_real.inter_open_nonempty V hVo ⟨q, hqV⟩
  have havoid (z : ℤ) : real (z : ℝ) ∉ V := by
    intro hz
    exact hVU hz (subset_closure ⟨(z : ℝ), mem_range_self z, rfl⟩)
  have hlt : (⌊x⌋ : ℝ) < x := lt_of_le_of_ne (Int.floor_le x) (by
    intro he
    apply havoid ⌊x⌋
    rw [he]
    exact hxV)
  have hsub := connected_subset_real_interval hVc.isPreconnected hlt (Int.lt_floor_add_one x)
    hxV (havoid ⌊x⌋) (show real ((⌊x⌋ : ℝ) + 1) ∉ V by
      simpa using havoid (⌊x⌋ + 1))
  obtain ⟨y, _, hy⟩ := hsub hqV
  apply hpnon
  refine ⟨y, ?_⟩
  exact (congrArg inclusion hy).trans hq

On this site: Gillman–Jerison’s Λ is not locally connected