Lean library · module TopologyByExample.Theorems.Towers

Almost inclusion and towers

Source file

A set s is almost contained in a set t, written s ⊆* t, if s \ t is finite. A pseudo-intersection of a family of sets is a set almost contained in each member of the family.

A tower (on ℕ) is a family T : ι → Set ℕ of infinite sets, indexed by a preorder, which is strictly almost decreasing (for i ≤ j we have T j ⊆* T i, and for i < j the difference T i \ T j is infinite) and has no infinite pseudo-intersection. Indexed by a well order, these are exactly the towers of the set-theoretic literature, which are sets of infinite subsets of ℕ well ordered by reverse almost inclusion with no infinite pseudo-intersection; there, distinct members are never equal modulo finite sets, which is our strictness condition.

Main definitions

  • TopologyByExample.AlmostSubset s t, notation s ⊆* t (scoped in TopologyByExample): s \ t is finite.
  • TopologyByExample.IsTower T: T is a tower.

Main statements

References

  • E. K. van Douwen, The integers and topology, in Handbook of Set-Theoretic Topology (K. Kunen, J. E. Vaughan, eds.), North-Holland, 1984, sections 3 and 5.

Tags

almost inclusion, pseudo-intersection, tower, tower number

This file was written by Claude (Anthropic's AI model) working under the direction of David R. MacIver, who reviews it and is responsible for it.

Imports

Almost inclusion

variable {α : Type*} {s t u : Set α}

definition AlmostSubset

TopologyByExample.AlmostSubset

The set s is almost contained in t, written s ⊆* t, if s \ t is finite.

def AlmostSubset (s t : Set α) : Prop
:=
  (s \ t).Finite
@[inherit_doc] scoped infix:50 " ⊆* " => AlmostSubset

theorem almostSubset_iff

TopologyByExample.almostSubset_iff

Unfolding almost inclusion.

theorem almostSubset_iff : s ⊆* t ↔ (s \ t).Finite
Proof
:=
  Iff.rfl

theorem almostSubset_iff_eventuallyLE

TopologyByExample.almostSubset_iff_eventuallyLE

Almost inclusion is eventual inclusion along the cofinite filter.

theorem almostSubset_iff_eventuallyLE : s ⊆* t ↔ s ≤ᶠ[cofinite] t
Proof
:= by
  rw [EventuallySubset, eventually_cofinite, almostSubset_iff]
  exact Iff.of_eq (congrArg _ (ext fun x ↦ by simp [Set.mem_sdiff]))

theorem not_almostSubset_iff

TopologyByExample.not_almostSubset_iff

s fails to be almost contained in t iff s \ t is infinite.

theorem not_almostSubset_iff : ¬s ⊆* t ↔ (s \ t).Infinite
Proof
:=
  Iff.rfl

theorem almostSubset_of_subset

TopologyByExample.almostSubset_of_subset

Inclusion implies almost inclusion.

theorem almostSubset_of_subset (h : s ⊆ t) : s ⊆* t
Proof
:= by
  simp [almostSubset_iff, sdiff_eq_empty.2 h]

theorem refl

TopologyByExample.AlmostSubset.refl

Almost inclusion is reflexive.

@[refl, simp]
theorem AlmostSubset.refl (s : Set α) : s ⊆* s
Proof
:=
  almostSubset_of_subset subset_rfl

theorem rfl

TopologyByExample.AlmostSubset.rfl

Almost inclusion is reflexive.

theorem AlmostSubset.rfl : s ⊆* s
Proof
:=
  AlmostSubset.refl s

theorem almostSubset

Set.Finite.almostSubset

A finite set is almost contained in every set.

theorem _root_.Set.Finite.almostSubset (hs : s.Finite) (t : Set α) : s ⊆* t
Proof
:=
  hs.sdiff

theorem trans

TopologyByExample.AlmostSubset.trans

Almost inclusion is transitive.

theorem AlmostSubset.trans (hst : s ⊆* t) (htu : t ⊆* u) : s ⊆* u
Proof
:=
  (hst.union htu).subset fun x hx ↦ by by_cases hxt : x ∈ t <;> simp_all

theorem trans_subset

TopologyByExample.AlmostSubset.trans_subset

Almost inclusion followed by inclusion is almost inclusion.

theorem AlmostSubset.trans_subset (hst : s ⊆* t) (htu : t ⊆ u) : s ⊆* u
Proof
:=
  hst.trans (almostSubset_of_subset htu)

theorem subset_trans

TopologyByExample.AlmostSubset.subset_trans

Inclusion followed by almost inclusion is almost inclusion.

theorem AlmostSubset.subset_trans (hst : s ⊆ t) (htu : t ⊆* u) : s ⊆* u
Proof
:=
  (almostSubset_of_subset hst).trans htu

theorem infinite

TopologyByExample.AlmostSubset.infinite

If an infinite set is almost contained in t, then t is infinite.

theorem AlmostSubset.infinite (hst : s ⊆* t) (hs : s.Infinite) : t.Infinite
Proof
:= fun ht ↦
  hs <| (hst.union ht).subset fun x hx ↦ by by_cases hxt : x ∈ t <;> simp_all

theorem infinite_sdiff

TopologyByExample.AlmostSubset.infinite_sdiff

If s is almost contained in t and s \ u is infinite, then so is t \ u.

theorem AlmostSubset.infinite_sdiff (hst : s ⊆* t) (hs : (s \ u).Infinite) :
    (t \ u).Infinite
Proof
:=
  AlmostSubset.infinite (s := s \ u) (hst.subset fun _ hx ↦
    ⟨hx.1.1, fun hxt ↦ hx.2 ⟨hxt, hx.1.2⟩⟩) hs

theorem almostSubset_biInter

TopologyByExample.almostSubset_biInter

A set almost contained in each of finitely many sets is almost contained in their intersection.

theorem almostSubset_biInter {ι : Type*} {I : Set ι} (hI : I.Finite) {t : ι → Set α}
    (h : ∀ i ∈ I, s ⊆* t i) : s ⊆* ⋂ i ∈ I, t i
Proof
:= by
  refine (hI.biUnion h).subset fun x hx ↦ ?_
  simp only [Set.mem_sdiff, mem_iInter, not_forall] at hx
  obtain ⟨hxs, i, hi, hxi⟩ := hx
  exact mem_biUnion hi ⟨hxs, hxi⟩

The diagonal lemma

theorem exists_infinite_forall_almostSubset_of_nat

TopologyByExample.exists_infinite_forall_almostSubset_of_nat

Diagonal lemma, sequential form: if every finite intersection ⋂ k ≤ n, T k is infinite, then the sequence T has an infinite pseudo-intersection.

theorem exists_infinite_forall_almostSubset_of_nat {T : ℕ → Set ℕ}
    (hT : ∀ n, (⋂ k ≤ n, T k).Infinite) : ∃ S : Set ℕ, S.Infinite ∧ ∀ n, S ⊆* T n
Proof
:= by
  choose x hx hxn using fun n ↦ (hT n).exists_gt n
  refine ⟨range x, infinite_of_forall_exists_gt fun b ↦ ⟨x b, mem_range_self b, hxn b⟩,
    fun n ↦ ?_⟩
  refine ((finite_Iio n).image x).subset ?_
  rintro _ ⟨⟨k, rfl⟩, hk⟩
  refine ⟨k, mem_Iio.2 (not_le.1 fun hnk ↦ hk ?_), rfl⟩
  exact mem_iInter₂.1 (hx k) n hnk

theorem exists_infinite_forall_almostSubset

TopologyByExample.exists_infinite_forall_almostSubset

Diagonal lemma: a countable, directed, almost decreasing family of infinite subsets of ℕ has an infinite pseudo-intersection.

theorem exists_infinite_forall_almostSubset {ι : Type*} [Preorder ι] [IsDirectedOrder ι]
    [Countable ι] {T : ι → Set ℕ} (hinf : ∀ i, (T i).Infinite)
    (hT : ∀ ⦃i j⦄, i ≤ j → T j ⊆* T i) : ∃ S : Set ℕ, S.Infinite ∧ ∀ i, S ⊆* T i
Proof
:= by
  classical
  rcases isEmpty_or_nonempty ι with hι | hι
  · exact ⟨univ, infinite_univ, isEmptyElim⟩
  obtain ⟨e, he⟩ := exists_surjective_nat ι
  obtain ⟨S, hS, hST⟩ := exists_infinite_forall_almostSubset_of_nat (T := T ∘ e) fun n ↦ by
    obtain ⟨u, hu⟩ := ((Finset.range (n + 1)).image e).exists_le
    refine AlmostSubset.infinite ?_ (hinf u)
    refine almostSubset_biInter (finite_Iic n) fun k hk ↦ hT (hu _ ?_)
    exact Finset.mem_image_of_mem e (Finset.mem_range.2 (Nat.lt_succ_of_le hk))
  refine ⟨S, hS, fun i ↦ ?_⟩
  obtain ⟨n, rfl⟩ := he i
  exact hST n

On this site: Theorem: A countable directed almost decreasing family of infinite subsets of ℕ has an infinite pseudo-intersection

Towers

structure IsTower

TopologyByExample.IsTower

A tower on ℕ is a family T : ι → Set ℕ of infinite sets which is strictly almost decreasing (T j ⊆* T i for i ≤ j, and T i \ T j is infinite for i < j) and has no infinite pseudo-intersection: no infinite set is almost contained in every T i.

The tower number 𝔱 is the least length of a tower indexed by an ordinal, see TopologyByExample.towerNumber.

structure IsTower {ι : Type*} [Preorder ι] (T : ι → Set ℕ) : Prop where
  /-- Every member of a tower is infinite. -/
  infinite (i : ι) : (T i).Infinite
  /-- A tower is almost decreasing. -/
  almostSubset_of_le ⦃i j : ι⦄ : i ≤ j → T j ⊆* T i
  /-- A tower is strictly almost decreasing: a later member misses infinitely many points of an
  earlier one. -/
  infinite_sdiff_of_lt ⦃i j : ι⦄ : i < j → (T i \ T j).Infinite
  /-- A tower has no infinite pseudo-intersection. -/
  exists_not_almostSubset (S : Set ℕ) : S.Infinite → ∃ i, ¬S ⊆* T i
variable {ι κ : Type*} {T : ι → Set ℕ}
variable [Preorder ι]

theorem exists_infinite_sdiff

TopologyByExample.IsTower.exists_infinite_sdiff

Every infinite set has infinitely many points outside some member of a tower.

theorem exists_infinite_sdiff (hT : IsTower T) {S : Set ℕ} (hS : S.Infinite) :
    ∃ i, (S \ T i).Infinite
Proof
:=
  hT.exists_not_almostSubset S hS

theorem compl_almostSubset_compl

TopologyByExample.IsTower.compl_almostSubset_compl

The complements of the members of a tower are almost increasing.

theorem compl_almostSubset_compl (hT : IsTower T) {i j : ι} (hij : i ≤ j) :
    (T i)ᶜ ⊆* (T j)ᶜ
Proof
:= by
  rw [almostSubset_iff, compl_sdiff_compl]
  exact hT.almostSubset_of_le hij

theorem infinite_compl_sdiff_compl

TopologyByExample.IsTower.infinite_compl_sdiff_compl

The complements of the members of a tower are strictly almost increasing.

theorem infinite_compl_sdiff_compl (hT : IsTower T) {i j : ι} (hij : i < j) :
    ((T j)ᶜ \ (T i)ᶜ).Infinite
Proof
:= by
  rw [compl_sdiff_compl]
  exact hT.infinite_sdiff_of_lt hij

theorem exists_infinite_inter_compl

TopologyByExample.IsTower.exists_infinite_inter_compl

Every infinite set meets the complement of some member of a tower in an infinite set.

theorem exists_infinite_inter_compl (hT : IsTower T) {S : Set ℕ} (hS : S.Infinite) :
    ∃ i, (S ∩ (T i)ᶜ).Infinite
Proof
:= by
  simpa only [sdiff_eq] using hT.exists_infinite_sdiff hS

theorem comp

TopologyByExample.IsTower.comp

Restricting a tower along a strictly monotone map with cofinal range gives a tower.

theorem comp [PartialOrder κ] (hT : IsTower T) {f : κ → ι} (hf : StrictMono f)
    (hcof : IsCofinal (range f)) : IsTower (T ∘ f)
Proof
where
  infinite k := hT.infinite (f k)
  almostSubset_of_le _ _ h := hT.almostSubset_of_le (hf.monotone h)
  infinite_sdiff_of_lt _ _ h := hT.infinite_sdiff_of_lt (hf h)
  exists_not_almostSubset S hS := by
    obtain ⟨i, hi⟩ := hT.exists_not_almostSubset S hS
    obtain ⟨_, ⟨k, rfl⟩, hik⟩ := hcof i
    exact ⟨k, fun hk ↦ hi (hk.trans (hT.almostSubset_of_le hik))⟩

theorem comp_orderIso

TopologyByExample.IsTower.comp_orderIso

Reindexing a tower along an order isomorphism gives a tower.

theorem comp_orderIso [PartialOrder κ] (hT : IsTower T) (e : κ ≃o ι) : IsTower (T ∘ e)
Proof
:=
  hT.comp e.strictMono (by rw [e.surjective.range_eq]; exact .univ)

theorem comp_subtype

TopologyByExample.IsTower.comp_subtype

Restricting a tower to a cofinal set of indices gives a tower.

theorem comp_subtype {ι : Type*} [PartialOrder ι] {T : ι → Set ℕ} (hT : IsTower T) {s : Set ι}
    (hs : IsCofinal s) : IsTower fun i : s ↦ T i
Proof
:=
  hT.comp (Subtype.strictMono_coe _) (by simpa using hs)
variable [LinearOrder ι]

theorem not_isCofinal_of_countable

TopologyByExample.IsTower.not_isCofinal_of_countable

No countable set of indices of a tower is cofinal.

theorem not_isCofinal_of_countable (hT : IsTower T) {s : Set ι} (hs : s.Countable) :
    ¬IsCofinal s
Proof
:= by
  intro hcof
  have : Countable s := hs.to_subtype
  obtain ⟨S, hS, hST⟩ := exists_infinite_forall_almostSubset (T := fun j : s ↦ T j)
    (fun j ↦ hT.infinite j) (fun _ _ hjk ↦ hT.almostSubset_of_le hjk)
  obtain ⟨i, hi⟩ := hT.exists_not_almostSubset S hS
  obtain ⟨j, hjs, hij⟩ := hcof i
  exact hi ((hST ⟨j, hjs⟩).trans (hT.almostSubset_of_le hij))

theorem exists_forall_lt_of_countable

TopologyByExample.IsTower.exists_forall_lt_of_countable

Every countable set of indices of a tower is strictly bounded above.

theorem exists_forall_lt_of_countable (hT : IsTower T) {s : Set ι} (hs : s.Countable) :
    ∃ i, ∀ j ∈ s, j < i
Proof
:=
  not_isCofinal_iff.1 (hT.not_isCofinal_of_countable hs)

On this site: Theorem: Every countable set of indices of a tower is bounded

theorem bddAbove_of_countable

TopologyByExample.IsTower.bddAbove_of_countable

Every countable set of indices of a tower is bounded above.

theorem bddAbove_of_countable (hT : IsTower T) {s : Set ι} (hs : s.Countable) : BddAbove s
Proof
:=
  BddAbove.of_not_isCofinal (hT.not_isCofinal_of_countable hs)

theorem uncountable

TopologyByExample.IsTower.uncountable

A tower has uncountably many members.

theorem uncountable (hT : IsTower T) : Uncountable ι
Proof
:= by
  rw [← not_countable_iff]
  intro h
  obtain ⟨i, hi⟩ := hT.exists_forall_lt_of_countable (countable_univ (α := ι))
  exact lt_irrefl i (hi i trivial)

theorem noMaxOrder

TopologyByExample.IsTower.noMaxOrder

A tower has no last member.

theorem noMaxOrder (hT : IsTower T) : NoMaxOrder ι
Proof
where
  exists_gt i := by
    by_contra! h
    obtain ⟨j, hj⟩ := hT.exists_not_almostSubset (T i) (hT.infinite i)
    exact hj (hT.almostSubset_of_le (h j))

theorem infinite_compl_of_lt

TopologyByExample.IsTower.infinite_compl_of_lt

The complement of a member of a tower other than the first is infinite.

theorem infinite_compl_of_lt (hT : IsTower T) {i j : ι} (hij : i < j) : (T j)ᶜ.Infinite
Proof
:= by
  refine (hT.infinite_sdiff_of_lt hij).mono fun x hx ↦ ?_
  rw [Set.mem_sdiff] at hx
  exact hx.2

theorem injective

TopologyByExample.IsTower.injective

The members of a tower are pairwise distinct.

theorem injective (hT : IsTower T) : Injective T
Proof
:= by
  intro i j hij
  by_contra hne
  rcases lt_or_gt_of_ne hne with h | h
  · exact hT.infinite_sdiff_of_lt h (by simp [hij])
  · exact hT.infinite_sdiff_of_lt h (by simp [hij])

theorem mk_le_continuum

TopologyByExample.IsTower.mk_le_continuum

A tower has at most continuum many members.

theorem mk_le_continuum {ι : Type*} [LinearOrder ι] {T : ι → Set ℕ} (hT : IsTower T) :
    #ι ≤ 𝔠
Proof
:= by
  have := lift_mk_le_lift_mk_of_injective hT.injective
  simpa [mk_set, two_power_aleph0] using this

Existence of towers

theorem exists_infinite_subset_infinite_sdiff

TopologyByExample.exists_infinite_subset_infinite_sdiff

Every infinite set s has an infinite subset t with s \ t infinite.

theorem exists_infinite_subset_infinite_sdiff {α : Type*} {s : Set α} (hs : s.Infinite) :
    ∃ t ⊆ s, t.Infinite ∧ (s \ t).Infinite
Proof
:= by
  set e := hs.natEmbedding s
  refine ⟨range fun n ↦ (e (2 * n) : α), ?_, infinite_range_of_injective ?_,
    (infinite_range_of_injective (f := fun n ↦ (e (2 * n + 1) : α)) ?_).mono ?_⟩
  · rintro _ ⟨n, rfl⟩
    exact (e _).property
  · intro m n h
    have := e.injective (Subtype.ext h)
    omega
  · intro m n h
    have := e.injective (Subtype.ext h)
    omega
  · rintro _ ⟨n, rfl⟩
    refine ⟨(e _).property, ?_⟩
    rintro ⟨m, hm⟩
    have := e.injective (Subtype.ext hm)
    omega

definition HasPseudoIntersection

TopologyByExample.TowerExistence.HasPseudoIntersection

A family of sets has an infinite pseudo-intersection.

def HasPseudoIntersection (F : Set (Set ℕ)) : Prop
:=
  ∃ S : Set ℕ, S.Infinite ∧ ∀ A ∈ F, S ⊆* A

definition step

TopologyByExample.TowerExistence.step

An infinite set almost contained in every member of F, and missing infinitely many points of each, if F has an infinite pseudo-intersection (and ∅ otherwise).

noncomputable def step (F : Set (Set ℕ)) : Set ℕ
Definition
:=
  if h : HasPseudoIntersection F then
    (exists_infinite_subset_infinite_sdiff h.choose_spec.1).choose
  else ∅

theorem step_spec

TopologyByExample.TowerExistence.step_spec

If F has an infinite pseudo-intersection, step F is infinite, almost contained in each member of F, and misses infinitely many points of each.

theorem step_spec {F : Set (Set ℕ)} (h : HasPseudoIntersection F) :
    (step F).Infinite ∧ ∀ A ∈ F, step F ⊆* A ∧ (A \ step F).Infinite
Proof
:= by
  obtain ⟨hsub, hinf, hdiff⟩ := (exists_infinite_subset_infinite_sdiff h.choose_spec.1).choose_spec
  simp only [step, h, ↓reduceDIte]
  exact ⟨hinf, fun A hA ↦ ⟨(almostSubset_of_subset hsub).trans (h.choose_spec.2 A hA),
    (h.choose_spec.2 A hA).infinite_sdiff hdiff⟩⟩

definition seq

TopologyByExample.TowerExistence.seq

The transfinite sequence seq o = step {seq p | p < o}.

noncomputable def seq : Ordinal.{0} → Set ℕ
:=
  wellFounded_lt.fix fun o IH ↦ step {A | ∃ p, ∃ h : p < o, IH p h = A}

theorem seq_eq

TopologyByExample.TowerExistence.seq_eq

The defining equation of seq.

theorem seq_eq (o : Ordinal.{0}) : seq o = step (seq '' Iio o)
Proof
:= by
  unfold seq
  rw [WellFounded.fix_eq]
  congr 1
  ext A
  simp only [mem_ofPred_eq, mem_image, mem_Iio]
  constructor <;> rintro ⟨p, hp, rfl⟩ <;> exact ⟨p, hp, rfl⟩

theorem seq_spec

TopologyByExample.TowerExistence.seq_spec

If the sets seq p for p < o have an infinite pseudo-intersection, then seq o is infinite and strictly almost below each of them.

theorem seq_spec {o : Ordinal.{0}} (h : HasPseudoIntersection (seq '' Iio o)) :
    (seq o).Infinite ∧ ∀ p < o, seq o ⊆* seq p ∧ (seq p \ seq o).Infinite
Proof
:= by
  rw [seq_eq o]
  obtain ⟨h1, h2⟩ := step_spec h
  exact ⟨h1, fun p hp ↦ h2 _ (mem_image_of_mem _ hp)⟩

theorem exists_isTower_toType

TopologyByExample.exists_isTower_toType

Towers exist: some ordinal indexes a tower. The tower is built by transfinite recursion, choosing at each stage an infinite set strictly almost below all earlier ones, as long as they have an infinite pseudo-intersection; the recursion must stop, since it would otherwise give an injection of the ordinals into Set ℕ.

theorem exists_isTower_toType : ∃ o : Ordinal.{0}, ∃ T : o.ToType → Set ℕ, IsTower T
Proof
:= by
  have hex' : ∃ o, ¬HasPseudoIntersection (seq '' Iio o) := by
    by_contra! h
    refine not_injective_of_ordinal seq fun p q hpq ↦ ?_
    by_contra hne
    rcases lt_or_gt_of_ne hne with hlt | hlt
    · exact ((seq_spec (h q)).2 p hlt).2 (by simp [hpq])
    · exact ((seq_spec (h p)).2 q hlt).2 (by simp [hpq])
  have hex : {o | ¬HasPseudoIntersection (seq '' Iio o)}.Nonempty :=
    ⟨hex'.choose, by simpa using hex'.choose_spec⟩
  set o := wellFounded_lt.min _ hex
  have ho : ¬HasPseudoIntersection (seq '' Iio o) := by simpa using wellFounded_lt.min_mem _ hex
  have hlt (p) (hp : p < o) : HasPseudoIntersection (seq '' Iio p) := by
    by_contra h
    exact wellFounded_lt.not_lt_min _ (x := p) (by simpa using h) hp
  have key {i j : o.ToType} (hij : i < j) :
      seq (ToType.mk.symm j) ⊆* seq (ToType.mk.symm i) ∧
        (seq (ToType.mk.symm i) \ seq (ToType.mk.symm j)).Infinite :=
    (seq_spec (hlt _ (ToType.mk.symm j).property)).2 _ (ToType.mk.symm.strictMono hij)
  refine ⟨o, fun i ↦ seq (ToType.mk.symm i),
    ⟨fun i ↦ (seq_spec (hlt _ (ToType.mk.symm i).property)).1, fun i j hij ↦ ?_,
      fun i j hij ↦ (key hij).2, fun S hS ↦ ?_⟩⟩
  · rcases hij.eq_or_lt with rfl | hij
    · exact .rfl
    · exact (key hij).1
  · by_contra! H
    refine ho ⟨S, hS, ?_⟩
    rintro _ ⟨p, hp, rfl⟩
    simpa using H (ToType.mk ⟨p, hp⟩)

On this site: Theorem: Towers exist