Lean library · module TopologyByExample.Spaces.HewittBiconnected

Two strongly connected parts of Hewitt's condensed corkscrew

Source file

For the given enumeration of pairs, choose a partition of the component indices with connecting corkscrews of either colour available between every two points of that colour.

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 middle

TopologyByExample.HewittCondensedCorkscrew.middle

private noncomputable def middle (i : OmegaOne) : Space
:=
  ⟨i, 0, DeletedTychonoffPlank.mkCoe ⊥ (0 : ℕ)⟩

definition tags

TopologyByExample.HewittCondensedCorkscrew.tags

private noncomputable def tags (a j : OmegaOne) : Set OmegaOne
:=
  {j, link (pairs a).1 j, link (pairs a).2 j}

theorem tags_finite

TopologyByExample.HewittCondensedCorkscrew.tags_finite

private theorem tags_finite (a j : OmegaOne) : (tags a j).Finite
Proof
:= by simp [tags]

theorem fresh

TopologyByExample.HewittCondensedCorkscrew.fresh

private theorem fresh (a : OmegaOne) {D : Set OmegaOne} (hD : D.Countable) :
    ∃ j, Disjoint (tags a j) D
Proof
:= by
  let E := D ∪ link (pairs a).1 ⁻¹' D ∪ link (pairs a).2 ⁻¹' D
  have he : E.Countable := (hD.union (hD.preimage (link_injective _))).union
    (hD.preimage (link_injective _))
  obtain ⟨j, hj⟩ : Eᶜ.Nonempty := by
    by_contra h
    exact not_countable_univ ((compl_empty_iff.mp (not_nonempty_iff_eq_empty.mp h)) ▸ he)
  refine ⟨j, disjoint_left.mpr ?_⟩
  rintro _ (rfl | rfl | rfl) h
  exacts [hj (Or.inl (Or.inl h)), hj (Or.inl (Or.inr h)), hj (Or.inr h)]

theorem choose_stage

TopologyByExample.HewittCondensedCorkscrew.choose_stage

private theorem choose_stage (a : OmegaOne) (prev : ∀ b, b < a → Bool → OmegaOne) :
    ∃ f : Bool → OmegaOne, Disjoint (tags a (f false)) (tags a (f true)) ∧
      ∀ b (h : b < a) c d, Disjoint (tags a (f c)) (tags b (prev b h d))
Proof
:= by
  classical
  let D := ⋃ b : Iio a, ⋃ c : Bool, tags b.val (prev b.val b.property c)
  have : Countable (Iio a) := (OmegaOne.countable_Iio a).to_subtype
  have hD : D.Countable := countable_iUnion fun b ↦ countable_iUnion fun c ↦
    (tags_finite _ _).countable
  obtain ⟨u, hu⟩ := fresh a hD
  obtain ⟨v, hv⟩ := fresh a (hD.union (tags_finite a u).countable)
  let f : Bool → OmegaOne | false => u | true => v
  refine ⟨f, (hv.mono_right subset_union_right).symm, ?_⟩
  intro b hb c d
  have hs : tags b (prev b hb d) ⊆ D := fun z hz ↦ mem_iUnion₂.mpr ⟨⟨b,hb⟩,d,hz⟩
  cases c with
  | false => exact hu.mono_right hs
  | true => exact hv.mono_right (hs.trans subset_union_left)

definition choice

TopologyByExample.HewittCondensedCorkscrew.choice

private noncomputable def choice : OmegaOne → Bool → OmegaOne
:=
  wellFounded_lt.fix fun a prev ↦ (choose_stage a prev).choose

theorem choice_spec

TopologyByExample.HewittCondensedCorkscrew.choice_spec

private theorem choice_spec (a : OmegaOne) :
    Disjoint (tags a (choice a false)) (tags a (choice a true)) ∧
      ∀ b (_ : b < a) c d, Disjoint (tags a (choice a c)) (tags b (choice b d))
Proof
:= by
  have he : choice a = (choose_stage a (fun b _ ↦ choice b)).choose := by
    rw [choice, WellFounded.fix_eq]
  simpa only [he] using (choose_stage a (fun b _ ↦ choice b)).choose_spec

definition colours

TopologyByExample.HewittCondensedCorkscrew.colours

private noncomputable def colours : Bool → Set OmegaOne
  | true => ⋃ a, tags a (choice a true)
  | false => (⋃ a, tags a (choice a true))ᶜ

theorem tags_subset

TopologyByExample.HewittCondensedCorkscrew.tags_subset

