Lean library · module TopologyByExample.Spaces.TangoraProperties
Covering, category and path properties of Tangora's space
The rationals form a countable dense set. Their complement is a closed discrete set of cardinality continuum, so compact subsets meet it in finitely many points.
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 irrationals
TopologyByExample.Tangora.irrationals
The irrationals in the refined topology.
def irrationals : Set Tangora
:= toReal ⁻¹' rationalᶜ
theorem countable_rationals
TopologyByExample.Tangora.countable_rationals
The rational points form a countable subset.
theorem countable_rationals : (toReal ⁻¹' rational).Countable
Proof
:=
(countable_range ((↑) : ℚ → ℝ)).preimage toReal.injective
theorem dense_rationals
TopologyByExample.Tangora.dense_rationals
The rational points are dense in the refined topology.
theorem dense_rationals : Dense (toReal ⁻¹' rational)
Proof
:= by
intro x
apply (mem_closure_iff_nhds_basis (nhds_basis x)).2
intro U hU
obtain ⟨d, hd, hdc, hdr⟩ := exists_dense_core (toReal x)
obtain ⟨p, hp, hpd⟩ := hd.inter_open_nonempty U hU.2 ⟨_, hU.1⟩
exact ⟨toReal.symm p, hdr hpd, hp, hdc hpd⟩
instance
instance : SeparableSpace Tangora
Proof
:= ⟨⟨_, countable_rationals, dense_rationals⟩⟩
theorem isClosed_irrationals
TopologyByExample.Tangora.isClosed_irrationals
The irrational points form a closed subset.
theorem isClosed_irrationals : IsClosed irrationals
Proof
:= by
apply IsOpen.isClosed_compl (s := toReal ⁻¹' rational)
apply isOpen_iff_mem_nhds.2
intro x hx
apply (nhds_basis x).mem_iff.2
refine ⟨univ, ⟨mem_univ _, isOpen_univ⟩, fun _ hz ↦ ?_⟩
rcases core_cases (toReal x) with h | h | h
· exact dyadic_subset_rational (core_of_dyadic h ▸ hz.2)
· exact (show _ ∈ other from core_of_other h ▸ hz.2).1
· exact (h hx).elim
theorem isDiscrete_irrationals
TopologyByExample.Tangora.isDiscrete_irrationals
The subspace of irrational points is discrete.
theorem isDiscrete_irrationals : IsDiscrete irrationals
Proof
:= by
apply isDiscrete_iff_forall_mem_exists_isOpen.2
intro x hx
refine ⟨_, isOpen_core (toReal x), ?_⟩
ext y
change (toReal y ∈ core (toReal x) ∧ toReal y ∉ rational) ↔ y = x
rw [core_of_irrational hx]
constructor
· rintro ⟨(he | h), hi⟩
· exact toReal.injective he
· exact (hi h).elim
· rintro rfl
exact ⟨mem_insert _ _, hx⟩
theorem cardinality
TopologyByExample.Tangora.cardinality
Tangora’s space has cardinality continuum.
theorem cardinality : #Tangora = 𝔠
Proof
:= (mk_congr toReal).trans mk_real
On this site: Tangora's connected space has cardinality equal to \(\mathfrak{c}\)
theorem cardinal_irrationals
TopologyByExample.Tangora.cardinal_irrationals
The irrational subspace has cardinality continuum.
theorem cardinal_irrationals : #irrationals = 𝔠
Proof
:= by
have : Infinite Tangora := toReal.infinite_iff.2 inferInstance
have h : #(toReal ⁻¹' rational) < #Tangora := by
have := countable_rationals.to_subtype
rw [cardinality]
exact mk_le_aleph0.trans_lt aleph0_lt_continuum
exact (mk_compl_of_infinite _ h).trans cardinality
theorem exists_closed_discrete_continuum_le
TopologyByExample.Tangora.exists_closed_discrete_continuum_le
There is a closed discrete subset of cardinality continuum.
theorem exists_closed_discrete_continuum_le :
∃ s : Set Tangora, IsClosed s ∧ IsDiscrete s ∧ 𝔠 ≤ #s
Proof
:=
⟨_, isClosed_irrationals, isDiscrete_irrationals, cardinal_irrationals.ge⟩
On this site: Tangora's connected space has a closed discrete subset of cardinality \(\mathfrak{c}\)
theorem countablyMetacompactSpace
TopologyByExample.Tangora.countablyMetacompactSpace
Tangora’s space is countably metacompact.
theorem countablyMetacompactSpace : CountablyMetacompactSpace Tangora
Proof
:=
countablyMetacompactSpace_of_closed_discrete_countable_compl
isClosed_irrationals isDiscrete_irrationals (by simpa [irrationals] using countable_rationals)
On this site: Tangora's connected space is countably metacompact
theorem submetrizableSpace
TopologyByExample.Tangora.submetrizableSpace
The Euclidean topology witnesses submetrizability.
theorem submetrizableSpace : SubmetrizableSpace Tangora
Proof
:= by
refine ⟨induced toReal inferInstance, continuous_iff_le_induced.1 continuous_toReal, ?_⟩
exact @IsEmbedding.metrizableSpace Tangora ℝ (induced toReal inferInstance) _ _ _
(@IsEmbedding.mk Tangora ℝ (induced toReal inferInstance) _ toReal
(@IsInducing.induced Tangora ℝ _ toReal) toReal.injective)
On this site: Tangora's connected space is submetrizable
theorem not_pseudocompactSpace
TopologyByExample.Tangora.not_pseudocompactSpace
The unbounded real coordinate obstructs pseudocompactness.
theorem not_pseudocompactSpace : ¬ PseudocompactSpace Tangora
Proof
:= by
intro ⟨h⟩
obtain ⟨⟨b, hb⟩, -⟩ := h ⟨toReal, continuous_toReal⟩
exact (hb ⟨toReal.symm (b + 1), toReal.apply_symm_apply _⟩).not_gt (lt_add_one b)
On this site: Tangora's connected space is not pseudocompact
theorem singleton_not_open
TopologyByExample.Tangora.singleton_not_open
private theorem singleton_not_open (x : Tangora) : ¬ IsOpen ({x} : Set Tangora)
Proof
:= by
intro h
rcases isClopen_iff.1 ⟨isClosed_singleton, h⟩ with he | he <;> simp_all
theorem meagre_univ
TopologyByExample.Tangora.meagre_univ
Tangora’s space is a countable union of nowhere dense subsets.
theorem meagre_univ : IsMeagre (univ : Set Tangora)
Proof
:= by
have hi : IsNowhereDense irrationals := isClosed_isNowhereDense_iff_compl.2
⟨isClosed_irrationals.isOpen_compl, by simpa [irrationals] using dense_rationals⟩ |>.2
have hr : IsMeagre (toReal ⁻¹' rational) := by
rw [← biUnion_of_singleton (toReal ⁻¹' rational)]
apply isMeagre_biUnion countable_rationals
intro x _
apply IsNowhereDense.isMeagre
have : NeBot (𝓝[≠] x) :=
⟨fun h ↦ singleton_not_open x ((isOpen_singleton_iff_punctured_nhds x).2 h)⟩
change interior (closure {x}) = ∅
rw [closure_singleton]
exact interior_singleton x
simpa [irrationals, ← preimage_union] using hr.union hi.isMeagre
theorem not_secondCategory
TopologyByExample.Tangora.not_secondCategory
Tangora’s space is not of second category.
theorem not_secondCategory : ¬ ¬ IsMeagre (univ : Set Tangora)
Proof
:=
fun h ↦ h meagre_univ
On this site: Tangora's connected space is not of second category
theorem countable_of_isCompact
TopologyByExample.Tangora.countable_of_isCompact
Compact subsets contain only finitely many irrational points and therefore are countable.
theorem countable_of_isCompact {K : Set Tangora} (hK : IsCompact K) : K.Countable
Proof
:= by
have hfin := (hK.inter_left isClosed_irrationals).finite
(isDiscrete_irrationals.mono inter_subset_left)
apply (hfin.countable.union countable_rationals).mono
intro x hx
by_cases h : toReal x ∈ rational
· exact Or.inr h
· exact Or.inl ⟨h, hx⟩
On this site: Tangora's connected space: Countability of compact subsets
theorem totallyDisconnected_countable
TopologyByExample.Tangora.totallyDisconnected_countable
private theorem totallyDisconnected_countable {s : Set Tangora} (h : s.Countable) :
IsTotallyDisconnected s
Proof
:=
isTotallyDisconnected_of_image continuous_toReal.continuousOn toReal.injective
(h.image toReal).isTotallyDisconnected
theorem totallyPathDisconnectedSpace
TopologyByExample.Tangora.totallyPathDisconnectedSpace
Every path in Tangora’s space is constant.
theorem totallyPathDisconnectedSpace : TotallyPathDisconnectedSpace Tangora
Proof
:= by
refine ⟨fun x y ⟨p⟩ ↦ ?_⟩
have h := totallyDisconnected_countable (countable_of_isCompact (isCompact_range p.continuous))
exact h _ Subset.rfl (isPreconnected_range p.continuous) ⟨0, p.source⟩ ⟨1, p.target⟩
On this site: Tangora's connected space is totally path disconnected
theorem not_locallyConnectedSpace
TopologyByExample.Tangora.not_locallyConnectedSpace
Tangora’s space is not locally connected.
theorem not_locallyConnectedSpace : ¬ LocallyConnectedSpace Tangora
Proof
:= by
intro h
obtain ⟨a, ha⟩ := dense_dyadic.nonempty
let x := toReal.symm a
have hA : IsOpen (toReal ⁻¹' dyadic) := core_of_dyadic ha ▸ isOpen_core a
obtain ⟨V, hV, ho, hx, hc⟩ := locallyConnectedSpace_iff_subsets_isOpen_isConnected.1 h x _
(hA.mem_nhds (show x ∈ toReal ⁻¹' dyadic from ha))
have hcnt : V.Countable :=
countable_rationals.mono (hV.trans (preimage_mono dyadic_subset_rational))
have hone := totallyDisconnected_countable hcnt V Subset.rfl hc.isPreconnected
have he : V = {x} := Subset.antisymm (fun _ hy ↦ hone hy hx) (singleton_subset_iff.2 hx)
exact singleton_not_open x (he ▸ ho)
On this site: Tangora's connected space is not locally connected
theorem not_semiregularSpace
TopologyByExample.Tangora.not_semiregularSpace
Tangora’s space has no basis of regular open sets.
theorem not_semiregularSpace : ¬ SemiregularSpace Tangora
Proof
:= by
obtain ⟨c, hc⟩ := dense_compl_rational.nonempty
let x := toReal.symm c
intro ⟨h⟩
obtain ⟨V, hreg, hxV, hsub⟩ := h.isOpen_iff.1 (isOpen_core c) x (mem_core c)
have ho : IsOpen V := hreg ▸ isOpen_interior
obtain ⟨U, ⟨hcU, hU⟩, hUV⟩ := (nhds_basis x).mem_iff.1 (ho.mem_nhds hxV)
have hcl : toReal ⁻¹' U ⊆ closure V := by
intro y hy
apply (mem_closure_iff_nhds_basis (nhds_basis y)).2
intro W hW
obtain ⟨d, hd, hdc, hdr⟩ := exists_dense_core (toReal y)
obtain ⟨p, ⟨hpU, hpW⟩, hpd⟩ := hd.inter_open_nonempty (U ∩ W) (hU.inter hW.2) ⟨_, hy, hW.1⟩
refine ⟨toReal.symm p, hUV ⟨hpU, ?_⟩, hpW, hdc hpd⟩
exact (core_of_irrational hc) ▸ Or.inr (hdr hpd)
have hUV' : toReal ⁻¹' U ⊆ V := hreg ▸ interior_maximal hcl (hU.preimage continuous_toReal)
have hne : (U \ {c}).Nonempty := (dense_compl_singleton c).inter_open_nonempty U hU ⟨_, hcU⟩
obtain ⟨p, ⟨hpU, hpc⟩, hpi⟩ := dense_compl_rational.inter_open_nonempty (U \ {c})
(hU.sdiff isClosed_singleton) hne
have hp := hsub (hUV' (show toReal.symm p ∈ toReal ⁻¹' U from hpU))
exact ((core_of_irrational hc ▸ hp : p ∈ insert c rational)).elim hpc hpi
On this site: Tangora's connected space is not semiregular