Lean library · module TopologyByExample.Spaces.HewittCompactSets

Compact sets in Hewitt's condensed corkscrew

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 isClosed_of_injOn_index

TopologyByExample.HewittCondensedCorkscrew.isClosed_of_injOn_index

A set meeting each original corkscrew in at most one ordinary point is closed.

theorem isClosed_of_injOn_index {s : Set Space} (h : s.InjOn Space.index) : IsClosed s
Proof
:= by
  apply isClosed_iff.mpr
  intro i
  let A := s ∩ Space.index ⁻¹' {i}
  have hA : A.Subsingleton := fun _ hx _ hy ↦ h hx.1 hy.1 (hx.2.trans hy.2.symm)
  apply Set.Finite.isClosed
  apply (((hA.finite.image ordinary).insert DoubleJones.Space.neg).insert .pos).subset
  rintro (_ | _ | ⟨k,y⟩) ht
  · simp
  · simp
  · exact Or.inr (Or.inr ⟨⟨i,k,y⟩, ⟨ht, rfl⟩, rfl⟩)

theorem finite_indices_of_isCompact

TopologyByExample.HewittCondensedCorkscrew.finite_indices_of_isCompact

A compact set meets only finitely many of the original ordinary parts.

theorem finite_indices_of_isCompact {K : Set Space} (hK : IsCompact K) :
    (Space.index '' K).Finite
Proof
:= by
  classical
  let I := Space.index '' K
  choose f hKf hf using fun i : I ↦ i.property
  have hi : (range f).InjOn Space.index := by
    rintro _ ⟨i,rfl⟩ _ ⟨j,rfl⟩ he
    exact congrArg f (Subtype.ext ((hf i).symm.trans (he.trans (hf j))))
  have hc := isClosed_of_injOn_index hi
  have hd : IsDiscrete (range f) := isDiscrete_iff_forall_mem_exists_isClosed.mpr
    fun s hs ↦ ⟨s, isClosed_of_injOn_index (hi.mono hs), inter_eq_left.mpr hs⟩
  have hfin := (hK.of_isClosed_subset hc (range_subset_iff.mpr hKf)).finite hd
  apply (hfin.image Space.index).subset
  intro i hi
  exact ⟨f ⟨i,hi⟩, mem_range_self _, hf _⟩

theorem isolate_in_copy

TopologyByExample.HewittCondensedCorkscrew.isolate_in_copy

private theorem isolate_in_copy (i : OmegaOne) {s : Set Space} (hs : s.Nonempty)
    (hsi : s ⊆ range (copy i)) :
    ∃ x ∈ s, ∃ U ∈ 𝓝 x, U ∩ s ⊆ {x}
