Lean library · module TopologyByExample.Spaces.Gustin

Gustin's sequence space

Source file

Even finite words in positive integers form the primary points. An additional point for each positive integer and each unordered pair of distinct words links the two corresponding branches. The labels use the prime powers in Steen and Seebach's Example 125.

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 Word

TopologyByExample.Gustin.Word

The finite words of even length, including the empty word.

abbrev Word
:= {s : List ℕ+ // s.length % 2 = 0}

definition Pair

TopologyByExample.Gustin.Pair

An unordered pair of distinct primary words.

abbrev Pair
:= {w : Finset Word // w.card = 2}

definition root

TopologyByExample.Gustin.root

The empty word.

def root : Word
:= ⟨[], rfl⟩

definition grow

TopologyByExample.Gustin.grow

Append two letters to an even word.

def grow (s : Word) (a b : ℕ+) : Word
:=
  ⟨s.val ++ [a, b], by simp [List.length_append, s.property]⟩

definition big

TopologyByExample.Gustin.big

private def big (k : ℕ) : ℕ+
:= ⟨k + 1, by omega⟩

theorem grow_root_ne

TopologyByExample.Gustin.grow_root_ne

private theorem grow_root_ne (a b : ℕ+) : grow root a b ≠ root
Proof
:= by
  intro h
  have := congrArg Subtype.val h
  simp [grow, root] at this

definition pair

TopologyByExample.Gustin.pair

The unordered pair determined by two distinct words.

def pair (s t : Word) (h : s ≠ t) : Pair
:= ⟨{s, t}, by simp [h]⟩

instance

instance : Infinite Pair
Proof
:= by
  let f (n : ℕ) := pair (grow root (big n) 1) root (grow_root_ne _ _)
  apply Infinite.of_injective f
  intro m n h
  have hm : grow root (big m) 1 ∈ (f n).val := h ▸ Finset.mem_insert_self _ _
  simp only [f, pair, Finset.mem_insert, Finset.mem_singleton] at hm
  rcases hm with he | he
  · have := congrArg Subtype.val he
    have heq : big m = big n := (List.cons.inj this).1
    have hh := congrArg Subtype.val heq
    simpa [big] using hh
  · exact (grow_root_ne _ _ he).elim

definition prime

TopologyByExample.Gustin.prime

Fix a bijection from unordered pairs to the primes.

noncomputable def prime : Pair ≃ Nat.Primes
:= nonempty_equiv_of_countable.some

definition Index

TopologyByExample.Gustin.Index

Satellite indices use zero-based exponents: the represented positive exponent is n + 1.

abbrev Index
:= ℕ × Pair

definition label

TopologyByExample.Gustin.label

The prime-power label of a satellite point.

noncomputable def label (i : Index) : ℕ+
:=
  ⟨(prime i.2).val ^ (i.1 + 1), pow_pos (prime i.2).property.pos _⟩

theorem label_injective

TopologyByExample.Gustin.label_injective

theorem label_injective : Function.Injective label
Proof
:= by
  rintro ⟨n, s⟩ ⟨m, t⟩ he
  obtain ⟨hp, hn⟩ := (prime s).property.pow_inj (prime t).property (congrArg Subtype.val he)
  exact Prod.ext hn (prime.injective (Subtype.ext hp))

theorem le_label

TopologyByExample.Gustin.le_label

private theorem le_label (n : ℕ) (p : Pair) : n ≤ (label (n, p)).val
Proof
:= by
  exact (Nat.le_succ n).trans (Nat.lt_pow_self (n := n + 1) (prime p).property.one_lt).le

definition Gustin

TopologyByExample.Gustin

Gustin's sequence space, comprising word points and satellite points.

def Gustin
:= Sum Gustin.Word Gustin.Index

On this site: Space: Gustin's sequence space

definition word

TopologyByExample.Gustin.word

A point represented by a word.

abbrev word (s : Word) : Gustin
:= Sum.inl s

definition satellite

TopologyByExample.Gustin.satellite

A point represented by a positive exponent and an unordered pair of words.

abbrev satellite (i : Index) : Gustin
:= Sum.inr i

instance

instance : Countable Gustin
Proof
:= inferInstanceAs (Countable (Sum Word Index))

instance

instance : Nontrivial Gustin
Proof
:=
  ⟨⟨word (grow root 1 1), word root, fun h ↦ grow_root_ne _ _ (Sum.inl.inj h)⟩⟩

definition trunks

TopologyByExample.Gustin.trunks

The word at which each branch of a basic neighbourhood starts.

noncomputable def trunks : Gustin → Finset (List ℕ+)
  | .inl s => {s.val}
  | .inr i => i.2.val.image fun s ↦ s.val ++ [label i]

definition Extends

TopologyByExample.Gustin.Extends

Extension of a finite word by letters at least the given threshold.

def Extends (s : List ℕ+) (k : ℕ) (t : List ℕ+) : Prop
:=
  ∃ r : List ℕ+, t = s ++ r ∧ ∀ a ∈ r, k ≤ a.val

theorem extends_refl

TopologyByExample.Gustin.extends_refl

private theorem extends_refl (s : List ℕ+) (k : ℕ) : Extends s k s
Proof
:= ⟨[], by simp⟩

theorem mono

TopologyByExample.Gustin.Extends.mono

private theorem Extends.mono {s t : List ℕ+} {k l : ℕ} (h : Extends s l t) (hkl : k ≤ l) :
    Extends s k t
Proof
:= by
  obtain ⟨r, hr, h⟩ := h
  exact ⟨r, hr, fun a ha ↦ hkl.trans (h a ha)⟩

theorem trans

TopologyByExample.Gustin.Extends.trans

private theorem Extends.trans {s t u : List ℕ+} {k : ℕ}
    (h : Extends s k t) (h' : Extends t k u) : Extends s k u
Proof
:= by
  obtain ⟨r, rfl, hr⟩ := h
  obtain ⟨v, rfl, hv⟩ := h'
  exact ⟨r ++ v, List.append_assoc .., fun a ha ↦ (List.mem_append.mp ha).elim (hr a) (hv a)⟩

definition basic

TopologyByExample.Gustin.basic

A basic neighbourhood consists of all primary extensions of one of the trunks, together with the centre when it is a satellite.

noncomputable def basic (x : Gustin) (k : ℕ) : Set Gustin
Definition
:= {y |
  match (y : Sum Word Index) with
  | .inl s => ∃ t ∈ trunks x, Extends t k s.val
  | .inr i => satellite i = x}

theorem word_mem

TopologyByExample.Gustin.word_mem

private theorem word_mem {p : Gustin} {k : ℕ} {s : Word} :
    word s ∈ basic p k ↔ ∃ t ∈ trunks p, Extends t k s.val
Proof
:= Iff.rfl

theorem word_word

TopologyByExample.Gustin.word_word

private theorem word_word {s t : Word} {k : ℕ} :
    word t ∈ basic (word s) k ↔ Extends s.val k t.val
Proof
:= by simp [word_mem, trunks]

theorem mem_basic

TopologyByExample.Gustin.mem_basic

private theorem mem_basic (x : Gustin) (k : ℕ) : x ∈ basic x k
Proof
:= by
  cases x with
  | inl s => exact word_word.mpr (extends_refl ..)
  | inr i => rfl

theorem basic_anti

TopologyByExample.Gustin.basic_anti

private theorem basic_anti (x : Gustin) {k l : ℕ} (hkl : k ≤ l) : basic x l ⊆ basic x k
Proof
:= by
  rintro (s | i) h
  · obtain ⟨t, ht, he⟩ := word_mem.mp h
    exact word_mem.mpr ⟨t, ht, he.mono hkl⟩
  · exact h

instance

instance : TopologicalSpace Gustin
Proof
where
  IsOpen U := ∀ x ∈ U, ∃ k, basic x k ⊆ U
  isOpen_univ x _ := ⟨0, subset_univ _⟩
  isOpen_inter U V hu hv x hx := by
    obtain ⟨k, hk⟩ := hu x hx.1
    obtain ⟨l, hl⟩ := hv x hx.2
    exact ⟨max k l, fun y hy ↦ ⟨hk (basic_anti _ (le_max_left _ _) hy),
      hl (basic_anti _ (le_max_right _ _) hy)⟩⟩
  isOpen_sUnion T hT x := by
    rintro ⟨U, hu, hx⟩
    obtain ⟨k, hk⟩ := hT U hu x hx
    exact ⟨k, hk.trans (subset_sUnion_of_mem hu)⟩

theorem isOpen_basic

TopologyByExample.Gustin.isOpen_basic

The basic neighbourhoods are open.

theorem isOpen_basic (x : Gustin) (k : ℕ) : IsOpen (basic x k)
Proof
:= by
  rintro (s | i) h
  · obtain ⟨t, ht, he⟩ := word_mem.mp h
    refine ⟨k, ?_⟩
    rintro (u | j) hu
    · exact word_mem.mpr ⟨t, ht, he.trans (word_word.mp hu)⟩
    · cases (show satellite j = word s from hu)
  · exact ⟨k, (show satellite i = x from h) ▸ subset_rfl⟩

theorem nhds_basis

TopologyByExample.Gustin.nhds_basis

The thresholds give a countable neighbourhood base at every point.

theorem nhds_basis (x : Gustin) : (𝓝 x).HasBasis (fun _ : ℕ ↦ True) (basic x)
Proof
:= by
  refine ⟨fun V ↦ ⟨fun h ↦ ?_, fun ⟨k, _, hk⟩ ↦
    mem_of_superset ((isOpen_basic x k).mem_nhds (mem_basic x k)) hk⟩⟩
  obtain ⟨U, hUV, ho, hx⟩ := mem_nhds_iff.mp h
  obtain ⟨k, hk⟩ := ho x hx
  exact ⟨k, trivial, hk.trans hUV⟩

instance

instance : FirstCountableTopology Gustin
Proof
:= ⟨fun x ↦ (nhds_basis x).isCountablyGenerated⟩

theorem word_ne_trunk

TopologyByExample.Gustin.word_ne_trunk

private theorem word_ne_trunk (s t : Word) (a : ℕ+) : s.val ≠ t.val ++ [a]
Proof
:= by
  intro he
  have hl := congrArg List.length he
  simp only [List.length_append, List.length_singleton] at hl
  have hs := s.property
  have ht := t.property
  omega

theorem eq_of_trunk

TopologyByExample.Gustin.eq_of_trunk

private theorem eq_of_trunk {x y : Gustin} {t : List ℕ+} (hx : t ∈ trunks x) (hy : t ∈ trunks y) :
    x = y
Proof
:= by
  cases x with
  | inl s =>
    obtain rfl : t = s.val := Finset.mem_singleton.mp hx
    cases y with
    | inl u => exact congrArg word (Subtype.ext (Finset.mem_singleton.mp hy))
    | inr j =>
      obtain ⟨v, -, he⟩ := Finset.mem_image.mp hy
      exact (word_ne_trunk s v _ he.symm).elim
  | inr i =>
    obtain ⟨w, -, rfl⟩ := Finset.mem_image.mp hx
    cases y with
    | inl u =>
      exact (word_ne_trunk u w _ (Finset.mem_singleton.mp hy).symm).elim
    | inr j =>
      obtain ⟨v, -, he⟩ := Finset.mem_image.mp hy
      have hlast := congrArg List.getLast? he
      exact congrArg satellite (label_injective (by simpa using hlast.symm))

definition trunkBound

TopologyByExample.Gustin.trunkBound

private noncomputable def trunkBound (x : Gustin) : ℕ
:=
  (trunks x).sup fun t ↦ t.toFinset.sup (fun a ↦ a.val)

theorem le_trunkBound

TopologyByExample.Gustin.le_trunkBound

private theorem le_trunkBound {x : Gustin} {t : List ℕ+} (ht : t ∈ trunks x) {a : ℕ+}
    (ha : a ∈ t) : a.val ≤ trunkBound x
Proof
:=
  (Finset.le_sup (f := fun b : ℕ+ ↦ b.val) (List.mem_toFinset.mpr ha)).trans
    (Finset.le_sup (f := fun t : List ℕ+ ↦ t.toFinset.sup (fun b ↦ b.val)) ht)

theorem filter_extensions

TopologyByExample.Gustin.filter_extensions

private theorem filter_extensions {s t : List ℕ+} {k : ℕ} (h : Extends s k t)
    (hs : ∀ a ∈ s, a.val < k) : t.filter (fun a ↦ decide (a.val < k)) = s
Proof
:= by
  obtain ⟨r, rfl, hr⟩ := h
  rw [List.filter_append, List.filter_eq_self.mpr (fun a ha ↦ by simpa using hs a ha),
    List.filter_eq_nil_iff.mpr (fun a ha ↦ by simpa using (hr a ha).not_gt), List.append_nil]

instance

instance : T2Space Gustin
Proof
:= by
  refine ⟨fun x y hxy ↦ ?_⟩
  let k := max (trunkBound x) (trunkBound y) + 1
  refine ⟨basic x k, basic y k, isOpen_basic x k, isOpen_basic y k, mem_basic x k,
    mem_basic y k, disjoint_left.mpr ?_⟩
  rintro (w | i) hx hy
  · obtain ⟨s, hs, hws⟩ := word_mem.mp hx
    obtain ⟨t, ht, hwt⟩ := word_mem.mp hy
    have e₁ := filter_extensions hws (fun _ h ↦
      Nat.lt_succ_of_le ((le_trunkBound hs h).trans (le_max_left _ _)))
    have e₂ := filter_extensions hwt (fun _ h ↦
      Nat.lt_succ_of_le ((le_trunkBound ht h).trans (le_max_right _ _)))
    exact hxy (eq_of_trunk hs ((e₁.symm.trans e₂) ▸ ht))
  · exact hxy ((show satellite i = x from hx).symm.trans hy)

theorem grow_mem

TopologyByExample.Gustin.grow_mem

private theorem grow_mem {s : Word} {a b : ℕ+} {k : ℕ} (ha : k ≤ a.val) (hb : k ≤ b.val) :
    word (grow s a b) ∈ basic (word s) k
Proof
:= by
  apply word_word.mpr
  exact ⟨[a, b], rfl, by simpa using And.intro ha hb⟩

theorem grow_mem_satellite

TopologyByExample.Gustin.grow_mem_satellite

private theorem grow_mem_satellite {s : Word} {i : Index} (hs : s ∈ i.2.val)
    {a : ℕ+} {k : ℕ} (ha : k ≤ a.val) : word (grow s (label i) a) ∈ basic (satellite i) k
Proof
:= by
  apply word_mem.mpr
  exact ⟨_, Finset.mem_image_of_mem _ hs, [a], by simp [grow, List.append_assoc], by simpa⟩

theorem satellite_mem_closure

TopologyByExample.Gustin.satellite_mem_closure

private theorem satellite_mem_closure {s : Word} {i : Index} {k : ℕ}
    (hs : s ∈ i.2.val) (hi : k ≤ (label i).val) : satellite i ∈ closure (basic (word s) k)
Proof
:= by
  refine (mem_closure_iff_nhds_basis (nhds_basis _)).mpr fun j _ ↦ ?_
  let a := big (max k j)
  have ha : max k j ≤ a.val := Nat.le_succ _
  exact ⟨word (grow s (label i) a), grow_mem hi ((le_max_left _ _).trans ha),
    grow_mem_satellite hs ((le_max_right _ _).trans ha)⟩

theorem exists_word

TopologyByExample.Gustin.exists_word

private theorem exists_word {U : Set Gustin} (ho : IsOpen U) (hne : U.Nonempty) :
    ∃ s : Word, word s ∈ U
Proof
:= by
  obtain ⟨x, hx⟩ := hne
  cases x with
  | inl s => exact ⟨s, hx⟩
  | inr i =>
    obtain ⟨k, hk⟩ := ho _ hx
    obtain ⟨s, hs⟩ := Finset.card_pos.mp (i.2.property ▸ (by decide : 0 < 2))
    exact ⟨_, hk (grow_mem_satellite (a := big k) hs (Nat.le_succ k))⟩

definition region

TopologyByExample.Gustin.region

A region consists of the specified word points and every satellite whose endpoints both belong to those words.

def region (S : Set Word) : Set Gustin
Definition
:= {x |
  match (x : Sum Word Index) with
  | .inl s => s ∈ S
  | .inr i => ∀ w ∈ i.2.val, w ∈ S}

theorem closures_meet_in_region

TopologyByExample.Gustin.closures_meet_in_region

private theorem closures_meet_in_region {S : Set Word} {U V : Set Gustin}
    (hu : IsOpen U) (hv : IsOpen V) (hU : U.Nonempty) (hV : V.Nonempty)
    (hUS : U ⊆ region S) (hVS : V ⊆ region S) :
    ∃ z ∈ region S, z ∈ closure U ∩ closure V
Proof
:= by
  obtain ⟨s, hs⟩ := exists_word hu hU
  obtain ⟨t, ht⟩ := exists_word hv hV
  by_cases he : s = t
  · subst t
    exact ⟨_, hUS hs, subset_closure hs, subset_closure ht⟩
  let w := pair s t he
  obtain ⟨k, hk⟩ := hu _ hs
  obtain ⟨l, hl⟩ := hv _ ht
  let i : Index := (max k l, w)
  have hws : s ∈ i.2.val := Finset.mem_insert_self _ _
  have hwt : t ∈ i.2.val := Finset.mem_insert_of_mem (Finset.mem_singleton_self _)
  have hR : satellite i ∈ region S := by
    intro r hr
    rcases (show r = s ∨ r = t by simpa [i, w, pair] using hr) with rfl | rfl
    · exact hUS hs
    · exact hVS ht
  exact ⟨_, hR, closure_mono hk (satellite_mem_closure hws ((le_max_left _ _).trans
    (le_label _ _))), closure_mono hl (satellite_mem_closure hwt ((le_max_right _ _).trans
    (le_label _ _)))⟩

theorem closure_inter_closure_nonempty

TopologyByExample.Gustin.closure_inter_closure_nonempty

The closures of any two nonempty opens intersect.

theorem closure_inter_closure_nonempty (U V : Set Gustin) (hu : IsOpen U) (hv : IsOpen V)
    (hU : U.Nonempty) (hV : V.Nonempty) : (closure U ∩ closure V).Nonempty
Proof
:= by
  have h : region univ = univ := eq_univ_of_forall fun x ↦ by
    cases x with
    | inl _ => trivial
    | inr _ => exact fun _ _ ↦ trivial
  obtain ⟨z, -, hz⟩ := closures_meet_in_region hu hv hU hV (h ▸ subset_univ U) (h ▸ subset_univ V)
  exact ⟨z, hz⟩

On this site: Gustin's sequence space: The closures of nonempty open sets meet

instance

instance : PreconnectedSpace Gustin
Proof
:=
  preconnectedSpace_of_closure_inter_closure closure_inter_closure_nonempty

theorem not_hasIsolatedPoint

TopologyByExample.Gustin.not_hasIsolatedPoint

No point is isolated, since the space is nontrivial, connected and T₁.

theorem not_hasIsolatedPoint : ¬ HasIsolatedPoint Gustin
Proof
:= by
  rintro ⟨x, hx⟩
  exact (preconnectedSpace_iff_clopen.mp inferInstance {x} ⟨isClosed_singleton, hx⟩).elim
    (singleton_nonempty x).ne_empty (singleton_ne_univ x)

On this site: Gustin's sequence space has no isolated point

theorem not_t25

TopologyByExample.Gustin.not_t25

Distinct points cannot have neighbourhoods with disjoint closures.

theorem not_t25 : ¬ T25Space Gustin
Proof
:= by
  intro h
  have hs := (preconnectedSpace_and_not_t25_of_closure_inter_closure
    closure_inter_closure_nonempty).2.2 h
  exact (not_nontrivial_iff_subsingleton.mpr hs) inferInstance

On this site: Gustin's sequence space is not Urysohn

theorem isPreconnected_region

TopologyByExample.Gustin.isPreconnected_region

private theorem isPreconnected_region {S : Set Word} (ho : IsOpen (region S)) :
    IsPreconnected (region S)
Proof
:= by
  apply isPreconnected_iff_preconnectedSpace.mpr
  apply preconnectedSpace_of_closure_inter_closure
  intro U V hu hv hU hV
  have hom := ho.isOpenEmbedding_subtypeVal.isOpenMap
  obtain ⟨z, hz, hzu, hzv⟩ := closures_meet_in_region (hom _ hu) (hom _ hv)
    (hU.image Subtype.val) (hV.image Subtype.val) (Subtype.coe_image_subset _ _)
    (Subtype.coe_image_subset _ _)
  exact ⟨⟨z, hz⟩, by simpa [closure_subtype] using hzu, by simpa [closure_subtype] using hzv⟩

definition starts

TopologyByExample.Gustin.starts

private def starts (a : ℕ+) : Set Word
:= {s | ∃ r, s.val = a :: r}

theorem isOpen_region_starts

TopologyByExample.Gustin.isOpen_region_starts

private theorem isOpen_region_starts (a : ℕ+) : IsOpen (region (starts a))
Proof
:= by
  rintro (s | i) h
  · obtain ⟨r, hr⟩ := h
    refine ⟨0, ?_⟩
    rintro (t | j) ht
    · obtain ⟨u, hu, -⟩ := word_word.mp ht
      exact ⟨r ++ u, by rw [hu, hr, List.cons_append]⟩
    · cases (show satellite j = word s from ht)
  · refine ⟨0, ?_⟩
    rintro (t | j) ht
    · obtain ⟨_, htr, u, hu, -⟩ := word_mem.mp ht
      obtain ⟨v, hv, rfl⟩ := Finset.mem_image.mp htr
      obtain ⟨r, hr⟩ := h v hv
      exact ⟨r ++ [label i] ++ u, by simp [hu, hr]⟩
    · rw [show j = i from Sum.inr.inj ht]
      exact h

theorem region_starts_not_subsingleton

TopologyByExample.Gustin.region_starts_not_subsingleton

private theorem region_starts_not_subsingleton (a : ℕ+) : ¬ (region (starts a)).Subsingleton
Proof
:= by
  intro h
  have hx : word (grow root a 1) ∈ region (starts a) := ⟨_, rfl⟩
  have hy : word (grow root a 2) ∈ region (starts a) := ⟨_, rfl⟩
  have he := congrArg Subtype.val (Sum.inl.inj (h hx hy))
  have h' : (1 : ℕ+) = 2 := (List.cons.inj (List.cons.inj he).2).1
  exact (by decide : (1 : ℕ+) ≠ 2) h'

theorem not_biconnected

TopologyByExample.Gustin.not_biconnected

The regions with first letters 1 and 2 are disjoint nondegenerate connected sets.

theorem not_biconnected : ¬ BiconnectedSpace Gustin
Proof
:= by
  intro _
  have hd : Disjoint (region (starts 1)) (region (starts 2)) := by
    have disj {s : Word} (h : s ∈ starts 1) (h' : s ∈ starts 2) : False := by
      obtain ⟨_, hr⟩ := h
      obtain ⟨_, ht⟩ := h'
      exact (by decide : (1 : ℕ+) ≠ 2) (List.cons.inj (hr.symm.trans ht)).1
    apply disjoint_left.mpr
    rintro (s | i) hx hy
    · exact disj hx hy
    · obtain ⟨s, hs⟩ := Finset.card_pos.mp (i.2.property ▸ (by decide : 0 < 2))
      exact disj (hx s hs) (hy s hs)
  exact (BiconnectedSpace.subsingleton_or_subsingleton
    (isPreconnected_region (isOpen_region_starts 1))
    (isPreconnected_region (isOpen_region_starts 2)) hd).elim
    (region_starts_not_subsingleton 1) (region_starts_not_subsingleton 2)

On this site: Gustin's sequence space is not biconnected

theorem isOpen_words

TopologyByExample.Gustin.isOpen_words

private theorem isOpen_words {S : Set Word}
    (hS : ∀ s ∈ S, ∃ k, ∀ t : Word, Extends s.val k t.val → t ∈ S) : IsOpen (word '' S)
Proof
:= by
  rintro _ ⟨s, hs, rfl⟩
  obtain ⟨k, hk⟩ := hS s hs
  refine ⟨k, ?_⟩
  rintro (t | i) ht
  · exact ⟨t, hk t (word_word.mp ht), rfl⟩
  · cases (show satellite i = word s from ht)

theorem open_primary

TopologyByExample.Gustin.open_primary

private theorem open_primary : IsOpen (range word)
Proof
:= by
  rw [← image_univ]
  exact isOpen_words (fun _ _ ↦ ⟨0, fun _ _ ↦ trivial⟩)

theorem root_mem

TopologyByExample.Gustin.root_mem

private theorem root_mem : word root ∈ range word
Proof
:= mem_range_self root

theorem not_locallyConnected

TopologyByExample.Gustin.not_locallyConnected

No connected open neighbourhood of the empty word fits inside the open primary part.

theorem not_locallyConnected : ¬ LocallyConnectedSpace Gustin
Proof
:= by
  intro hlc
  obtain ⟨V, hVsub, hVopen, hVroot, hVconn⟩ :=
    (locallyConnectedSpace_iff_subsets_isOpen_isConnected.mp hlc) (word root) (range word)
      (open_primary.mem_nhds root_mem)
  obtain ⟨k, hk⟩ := hVopen _ hVroot
  let a := big k
  let S : Set Word := {s | a ∈ s.val}
  have ho : IsOpen (word '' S) := isOpen_words fun s hs ↦ ⟨0, by
    rintro t ⟨r, hr, -⟩
    change a ∈ t.val
    rw [hr]
    exact List.mem_append_left r hs⟩
  have hc : IsOpen (word '' Sᶜ) := isOpen_words fun s hs ↦ ⟨a.val + 1, by
    rintro t ⟨r, hr, hb⟩ h
    exact (List.mem_append.mp (hr ▸ (show a ∈ t.val from h))).elim hs
      (fun ha ↦ (Nat.lt_succ_self _).not_ge (hb a ha))⟩
  have hsub : V ⊆ word '' S ∪ word '' Sᶜ := by
    intro x hx
    obtain ⟨s, rfl⟩ := hVsub hx
    by_cases hs : s ∈ S
    · exact Or.inl ⟨_, hs, rfl⟩
    · exact Or.inr ⟨_, hs, rfl⟩
  have hwa : word (grow root a a) ∈ V := hk (grow_mem (a := a) (b := a)
    (Nat.le_succ _) (Nat.le_succ _))
  obtain ⟨_, -, ⟨s, hs, rfl⟩, t, ht, he⟩ := hVconn.isPreconnected _ _ ho hc hsub
    ⟨_, hwa, _, by simp [S, grow, root], rfl⟩ ⟨_, hVroot, _, by simp [S, root], rfl⟩
  exact ht (Sum.inl.inj he ▸ hs)

On this site: Gustin's sequence space is not locally connected

theorem not_semiregular

TopologyByExample.Gustin.not_semiregular

The interior of the closure of any neighbourhood of the empty word contains a satellite.

theorem not_semiregular : ¬ SemiregularSpace Gustin
Proof
:= by
  intro h
  obtain ⟨U, hreg, hroot, hU⟩ :=
    h.isTopologicalBasis.exists_subset_of_mem_open root_mem open_primary
  obtain ⟨k, hk⟩ := h.isTopologicalBasis.isOpen hreg (word root) hroot
  let a := big k
  let t := grow root a a
  let p := pair t root (grow_root_ne a a)
  let i : Index := (k, p)
  have hi : k ≤ (label i).val := le_label k p
  have hs : root ∈ i.2.val := Finset.mem_insert_of_mem (Finset.mem_singleton_self _)
  have hinc : basic (satellite i) k ⊆ closure U := by
    rintro (w | j) hw
    · obtain ⟨_, htr, r, hr, hb⟩ := word_mem.mp hw
      obtain ⟨s, hsp, rfl⟩ := Finset.mem_image.mp htr
      have hsw : Extends s.val k w.val := by
        refine ⟨label i :: r, by simpa [List.append_assoc] using hr, ?_⟩
        intro b hmem
        rcases List.mem_cons.mp hmem with rfl | hmem
        · exact hi
        · exact hb b hmem
      have hsm : word s ∈ basic (word root) k := by
        rcases (show s = t ∨ s = root by simpa [i, p, pair] using hsp) with rfl | rfl
        · exact grow_mem (a := a) (b := a) (Nat.le_succ _) (Nat.le_succ _)
        · exact mem_basic _ _
      exact subset_closure (hk (word_word.mpr ((word_word.mp hsm).trans hsw)))
    · rw [show j = i from Sum.inr.inj hw]
      exact closure_mono hk (satellite_mem_closure hs hi)
  have hmem := mem_interior_iff_mem_nhds.mpr
    ((nhds_basis _).mem_of_superset (i := k) trivial hinc)
  have hsat : satellite i ∈ U := (show interior (closure U) = U from hreg) ▸ hmem
  obtain ⟨s, he⟩ := hU hsat
  cases he

On this site: Gustin's sequence space is not semiregular