Lean library · module TopologyByExample.Spaces.Gao
Gao's space of binary functions on integer initial segments
A point is encoded by the endpoint of its domain and the finite set where it takes the value one. The closed subbasis consists of the truncations of a fixed point, and the sets of points of bounded length.
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
- TopologyByExample.Theorems.SpecializationPairs
- TopologyByExample.Theorems.UpperMetacompactness
- TopologyByExample.Theorems.FullNormality
- TopologyByExample.Theorems.SierpinskiContinuum
- TopologyByExample.Theorems.ConnectednessExtremes
- TopologyByExample.Theorems.Category
- Mathlib.Topology.Homotopy.Contractible
- Mathlib.Order.Int.LeastGreatest
- Mathlib.Data.Int.Interval
definition Space
TopologyByExample.Gao.Space
An admissible binary word on an integer initial segment. A negative support index witnesses the length bound exactly when the least support index witnesses it.
def Space
:= {p : ℤ × Finset ℤ // (∀ i ∈ p.2, i ≤ p.1) ∧
((p.2 = ∅ ∧ p.1 ≤ 0) ∨ ∃ i ∈ p.2, i < 0 ∧ p.1 ≤ -i)}
On this site: Space: Gao's space of binary functions
theorem admissible_bound_iff_min
TopologyByExample.Gao.admissible_bound_iff_min
The length bound on a nonempty support is equivalent to the bound from its least entry.
theorem admissible_bound_iff_min {F : Finset ℤ} (hF : F.Nonempty) (n : ℤ) :
(∃ i ∈ F, i < 0 ∧ n ≤ -i) ↔ F.min' hF < 0 ∧ n ≤ -(F.min' hF)
Proof
:= by
constructor
· rintro ⟨i, hi, hneg, hn⟩
have h := F.min'_le i hi
exact ⟨h.trans_lt hneg, hn.trans (neg_le_neg h)⟩
· rintro ⟨hneg, hn⟩
exact ⟨F.min' hF, F.min'_mem hF, hneg, hn⟩
definition length
TopologyByExample.Gao.length
The last index on which the partial function is defined.
def length (x : Space) : ℤ
:= x.val.1
definition ones
TopologyByExample.Gao.ones
The finite set of indices at which the word takes value one.
def ones (x : Space) : Finset ℤ
:= x.val.2
instance
instance : Countable Space
Proof
:= inferInstanceAs (Countable (Subtype _))
theorem ext
TopologyByExample.Gao.ext
The endpoint and support determine the word.
@[ext] theorem ext {x y : Space} (hl : length x = length y) (ho : ones x = ones y) : x = y
Proof
:=
Subtype.ext (Prod.ext hl ho)
definition zero
TopologyByExample.Gao.zero
The zero word of a prescribed nonpositive length.
def zero (n : ℤ) (hn : n ≤ 0) : Space
:= ⟨(n, ∅), by simp [hn]⟩
definition tall
TopologyByExample.Gao.tall
Words with a single early nonzero entry attain arbitrarily large lengths.
def tall (n : ℕ) : Space
:= ⟨(n, {-(n : ℤ) - 1}), by
simp only [Finset.mem_singleton, forall_eq, exists_eq_left, neg_sub]
omega⟩
instance
instance : Nontrivial Space
definition Prefix
TopologyByExample.Gao.Prefix
One word is a truncation of another when it agrees up to its shorter endpoint.
def Prefix (x y : Space) : Prop
:=
length x ≤ length y ∧ ∀ i ≤ length x, i ∈ ones x ↔ i ∈ ones y
theorem refl
TopologyByExample.Gao.Prefix.refl
A word is its own truncation.
theorem Prefix.refl (x : Space) : Prefix x x
Proof
:= ⟨le_rfl, fun _ _ ↦ Iff.rfl⟩
theorem trans
TopologyByExample.Gao.Prefix.trans
Truncating twice gives a truncation of the original word.
theorem Prefix.trans {x y z : Space} (h : Prefix x y) (k : Prefix y z) : Prefix x z
Proof
:=
⟨h.1.trans k.1, fun i hi ↦ (h.2 i hi).trans (k.2 i (hi.trans h.1))⟩
theorem antisymm
TopologyByExample.Gao.Prefix.antisymm
Words extending one another are equal.
theorem Prefix.antisymm {x y : Space} (h : Prefix x y) (k : Prefix y x) : x = y
definition tree
TopologyByExample.Gao.tree
The closed ray of all truncations of a fixed word.
def tree (x : Space)
:= {y | Prefix y x}
definition tail
TopologyByExample.Gao.tail
The open set of words of length strictly greater than the given integer.
def tail (n : ℤ) : Set Space
:= {x : Space | n < length x}
definition subbasis
TopologyByExample.Gao.subbasis
The open subbasis complementary to Gao's two kinds of closed sets.
def subbasis : Set (Set Space)
:= range (fun x ↦ (tree x)ᶜ) ∪ range tail
instance
instance : TopologicalSpace Space
Proof
:= generateFrom subbasis
theorem isClosed_tree
TopologyByExample.Gao.isClosed_tree
A prefix ray is subbasic closed.
theorem isClosed_tree (x : Space) : IsClosed (tree x)
Proof
:=
isOpen_compl_iff.mp (.basic _ (Or.inl ⟨x, rfl⟩) : GenerateOpen subbasis _)
theorem isOpen_tail
TopologyByExample.Gao.isOpen_tail
A strict length tail is subbasic open.
theorem isOpen_tail (n : ℤ) : IsOpen (tail n)
Proof
:=
GenerateOpen.basic _ (Or.inr ⟨n, rfl⟩)
instance
instance : SecondCountableTopology Space
Proof
:=
⟨subbasis, (countable_range _).union (countable_range _), rfl⟩
theorem mem_of_prefix
TopologyByExample.Gao.mem_of_prefix
Open sets are upward closed for truncation.
theorem mem_of_prefix {x y : Space} (h : Prefix x y) {U : Set Space} (hU : IsOpen U)
(hx : x ∈ U) : y ∈ U
Proof
:= by
change GenerateOpen subbasis U at hU
induction hU with
| basic s hs =>
rcases hs with ⟨z, rfl⟩ | ⟨n, rfl⟩
· exact fun k ↦ hx (h.trans k)
· exact (show n < length x from hx).trans_le h.1
| univ => trivial
| inter _ _ _ _ ih ik => exact ⟨ih hx.1, ik hx.2⟩
| sUnion _ _ ih =>
obtain ⟨s, hs, hxs⟩ := hx
exact mem_sUnion_of_mem (ih s hs hxs) hs
theorem closure_singleton
TopologyByExample.Gao.closure_singleton
The closure of a word is precisely the set of all its truncations.
theorem closure_singleton (x : Space) : closure ({x} : Set Space) = tree x
Proof
:= by
apply le_antisymm (closure_minimal (singleton_subset_iff.mpr (Prefix.refl x)) (isClosed_tree x))
intro y hy
exact specializes_iff_mem_closure.mp (specializes_iff_forall_open.mpr fun _ hU hyU ↦
mem_of_prefix hy hU hyU)
On this site: Gao's space of binary functions: Closures of individual words
theorem specializes_iff_prefix
TopologyByExample.Gao.specializes_iff_prefix
The specialization relation is extension of words.
theorem specializes_iff_prefix {x y : Space} : x ⤳ y ↔ Prefix y x
Proof
:= by
rw [specializes_iff_mem_closure, closure_singleton]
rfl
instance
instance : T0Space Space
Proof
:= (t0Space_iff_inseparable _).mpr fun _ _ h ↦
(specializes_iff_prefix.mp h.symm.specializes).antisymm
(specializes_iff_prefix.mp h.specializes)
theorem exists_zero_prefix
TopologyByExample.Gao.exists_zero_prefix
private theorem exists_zero_prefix (x : Space) : ∃ n : ℤ, ∀ m ≤ n, ∀ hm : m ≤ 0,
Prefix (zero m hm) x
Proof
:= by
obtain ⟨k, hk⟩ := (ones x).finite_toSet.bddBelow
refine ⟨min (length x) (k - 1), fun m hm _ ↦ ⟨hm.trans (min_le_left _ _), ?_⟩⟩
intro i hi
change i ≤ m at hi
change i ∈ (∅ : Finset ℤ) ↔ i ∈ ones x
simp only [Finset.notMem_empty, false_iff]
intro h
have := hk (show i ∈ (↑(ones x) : Set ℤ) from h)
omega
instance
instance : UltraconnectedSpace Space
Proof
:= by
constructor
intro x y
obtain ⟨a, ha⟩ := exists_zero_prefix x
obtain ⟨b, hb⟩ := exists_zero_prefix y
let n := min (min a b) 0
have hn : n ≤ 0 := min_le_right _ _
rw [closure_singleton, closure_singleton]
exact ⟨zero n hn, ha n ((min_le_left _ _).trans (min_le_left _ _)) hn,
hb n ((min_le_left _ _).trans (min_le_right _ _)) hn⟩
theorem exists_tail_subset
TopologyByExample.Gao.exists_tail_subset
Every nonempty open set contains all words of sufficiently large length.
theorem exists_tail_subset {U : Set Space} (hU : IsOpen U) (hne : U.Nonempty) :
∃ n, tail n ⊆ U
Proof
:= by
change GenerateOpen subbasis U at hU
induction hU with
| basic s hs =>
rcases hs with ⟨x, rfl⟩ | ⟨n, rfl⟩
· exact ⟨length x, fun _ hi h ↦ hi.not_ge h.1⟩
· exact ⟨n, Subset.rfl⟩
| univ => exact ⟨0, subset_univ _⟩
| inter _ _ _ _ ih ik =>
obtain ⟨a, ha⟩ := ih hne.left
obtain ⟨b, hb⟩ := ik hne.right
refine ⟨max a b, fun x h ↦ ?_⟩
change max a b < length x at h
exact ⟨ha (show a < length x from (le_max_left _ _).trans_lt h),
hb (show b < length x from (le_max_right _ _).trans_lt h)⟩
| sUnion _ _ ih =>
obtain ⟨x, s, hs, hxs⟩ := hne
obtain ⟨n, hn⟩ := ih s hs ⟨x, hxs⟩
exact ⟨n, hn.trans (subset_sUnion_of_mem hs)⟩
theorem tail_nonempty
TopologyByExample.Gao.tail_nonempty
The lengths of admissible words are unbounded above.
theorem tail_nonempty (n : ℤ) : (tail n).Nonempty
Proof
:= by
refine ⟨tall (n.natAbs + 1), ?_⟩
change n < ((n.natAbs + 1 : ℕ) : ℤ)
have : n ≤ (n.natAbs : ℤ) := Int.le_natAbs
omega
instance
instance : PreirreducibleSpace Space
Proof
:= by
rw [preirreducibleSpace_iff_open_dense]
intro U hU hne
rw [dense_iff_inter_open]
intro V hV hVe
obtain ⟨n, hn⟩ := exists_tail_subset hU hne
obtain ⟨m, hm⟩ := exists_tail_subset hV hVe
obtain ⟨x, hx⟩ := tail_nonempty (max n m)
change max n m < length x at hx
exact ⟨x, hm (show m < length x from (le_max_right _ _).trans_lt hx),
hn (show n < length x from (le_max_left _ _).trans_lt hx)⟩
theorem isMeagre_univ
TopologyByExample.Gao.isMeagre_univ
The finite-length cutoffs exhibit the space as a countable union of nowhere dense sets.
theorem isMeagre_univ : IsMeagre (univ : Set Space)
Proof
:= by
have hn (n : ℤ) : IsNowhereDense (tail n)ᶜ := by
rw [IsNowhereDense, (isOpen_tail n).isClosed_compl.closure_eq, interior_compl,
((preirreducibleSpace_iff_open_dense Space).mp inferInstance (isOpen_tail n)
(tail_nonempty n)).closure_eq, compl_univ]
apply (isMeagre_iUnion fun n ↦ (hn n).isMeagre).mono
intro x _
exact mem_iUnion.mpr ⟨length x, lt_irrefl (length x)⟩
On this site: Gao's space of binary functions is not of second category
theorem prefix_eq_of_length
TopologyByExample.Gao.prefix_eq_of_length
private theorem prefix_eq_of_length {x y z : Space} (hx : Prefix x z) (hy : Prefix y z)
(he : length x = length y) : x = y
theorem finite_bounded_tree
TopologyByExample.Gao.finite_bounded_tree
private theorem finite_bounded_tree (x : Space) (b : ℤ) :
(tree x ∩ {y | b ≤ length y}).Finite
Proof
:= by
apply Finite.of_finite_image (f := length)
· apply (finite_Icc b (length x)).subset
rintro _ ⟨y, hy, rfl⟩
exact ⟨hy.2, hy.1.1⟩
· intro y hy z hz he
exact prefix_eq_of_length hy.1 hz.1 he
theorem finite_diff_of_shortest
TopologyByExample.Gao.finite_diff_of_shortest
private theorem finite_diff_of_shortest {S : Set Space} {x : Space}
(hm : ∀ y ∈ S, length x ≤ length y) {U : Set Space} (hU : IsOpen U)
(hx : x ∈ U) : (S \ U).Finite
Proof
:= by
change GenerateOpen subbasis U at hU
induction hU with
| basic u hu =>
rcases hu with ⟨z, rfl⟩ | ⟨n, rfl⟩
· exact (finite_bounded_tree z (length x)).subset fun y hy ↦ ⟨of_not_not hy.2, hm y hy.1⟩
· apply finite_empty.subset
exact fun y hy ↦ hy.2 ((show n < length x from hx).trans_le (hm y hy.1))
| univ => simp
| inter u v _ _ ih ik =>
exact ((ih hx.1).union (ik hx.2)).subset (by tauto_set)
| sUnion t _ ih =>
obtain ⟨u, hu, hxu⟩ := hx
exact (ih u hu hxu).subset (sdiff_subset_sdiff_right (subset_sUnion_of_mem hu))
theorem isCompact_of_bounded_length
TopologyByExample.Gao.isCompact_of_bounded_length
Every set with lengths bounded below is compact.
theorem isCompact_of_bounded_length {S : Set Space} (b : ℤ) (hb : ∀ y ∈ S, b ≤ length y) :
IsCompact S
Proof
:= by
classical
rcases S.eq_empty_or_nonempty with rfl | hne
· exact isCompact_empty
obtain ⟨_, ⟨x, hx, rfl⟩, hm⟩ := Int.exists_least_of_bdd
(P := fun n ↦ n ∈ length '' S) ⟨b, fun _ ⟨y, hy, he⟩ ↦ he ▸ hb y hy⟩ (hne.image _)
refine isCompact_of_finite_subcover fun U hU hc ↦ ?_
obtain ⟨i, hi⟩ := mem_iUnion.mp (hc hx)
have hf := finite_diff_of_shortest (fun y hy ↦ hm _ (mem_image_of_mem _ hy)) (hU i) hi
obtain ⟨t, ht⟩ := hf.isCompact.elim_finite_subcover U hU (sdiff_subset.trans hc)
refine ⟨insert i t, fun y hy ↦ ?_⟩
by_cases h : y ∈ U i
· exact mem_iUnion₂.mpr ⟨i, Finset.mem_insert_self _ _, h⟩
· obtain ⟨j, hj, hyj⟩ := mem_iUnion₂.mp (ht ⟨hy, h⟩)
exact mem_iUnion₂.mpr ⟨j, Finset.mem_insert_of_mem hj, hyj⟩
instance
instance : LocallyCompactSpace Space
Proof
:= by
refine ⟨fun x N hN ↦ ?_⟩
let n := length x - 1
have hx : x ∈ tail n := by change length x - 1 < length x; omega
refine ⟨N ∩ tail n, inter_mem hN ((isOpen_tail n).mem_nhds hx), inter_subset_left, ?_⟩
exact isCompact_of_bounded_length n (fun _ hy ↦ le_of_lt hy.2)
theorem zero_prefix_zero
TopologyByExample.Gao.zero_prefix_zero
private theorem zero_prefix_zero {m n : ℤ} (hm : m ≤ 0) (hn : n ≤ 0) (hle : m ≤ n) :
Prefix (zero m hm) (zero n hn)
Proof
:= ⟨hle, fun _ _ ↦ Iff.rfl⟩
theorem tails_cover
TopologyByExample.Gao.tails_cover
private theorem tails_cover : ⋃₀ range tail = univ
theorem isCompact_iff_bddBelow
TopologyByExample.Gao.isCompact_iff_bddBelow
A subset is compact exactly when the lengths of its words are bounded below.
theorem isCompact_iff_bddBelow (S : Set Space) : IsCompact S ↔ BddBelow (length '' S)
Proof
:= by
constructor
· intro hs
have hcov : S ⊆ ⋃ n, tail n := by rw [← sUnion_range, tails_cover]; exact subset_univ _
obtain ⟨I, hI⟩ := hs.elim_finite_subcover tail isOpen_tail hcov
obtain ⟨b, hb⟩ := I.finite_toSet.bddBelow
refine ⟨b, ?_⟩
rintro _ ⟨x, hx, rfl⟩
obtain ⟨i, hi, hxi⟩ := mem_iUnion₂.mp (hI hx)
exact (hb hi).trans (le_of_lt hxi)
· rintro ⟨b, hb⟩
exact isCompact_of_bounded_length b fun _ hx ↦ hb (mem_image_of_mem _ hx)
On this site: Gao's space of binary functions: Compact subsets
theorem not_fullyT4Space
TopologyByExample.Gao.not_fullyT4Space
An open cover by length tails admits no open point-star refinement.
theorem not_fullyT4Space : ¬ FullyT4Space Space
Proof
:= by
intro _
obtain ⟨V, hVo, hV, hs⟩ := FullyT4Space.pointStar_refinement (range tail)
(forall_mem_range.mpr isOpen_tail) tails_cover
obtain ⟨_, ⟨n, rfl⟩, hn⟩ := hs (zero 0 le_rfl)
let m := min n 0
have hm : m ≤ 0 := min_le_right _ _
obtain ⟨v, hv, hx⟩ := mem_sUnion.mp (hV ▸ mem_univ (zero m hm))
have hz := mem_of_prefix (zero_prefix_zero hm le_rfl hm) (hVo v hv) hx
exact (show n < m from hn v hv hz hx).not_ge (min_le_left _ _)
On this site: Gao's space of binary functions is not fully T₄
theorem not_countablyMetacompactSpace
TopologyByExample.Gao.not_countablyMetacompactSpace
The tail cover admits no point-finite open refinement.
theorem not_countablyMetacompactSpace : ¬ CountablyMetacompactSpace Space
Proof
:= by
classical
intro _
obtain ⟨V, hVo, hV, hpf, href⟩ := CountablyMetacompactSpace.pointFinite_refinement
(range tail) (countable_range _) (forall_mem_range.mpr isOpen_tail) tails_cover
have he (v : V) : ∃ n, (v : Set Space) ⊆ tail n := by
obtain ⟨_, ⟨n, rfl⟩, hn⟩ := href v v.property
exact ⟨n, hn⟩
choose f hf using he
obtain ⟨b, hb⟩ := ((hpf (zero 0 le_rfl)).image f).bddBelow
let m := min b 0
have hm : m ≤ 0 := min_le_right _ _
obtain ⟨v, hv, hx⟩ := mem_sUnion.mp (hV ▸ mem_univ (zero m hm))
have hz := mem_of_prefix (zero_prefix_zero hm le_rfl hm) (hVo v hv) hx
have hmem : (⟨v, hv⟩ : V) ∈ {v : V | zero 0 le_rfl ∈ (v : Set Space)} := hz
have hlow : b ≤ f ⟨v, hv⟩ := hb (mem_image_of_mem _ hmem)
exact (show f ⟨v, hv⟩ < m from hf ⟨v, hv⟩ hx).not_ge ((min_le_left _ _).trans hlow)
On this site: Gao's space of binary functions is not countably metacompact
theorem not_biconnected
TopologyByExample.Gao.not_biconnected
Four successive zero words give two disjoint connected pairs.
theorem not_biconnected : ¬ BiconnectedSpace Space
Proof
:= by
apply not_biconnected_of_specialization_pairs
(specializes_iff_prefix.mpr (zero_prefix_zero (m := -1) (n := 0) (by decide)
(by decide) (by decide)))
(specializes_iff_prefix.mpr (zero_prefix_zero (m := -3) (n := -2) (by decide)
(by decide) (by decide)))
apply List.Nodup.of_map length
decide
On this site: Gao's space of binary functions is not biconnected
definition label
TopologyByExample.Gao.label
The support strictly below a fixed coordinate.
def label (k : ℤ) (x : Space)
:= (ones x).filter (· < k)
theorem label_eq_of_prefix
TopologyByExample.Gao.label_eq_of_prefix
private theorem label_eq_of_prefix {k : ℤ} {x y : Space} (hx : k ≤ length x) (h : Prefix x y) :
label k x = label k y
definition fibre
TopologyByExample.Gao.fibre
private def fibre (k : ℤ) (F : Finset ℤ)
:= {x : Space | k ≤ length x ∧ label k x = F}
theorem finite_fibre
TopologyByExample.Gao.finite_fibre
private theorem finite_fibre (k : ℤ) (F : Finset ℤ) : (fibre k F).Finite
Proof
:= by
obtain ⟨b, hb⟩ := F.finite_toSet.bddBelow
let a := min b k
let B := max 0 (-a)
have hlow {x : Space} (hx : x ∈ fibre k F) {i : ℤ} (hi : i ∈ ones x) : a ≤ i := by
by_cases h : i < k
· have hm : i ∈ F := hx.2 ▸ (Finset.mem_filter.mpr ⟨hi, h⟩ : i ∈ label k x)
exact (min_le_left _ _).trans (hb hm)
· exact (min_le_right _ _).trans (le_of_not_gt h)
have hlen {x : Space} (hx : x ∈ fibre k F) : length x ≤ B := by
rcases x.property.2 with ⟨_, hl⟩ | ⟨i, hi, _, hl⟩
· exact hl.trans (le_max_left _ _)
· exact (hl.trans (neg_le_neg (hlow hx hi))).trans (le_max_right _ _)
let D := Finset.Icc a B
apply Finite.of_finite_image (f := fun x : Space ↦ x.val) _ Subtype.val_injective.injOn
apply ((finite_Icc k B).prod D.powerset.finite_toSet).subset
rintro _ ⟨x, hx, rfl⟩
exact ⟨⟨hx.1, hlen hx⟩, Finset.mem_powerset.mpr fun i hi ↦
Finset.mem_Icc.mpr ⟨hlow hx hi, (x.property.1 i hi).trans (hlen hx)⟩⟩
theorem label_eq_endpoints
TopologyByExample.Gao.label_eq_endpoints
A path staying above a fixed length cannot alter the support below that cutoff.
theorem label_eq_endpoints {k : ℤ} {x y : Space} (f : Path x y)
(hf : ∀ t, k ≤ length (f t)) : label k x = label k y
Proof
:= by
let A (F : Finset ℤ) := {t : unitInterval | label k (f t) = F}
have hC (F : Finset ℤ) : IsClosed (A F) := by
have eq : A F = f ⁻¹' (⋃ z ∈ fibre k F, tree z) := by
ext t
constructor
· intro ht
exact mem_iUnion₂.mpr ⟨f t, ⟨hf t, ht⟩, Prefix.refl _⟩
· intro ht
obtain ⟨z, hz, hp⟩ := mem_iUnion₂.mp ht
exact (label_eq_of_prefix (hf t) hp).trans hz.2
rw [eq]
exact ((finite_fibre k F).isClosed_biUnion fun z _ ↦ isClosed_tree z).preimage f.continuous
have hd : Pairwise (fun i j ↦ Disjoint (A i) (A j)) := by
intro i j hne
exact disjoint_left.mpr fun t hi hj ↦ hne (hi.symm.trans hj)
have hcov : ⋃ i, A i = univ := eq_univ_of_forall fun t ↦ mem_iUnion.mpr ⟨_, rfl⟩
apply PreconnectedSpace.subsingleton_setOf_nonempty_of_iUnion_eq_univ hC hd hcov
· exact ⟨0, congrArg (label k) f.source⟩
· exact ⟨1, congrArg (label k) f.target⟩
On this site: Gao's space of binary functions: Paths above a fixed length
theorem not_locallyPathConnectedSpace
TopologyByExample.Gao.not_locallyPathConnectedSpace
Near the zero word of length zero, paths confined to nonnegative lengths preserve the negative-index support. Every neighbourhood meets words of arbitrarily large length.
theorem not_locallyPathConnectedSpace : ¬ LocallyPathConnectedSpace Space
Proof
:= by
intro _
let x := zero 0 le_rfl
have hx : x ∈ tail (-1) := by change (-1 : ℤ) < 0; decide
obtain ⟨V, ⟨hV, hp⟩, hsub⟩ := (path_connected_basis x).mem_iff.mp
((isOpen_tail (-1)).mem_nhds hx)
obtain ⟨W, hWV, hWo, hxW⟩ := mem_nhds_iff.mp hV
obtain ⟨n, hn⟩ := exists_tail_subset hWo ⟨x, hxW⟩
let m := n.natAbs + 1
have ht : tall m ∈ tail n := by
change n < (n.natAbs + 1 : ℕ)
have : n ≤ (n.natAbs : ℤ) := Int.le_natAbs
omega
obtain ⟨f, hf⟩ := hp.joinedIn _ (mem_of_mem_nhds hV) _ (hWV (hn ht))
have he := label_eq_endpoints (k := 0) f (fun t ↦ by
have : (-1 : ℤ) < length (f t) := hsub (hf t)
omega)
have hmem : -(m : ℤ) - 1 ∈ label 0 (tall m) := by simp [label, ones, tall]; omega
rw [← he] at hmem
exact Finset.notMem_empty _ hmem
On this site: Gao's space of binary functions is not locally path connected
theorem not_anticompactSpace
TopologyByExample.Gao.not_anticompactSpace
A lower-bounded length tail is an infinite compact set.
theorem not_anticompactSpace : ¬ AnticompactSpace Space
Proof
:= by
intro h
have hc := isCompact_of_bounded_length (S := tail 0) 0 fun _ hy ↦ le_of_lt hy
obtain ⟨b, hb⟩ := ((h.finite_of_isCompact _ hc).image length).bddAbove
obtain ⟨x, hx⟩ := tail_nonempty (max 0 b)
change max 0 b < length x at hx
have hpos : x ∈ tail 0 := (le_max_left _ _).trans_lt hx
exact ((le_max_right _ _).trans_lt hx).not_ge (hb (mem_image_of_mem _ hpos))
On this site: Gao's space of binary functions is not anticompact
theorem not_contractibleSpace
TopologyByExample.Gao.not_contractibleSpace
A contraction would make all sufficiently long words agree with its endpoint below one cut.
theorem not_contractibleSpace : ¬ ContractibleSpace Space
Proof
:= by
intro _
obtain ⟨p, ⟨H⟩⟩ := id_nullhomotopic Space
let x := zero 0 le_rfl
let g (t : unitInterval) := H (t, x)
have hg : Continuous g := H.continuous.comp (continuous_id.prodMk continuous_const)
obtain ⟨k, hk⟩ := (isCompact_iff_bddBelow _).mp (isCompact_range hg)
have hU := (isOpen_tail (k - 1)).preimage H.continuous
have hslice : (univ : Set unitInterval) ×ˢ {x} ⊆ H ⁻¹' tail (k - 1) := by
rintro ⟨t, y⟩ ⟨_, rfl : y = x⟩
have := hk (mem_image_of_mem length (mem_range_self (f := g) t))
change k - 1 < length (g t)
omega
obtain ⟨U, V, _, hV, hUall, hxV, hprod⟩ := generalized_tube_lemma isCompact_univ
isCompact_singleton hU hslice
obtain ⟨n, hn⟩ := exists_tail_subset hV ⟨x, hxV rfl⟩
obtain ⟨b, hb⟩ := (ones p).finite_toSet.bddBelow
let m := n.natAbs + k.natAbs + b.natAbs + 1
have hn' : n ≤ (n.natAbs : ℤ) := Int.le_natAbs
have hk' : -k ≤ (k.natAbs : ℤ) := by
simpa only [Int.natAbs_neg] using (show -k ≤ ((-k).natAbs : ℤ) from Int.le_natAbs)
have hb' : -b ≤ (b.natAbs : ℤ) := by
simpa only [Int.natAbs_neg] using (show -b ≤ ((-b).natAbs : ℤ) from Int.le_natAbs)
have hyV : tall m ∈ V := hn (show n < (m : ℤ) by dsimp [m]; omega)
let f : Path (tall m) p :=
⟨⟨fun t ↦ H (t, tall m), H.continuous.comp (continuous_id.prodMk continuous_const)⟩,
H.apply_zero _, H.apply_one _⟩
have he := label_eq_endpoints (k := k) f fun t ↦ by
have ht : k - 1 < length (f t) := hprod ⟨hUall (mem_univ t), hyV⟩
omega
have hi : -(m : ℤ) - 1 < k := by dsimp [m]; omega
have hmem : -(m : ℤ) - 1 ∈ label k (tall m) := by simp [label, ones, tall, hi]
rw [he] at hmem
have hl := hb (show -(m : ℤ) - 1 ∈ (↑(ones p) : Set ℤ) from (Finset.mem_filter.mp hmem).1)
dsimp [m] at hl
omega
On this site: Gao's space of binary functions: Noncontractibility