private theorem tags_subset (a : OmegaOne) (c : Bool) : tags a (choice a c) ⊆ colours c
Proof
:= by
  cases c with
  | true => exact fun _ h ↦ mem_iUnion.mpr ⟨a,h⟩
  | false =>
    intro z hz h
    obtain ⟨b,hb⟩ := mem_iUnion.mp h
    rcases lt_trichotomy a b with hab | rfl | hba
    · exact disjoint_left.mp ((choice_spec b).2 a hab true false) hb hz
    · exact disjoint_left.mp (choice_spec a).1 hz hb
    · exact disjoint_left.mp ((choice_spec a).2 b hba false true) hz hb

definition sector

TopologyByExample.HewittCondensedCorkscrew.sector

private noncomputable def sector (c : Bool)
:= Space.index ⁻¹' colours c

theorem sector_strong

TopologyByExample.HewittCondensedCorkscrew.sector_strong

private theorem sector_strong (c : Bool) : StronglyConnectedSpace (sector c)
Proof
:= by
  refine ⟨fun f x y ↦ ?_⟩
  let a := pairs.symm (x.val, y.val)
  let j := choice a c
  have he : pairs a = (x.val,y.val) := pairs.apply_symm_apply _
  have hj : j ∈ colours c := tags_subset a c (Or.inl rfl)
  let z : sector c := ⟨middle j, hj⟩
  have join (u : sector c) (h : link u.val j ∈ colours c) : f u = f z := by
    let i := link u.val j
    have hi : pairs i = (u.val, middle j) := pairs.apply_symm_apply _
    have hm (t : TychonoffCorkscrew.Space) : copy i t ∈ sector c := by
      cases t with
      | neg => simpa only [copy, hi] using (show middle j ∈ sector c from hj)
      | pos => simpa only [copy, hi] using u.property
      | point k v => exact h
    let e (t : TychonoffCorkscrew.Space) : sector c := ⟨copy i t, hm t⟩
    have hc : Continuous e := (continuous_copy i).subtype_mk _
    have hh := TychonoffCorkscrew.ideal_values_eq (f.continuous.comp hc)
    have epos : e .pos = u := Subtype.ext (congrArg Prod.fst hi)
    have eneg : e .neg = z := Subtype.ext (congrArg Prod.snd hi)
    simpa only [Function.comp_apply, epos, eneg] using hh.symm
  apply (join x ?_).trans (join y ?_).symm
  · apply tags_subset a c
    exact Or.inr (Or.inl (by rw [he]))
  · apply tags_subset a c
    exact Or.inr (Or.inr (by change link y.val j = _; rw [he]))

theorem sector_not_subsingleton

TopologyByExample.HewittCondensedCorkscrew.sector_not_subsingleton

private theorem sector_not_subsingleton (c : Bool) : ¬(sector c).Subsingleton
Proof
:= by
  let j := choice ⊥ c
  have hj : j ∈ colours c := tags_subset ⊥ c (Or.inl rfl)
  let x := middle j
  let y : Space := ⟨j,1,x.coord⟩
  intro h
  exact (by norm_num : (0 : ℤ) ≠ 1) (congrArg Space.level (h (x := x) hj (y := y) hj))

theorem exists_partition_stronglyConnected

TopologyByExample.HewittCondensedCorkscrew.exists_partition_stronglyConnected

The component labels split into two parts whose spaces of ordinary points are both strongly connected and have at least two points.

theorem exists_partition_stronglyConnected :
    ∃ s : Set Space, StronglyConnectedSpace s ∧ StronglyConnectedSpace ↥(sᶜ) ∧
      ¬s.Subsingleton ∧ ¬sᶜ.Subsingleton
Proof
:=
  ⟨sector true, sector_strong true, sector_strong false,
    sector_not_subsingleton true, sector_not_subsingleton false⟩

On this site: Hewitt's condensed corkscrew: A partition into two strongly connected subspaces

theorem not_biconnectedSpace

TopologyByExample.HewittCondensedCorkscrew.not_biconnectedSpace

Hewitt's condensed corkscrew is not biconnected.

theorem not_biconnectedSpace : ¬BiconnectedSpace Space
Proof
:= by
  intro _
  obtain ⟨s, hs, ht, hns, hnt⟩ := exists_partition_stronglyConnected
  let _ := hs
  let _ := ht
  have hpre : IsPreconnected s := isPreconnected_iff_preconnectedSpace.mpr inferInstance
  have hpre' : IsPreconnected sᶜ := isPreconnected_iff_preconnectedSpace.mpr inferInstance
  exact (BiconnectedSpace.subsingleton_or_subsingleton hpre hpre' disjoint_compl_right).elim hns hnt

On this site: Hewitt's condensed corkscrew is not biconnected