Proof
:= by
  classical
  let E : Set Space := {copy i .neg, copy i .pos}
  have he : E.Finite := by simp [E]
  by_cases h : s ⊆ E
  · obtain ⟨x, hx⟩ := hs
    obtain ⟨U, hU, hu⟩ := isDiscrete_iff_forall_mem_exists_isOpen.mp
      (he.subset h).isDiscrete x hx
    exact ⟨x, hx, U, hU.mem_nhds (hu ▸ (mem_singleton x) : x ∈ U ∩ s).1, hu.subset⟩
  obtain ⟨p, hp⟩ := sdiff_nonempty.mpr h
  obtain ⟨t, rfl⟩ := hsi hp.1
  let _ := TychonoffCorkscrew.scatteredSpace
  obtain ⟨z, hz, W, hW, hw⟩ := ScatteredSpace.exists_isolated
    (s := copy i ⁻¹' (s \ E)) ⟨t, hp⟩
  obtain ⟨V, hVW, hV, hzV⟩ := mem_nhds_iff.mp hW
  let O := kernImage (copy i) V
  have hO : IsOpen O := isClosedMap_iff_kernImage.mp (isClosedMap_copy i) hV
  have hzo : copy i z ∈ O := by
    intro w hh
    cases w with
    | neg => exact (hz.2 (Or.inl hh.symm)).elim
    | pos => exact (hz.2 (Or.inr hh.symm)).elim
    | point k y =>
      cases z with
      | neg => exact (hz.2 (Or.inl rfl)).elim
      | pos => exact (hz.2 (Or.inr rfl)).elim
      | point l t =>
        have he : (DoubleJones.Space.point k y : TychonoffCorkscrew.Space) = .point l t :=
          congrArg ordinary hh
        exact he.symm ▸ hzV
  refine ⟨copy i z, hz.1, O ∩ Eᶜ, (hO.inter he.isClosed.isOpen_compl).mem_nhds ⟨hzo, hz.2⟩, ?_⟩
  rintro a ⟨⟨ha, hne⟩, has⟩
  obtain ⟨w, rfl⟩ := hsi has
  exact congrArg (copy i) (hw ⟨hVW (ha rfl), has, hne⟩)

theorem isolate_in_finite_copies

TopologyByExample.HewittCondensedCorkscrew.isolate_in_finite_copies

private theorem isolate_in_finite_copies (F : Finset OmegaOne) {s : Set Space}
    (hs : s.Nonempty) (hsub : s ⊆ ⋃ i ∈ F, range (copy i)) :
    ∃ x ∈ s, ∃ U ∈ 𝓝 x, U ∩ s ⊆ {x}
Proof
:= by
  classical
  induction F using Finset.induction_on generalizing s with
  | empty => exact (hs.ne_empty (by simpa using hsub)).elim
  | insert i F _ ih =>
    by_cases h : s ⊆ range (copy i)
    · exact isolate_in_copy i hs h
    have hsub' : s \ range (copy i) ⊆ ⋃ j ∈ F, range (copy j) := by
      intro y hy
      obtain ⟨j,hj,hg⟩ := mem_iUnion₂.mp (hsub hy.1)
      rcases Finset.mem_insert.mp hj with rfl | hj
      · exact (hy.2 hg).elim
      · exact mem_iUnion₂.mpr ⟨j,hj,hg⟩
    obtain ⟨x,hx,U,hu,hsU⟩ := ih (sdiff_nonempty.mpr h) hsub'
    refine ⟨x, hx.1, U ∩ (range (copy i))ᶜ, inter_mem hu
      ((isClosedMap_copy i).isClosed_range.isOpen_compl.mem_nhds hx.2), ?_⟩
    exact fun _ hz ↦ hsU ⟨hz.1.1, hz.2, hz.1.2⟩

theorem scatteredSpace_of_isCompact

TopologyByExample.HewittCondensedCorkscrew.scatteredSpace_of_isCompact

Every compact subspace of the condensed corkscrew is scattered.

theorem scatteredSpace_of_isCompact {K : Set Space} (hK : IsCompact K) : ScatteredSpace K
Proof
:= by
  classical
  let F := (finite_indices_of_isCompact hK).toFinset
  refine scatteredSpace_iff_exists_isolated.mpr fun s hs ↦ ?_
  have hsub : ((↑) : K → Space) '' s ⊆ ⋃ i ∈ F, range (copy i) := by
    rintro _ ⟨a, _, rfl⟩
    exact mem_iUnion₂.mpr ⟨a.val.index,
      (by simpa [F] using mem_image_of_mem Space.index a.property),
      ordinary a.val, rfl⟩
  obtain ⟨_, ⟨a, ha, rfl⟩, U, hu, hUs⟩ := isolate_in_finite_copies F (hs.image _) hsub
  exact ⟨a, ha, Subtype.val ⁻¹' U, continuous_subtypeVal.continuousAt.preimage_mem_nhds hu,
    fun b hb ↦ Subtype.ext (hUs ⟨hb.1, mem_image_of_mem _ hb.2⟩)⟩

On this site: Hewitt's condensed corkscrew: Compact subspaces are scattered

theorem totallyPathDisconnectedSpace

TopologyByExample.HewittCondensedCorkscrew.totallyPathDisconnectedSpace

Every path in the condensed corkscrew is constant.

theorem totallyPathDisconnectedSpace : TotallyPathDisconnectedSpace Space
Proof
:= by
  refine ⟨fun x y ⟨p⟩ ↦ ?_⟩
  let K := range p
  let _ := scatteredSpace_of_isCompact (isCompact_range p.continuous)
  let q (t : unitInterval) : K := ⟨p t, mem_range_self t⟩
  have hq : Continuous q := p.continuous.subtype_mk _
  have hs := (isPreconnected_range hq).subsingleton
  have he := congrArg Subtype.val (hs (mem_range_self (f := q) 0) (mem_range_self (f := q) 1))
  simpa [q] using he

On this site: Hewitt's condensed corkscrew is totally path disconnected