Lean library · module TopologyByExample.Theorems.ClosedDiscreteSubset

Closed discrete subsets of noncompact Lindelöf spaces

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 exists_infinite_closed_discrete_of_not_compact

TopologyByExample.exists_infinite_closed_discrete_of_not_compact

A noncompact Lindelöf T₁ space contains an infinite closed discrete subset.

theorem exists_infinite_closed_discrete_of_not_compact
    (X : Type*) [TopologicalSpace X] [T1Space X] [LindelofSpace X]
    (h : ¬ CompactSpace X) :
    ∃ D : Set X, D.Infinite ∧ IsClosed D ∧ IsDiscrete D
Proof
:= by
  have hn : ¬ IsCountablyCompact (Set.univ : Set X) := by
    intro hc
    exact h ⟨isLindelof_univ.isCompact hc⟩
  rw [isCountablyCompact_iff_infinite_subset_has_accPt] at hn
  push Not at hn
  obtain ⟨D, _, hD, ha⟩ := hn
  refine ⟨D, hD, ?_⟩
  apply compl_mem_codiscrete_iff.mp
  rw [mem_codiscrete_accPt]
  simpa using fun x => ha x (Set.mem_univ x)

theorem exists_countable_infinite_closed_discrete_containing

TopologyByExample.exists_countable_infinite_closed_discrete_containing

The closed discrete subset may be chosen countable and to contain a prescribed point.

theorem exists_countable_infinite_closed_discrete_containing
    {X : Type*} [TopologicalSpace X] [T1Space X] [LindelofSpace X]
    (h : ¬ CompactSpace X) (p : X) :
    ∃ A : Set X, p ∈ A ∧ A.Countable ∧ A.Infinite ∧ IsClosed A ∧ IsDiscrete A
Proof
:= by
  obtain ⟨D, hD, hc, hd⟩ := exists_infinite_closed_discrete_of_not_compact X h
  obtain ⟨E, hED, hEc, hEi⟩ := hD.exists_subset_countable_infinite
  have hEclosed := isClosed_of_subset_discrete_closed hED hd hc
  have hEdiscrete := hd.mono hED
  refine ⟨{p} ∪ E, by simp, (Set.countable_singleton p).union hEc,
    hEi.mono Set.subset_union_right, isClosed_singleton.union hEclosed, ?_⟩
  exact (Set.subsingleton_singleton.isDiscrete).union hEdiscrete
    isClosed_singleton hEclosed

theorem interior_eq_empty_of_isDiscrete

TopologyByExample.interior_eq_empty_of_isDiscrete

A discrete subset of a perfect space has empty interior.

theorem interior_eq_empty_of_isDiscrete
    {X : Type*} [TopologicalSpace X] [PerfectSpace X]
    {A : Set X} (hA : IsDiscrete A) : interior A = ∅
Proof
:= by
  apply Set.eq_empty_iff_forall_notMem.mpr
  intro x hx
  obtain ⟨U, hU, he⟩ := isDiscrete_iff_forall_mem_exists_isOpen.mp hA x
    (interior_subset hx)
  have he' : U ∩ interior A = {x} := by
    apply Set.Subset.antisymm
    · exact (Set.inter_subset_inter_right _ interior_subset).trans he.le
    · rw [Set.singleton_subset_iff]
      exact ⟨(he.ge (Set.mem_singleton x)).1, hx⟩
  exact not_isOpen_singleton x (he' ▸ hU.inter isOpen_interior)