Lean library · module TopologyByExample.Spaces.RealsCocountablePoint

The real line with a cocountable point

Source file

The space ℝ ∪ {∞} in which ℝ is an open subspace with its usual topology and the open sets containing the extra point ∞ are the sets U ∪ {∞} with U open in ℝ and cocountable. Every neighbourhood of ∞ is dense, so the space is strongly connected (every continuous real function is constant) but not Hausdorff. No sequence of reals converges to ∞, so ℝ is an open sequentially closed set that is not closed: the space is not sequential, and no path leaves ℝ, so it is not path connected.

Main definitions

Main statements

Tags

cocountable, strongly connected, not path connected, not sequential, counterexample

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

definition RealsCocountablePoint

TopologyByExample.RealsCocountablePoint

The real line with a cocountable point: ℝ ∪ {∞}, where ℝ is open with its usual topology and the open sets containing ∞ are the sets U ∪ {∞} with U open in ℝ and cocountable.

def RealsCocountablePoint : Type
:= Option ℝ

On this site: Space: Real line with a cocountable point

definition ofReal

TopologyByExample.RealsCocountablePoint.ofReal

The real point x of the space.

def ofReal : ℝ → RealsCocountablePoint
:= Option.some

definition infty

TopologyByExample.RealsCocountablePoint.infty

The extra point ∞ of the space.

def infty : RealsCocountablePoint
:= Option.none

instance

The space is nonempty.

instance : Nonempty RealsCocountablePoint
Proof
:= ⟨infty⟩

theorem ofReal_injective

TopologyByExample.RealsCocountablePoint.ofReal_injective

theorem ofReal_injective : Function.Injective ofReal
Proof
:= Option.some_injective ℝ

theorem ofReal_ne_infty

TopologyByExample.RealsCocountablePoint.ofReal_ne_infty

theorem ofReal_ne_infty (x : ℝ) : ofReal x ≠ infty
Proof
:= Option.some_ne_none x

theorem eq_infty_or_exists

TopologyByExample.RealsCocountablePoint.eq_infty_or_exists

Every point is ∞ or real.

theorem eq_infty_or_exists (p : RealsCocountablePoint) : p = infty ∨ ∃ x, p = ofReal x
Proof
:= by
  cases p with
  | none => exact .inl rfl
  | some x => exact .inr ⟨x, rfl⟩

theorem infty_notMem_range

TopologyByExample.RealsCocountablePoint.infty_notMem_range

theorem infty_notMem_range : infty ∉ range ofReal
Proof
:= fun ⟨x, hx⟩ ↦ ofReal_ne_infty x hx

instance

The topology: a set is open if its real points form an open set of ℝ and, if it contains ∞, a cocountable one.

instance : TopologicalSpace RealsCocountablePoint
Proof
where
  IsOpen s := IsOpen (ofReal ⁻¹' s) ∧ (infty ∈ s → (ofReal ⁻¹' s)ᶜ.Countable)
  isOpen_univ := ⟨isOpen_univ, fun _ ↦ by simp⟩
  isOpen_inter s t hs ht := ⟨hs.1.inter ht.1, fun h ↦ by
    rw [preimage_inter, compl_inter]
    exact (hs.2 h.1).union (ht.2 h.2)⟩
  isOpen_sUnion S hS := ⟨by rw [preimage_sUnion]; exact isOpen_biUnion fun s hs ↦ (hS s hs).1,
    fun ⟨s, hs, h⟩ ↦ ((hS s hs).2 h).mono
      (compl_subset_compl.2 (preimage_mono (subset_sUnion_of_mem hs)))⟩

theorem isOpen_iff

TopologyByExample.RealsCocountablePoint.isOpen_iff

theorem isOpen_iff {s : Set RealsCocountablePoint} :
    IsOpen s ↔ IsOpen (ofReal ⁻¹' s) ∧ (infty ∈ s → (ofReal ⁻¹' s)ᶜ.Countable)
Proof
:= Iff.rfl

theorem continuous_ofReal

TopologyByExample.RealsCocountablePoint.continuous_ofReal

theorem continuous_ofReal : Continuous ofReal
Proof
:= ⟨fun _ hs ↦ hs.1⟩

theorem preimage_image_ofReal

TopologyByExample.RealsCocountablePoint.preimage_image_ofReal

The image of a set of reals contains no ∞, and its real points are the set itself.

theorem preimage_image_ofReal (s : Set ℝ) : ofReal ⁻¹' (ofReal '' s) = s
Proof
:=
  ofReal_injective.preimage_image s

theorem infty_notMem_image

TopologyByExample.RealsCocountablePoint.infty_notMem_image

theorem infty_notMem_image (s : Set ℝ) : infty ∉ ofReal '' s
Proof
:=
  fun ⟨x, _, hx⟩ ↦ ofReal_ne_infty x hx

theorem isOpenEmbedding_ofReal

TopologyByExample.RealsCocountablePoint.isOpenEmbedding_ofReal

ℝ is an open subspace of the space, with its usual topology.

theorem isOpenEmbedding_ofReal : IsOpenEmbedding ofReal
Proof
:=
  .of_continuous_injective_isOpenMap continuous_ofReal ofReal_injective fun U hU ↦
    ⟨by rwa [preimage_image_ofReal], fun h ↦ absurd h (infty_notMem_image U)⟩

theorem isOpen_range_ofReal

TopologyByExample.RealsCocountablePoint.isOpen_range_ofReal

theorem isOpen_range_ofReal : IsOpen (range ofReal)
Proof
:= isOpenEmbedding_ofReal.isOpen_range

theorem isClosed_image_of_countable

TopologyByExample.RealsCocountablePoint.isClosed_image_of_countable

The image of a closed countable set of reals is closed.

theorem isClosed_image_of_countable {C : Set ℝ} (hC : IsClosed C) (hCc : C.Countable) :
    IsClosed (ofReal '' C)
Proof
:= by
  refine ⟨⟨?_, fun _ ↦ ?_⟩⟩ <;> rw [preimage_compl, preimage_image_ofReal]
  · exact hC.isOpen_compl
  · rwa [compl_compl]

theorem nonempty_inter_of_mem_nhds_infty

TopologyByExample.RealsCocountablePoint.nonempty_inter_of_mem_nhds_infty

Every neighbourhood of ∞ meets every nonempty open set.

theorem nonempty_inter_of_mem_nhds_infty {s t : Set RealsCocountablePoint} (hs : s ∈ 𝓝 infty)
    (ht : IsOpen t) (htne : t.Nonempty) : (t ∩ s).Nonempty
Proof
:= by
  obtain ⟨u, hus, huo, hu⟩ := mem_nhds_iff.1 hs
  obtain ⟨p, hp⟩ := htne
  rcases eq_infty_or_exists p with rfl | ⟨x, rfl⟩
  · exact ⟨infty, hp, hus hu⟩
  · obtain ⟨y, hyt, hyu⟩ := ((huo.2 hu).dense_compl ℝ).inter_open_nonempty _ ht.1 ⟨x, hp⟩
    rw [compl_compl] at hyu
    exact ⟨ofReal y, hyt, hus hyu⟩

theorem dense_of_mem_nhds_infty

TopologyByExample.RealsCocountablePoint.dense_of_mem_nhds_infty

Every neighbourhood of ∞ is dense.

theorem dense_of_mem_nhds_infty {s : Set RealsCocountablePoint} (hs : s ∈ 𝓝 infty) : Dense s
Proof
:=
  dense_iff_inter_open.2 fun _ ht htne ↦ nonempty_inter_of_mem_nhds_infty hs ht htne

On this site: Real line with a cocountable point: Every neighbourhood of \(\infty\) is dense

theorem dense_range_ofReal

TopologyByExample.RealsCocountablePoint.dense_range_ofReal

ℝ is dense in the space.

theorem dense_range_ofReal : DenseRange ofReal
Proof
:= by
  refine dense_iff_inter_open.2 fun t ht ⟨p, hp⟩ ↦ ?_
  rcases eq_infty_or_exists p with rfl | ⟨x, rfl⟩
  · obtain ⟨q, hq, hqt⟩ := nonempty_inter_of_mem_nhds_infty (ht.mem_nhds hp) isOpen_range_ofReal
      ⟨ofReal 0, mem_range_self 0⟩
    exact ⟨q, hqt, hq⟩
  · exact ⟨ofReal x, hp, mem_range_self x⟩

theorem isPreconnected_of_isOpen_of_infty_mem

TopologyByExample.RealsCocountablePoint.isPreconnected_of_isOpen_of_infty_mem

An open set containing ∞ is connected.

theorem isPreconnected_of_isOpen_of_infty_mem {s : Set RealsCocountablePoint} (hs : IsOpen s)
    (h : infty ∈ s) : IsPreconnected s
Proof
:= by
  intro u v hu hv hsuv hsu hsv
  rcases hsuv h with hiu | hiv
  · obtain ⟨p, ⟨hps, hpv⟩, hpsu⟩ := nonempty_inter_of_mem_nhds_infty
      ((hs.inter hu).mem_nhds ⟨h, hiu⟩) (hs.inter hv) hsv
    exact ⟨p, hps, hpsu.2, hpv⟩
  · obtain ⟨p, ⟨hps, hpu⟩, hpsv⟩ := nonempty_inter_of_mem_nhds_infty
      ((hs.inter hv).mem_nhds ⟨h, hiv⟩) (hs.inter hu) hsu
    exact ⟨p, hps, hpu, hpsv.2⟩

theorem not_tendsto_ofReal_infty

TopologyByExample.RealsCocountablePoint.not_tendsto_ofReal_infty

No sequence of reals converges to ∞. After passing to a subsequence along which arctan xₙ converges, the terms of the subsequence lie in a closed countable set of reals C, and the complement of C is a neighbourhood of ∞.

theorem not_tendsto_ofReal_infty (x : ℕ → ℝ) : ¬Tendsto (ofReal ∘ x) atTop (𝓝 infty)
Proof
:= by
  intro hx
  obtain ⟨L, -, φ, hφ, hL⟩ :=
    (isCompact_Icc (a := -(Real.pi / 2)) (b := Real.pi / 2)).tendsto_subseq
      (x := Real.arctan ∘ x) fun n ↦ Ioo_subset_Icc_self (Real.arctan_mem_Ioo (x n))
  set C : Set ℝ := Real.arctan ⁻¹' insert L (range (Real.arctan ∘ x ∘ φ))
  have hCc : IsClosed C := hL.isCompact_insert_range.isClosed.preimage Real.continuous_arctan
  have hCn : C.Countable := ((countable_range _).insert L).preimage Real.arctan_injective
  have hmem : (ofReal '' C)ᶜ ∈ 𝓝 infty :=
    (isClosed_image_of_countable hCc hCn).isOpen_compl.mem_nhds (infty_notMem_image C)
  obtain ⟨k, hk⟩ := ((hx.comp hφ.tendsto_atTop).eventually hmem).exists
  exact hk ⟨x (φ k), .inr ⟨k, rfl⟩, rfl⟩

On this site: Real line with a cocountable point: No sequence of reals converges to \(\infty\)

theorem isSeqClosed_range_ofReal

TopologyByExample.RealsCocountablePoint.isSeqClosed_range_ofReal

ℝ is sequentially closed in the space.

theorem isSeqClosed_range_ofReal : IsSeqClosed (range ofReal)
Proof
:= by
  intro u p hu hup
  choose x hx using hu
  rcases eq_infty_or_exists p with rfl | ⟨y, rfl⟩
  · refine absurd ?_ (not_tendsto_ofReal_infty x)
    simpa [Function.comp_def, hx] using hup
  · exact mem_range_self y

Values

instance t1Space

TopologyByExample.RealsCocountablePoint.t1Space

The space is T₁.

instance t1Space : T1Space RealsCocountablePoint
Proof
where
  t1 p := by
    rcases eq_infty_or_exists p with rfl | ⟨x, rfl⟩
    · rw [← isOpen_compl_iff]
      convert isOpen_range_ofReal
      ext q
      rcases eq_infty_or_exists q with rfl | ⟨y, rfl⟩
      · simp [ofReal_ne_infty]
      · simp [ofReal_ne_infty]
    · rw [← image_singleton]
      exact isClosed_image_of_countable isClosed_singleton (countable_singleton x)

On this site: The real line with a cocountable point is T₁

theorem not_t2Space

TopologyByExample.RealsCocountablePoint.not_t2Space

The space is not Hausdorff: every neighbourhood of ∞ is dense, so a continuous map from the space to a Hausdorff space is constant, and the identity is not.

theorem not_t2Space : ¬T2Space RealsCocountablePoint
Proof
:= fun _ ↦
  ofReal_ne_infty 0 (apply_eq_of_forall_mem_nhds_dense (fun _ ↦ dense_of_mem_nhds_infty)
    continuous_id (ofReal 0))

On this site: The real line with a cocountable point is not Hausdorff

theorem stronglyConnectedSpace

TopologyByExample.RealsCocountablePoint.stronglyConnectedSpace

The space is strongly connected: every continuous real function is constant, since every neighbourhood of ∞ is dense.

theorem stronglyConnectedSpace : StronglyConnectedSpace RealsCocountablePoint
Proof
:=
  ⟨fun f p q ↦ (apply_eq_of_forall_mem_nhds_dense (fun _ ↦ dense_of_mem_nhds_infty)
    f.continuous p).trans (apply_eq_of_forall_mem_nhds_dense
      (fun _ ↦ dense_of_mem_nhds_infty) f.continuous q).symm⟩

On this site: The real line with a cocountable point is strongly connected

theorem separableSpace

TopologyByExample.RealsCocountablePoint.separableSpace

The space is separable: ℝ is dense in it.

theorem separableSpace : SeparableSpace RealsCocountablePoint
Proof
:=
  dense_range_ofReal.separableSpace continuous_ofReal

On this site: The real line with a cocountable point is separable

theorem sigmaCompactSpace

TopologyByExample.RealsCocountablePoint.sigmaCompactSpace

The space is σ-compact: it is the union of {∞} and the images of the intervals [-n, n].

theorem sigmaCompactSpace : SigmaCompactSpace RealsCocountablePoint
Proof
:= by
  refine .of_countable (insert {infty} (range fun n : ℕ ↦ ofReal '' Icc (-(n : ℝ)) n))
    ((countable_range _).insert _) ?_ ?_
  · simp only [forall_mem_insert, isCompact_singleton, forall_mem_range, true_and]
    exact fun n ↦ isCompact_Icc.image continuous_ofReal
  · refine eq_univ_of_forall fun p ↦ ?_
    rcases eq_infty_or_exists p with rfl | ⟨x, rfl⟩
    · exact mem_sUnion_of_mem rfl (mem_insert _ _)
    · obtain ⟨n, hn⟩ := exists_nat_ge |x|
      exact mem_sUnion.2 ⟨_, mem_insert_of_mem _ ⟨n, rfl⟩, x, abs_le.1 hn, rfl⟩

On this site: The real line with a cocountable point is σ-compact

theorem locallyConnectedSpace

TopologyByExample.RealsCocountablePoint.locallyConnectedSpace

The space is locally connected: the real points have the usual interval neighbourhoods, and every open set containing ∞ is connected.

theorem locallyConnectedSpace : LocallyConnectedSpace RealsCocountablePoint
Proof
:= by
  refine locallyConnectedSpace_iff_subsets_isOpen_isConnected.2 fun p U hU ↦ ?_
  rcases eq_infty_or_exists p with rfl | ⟨x, rfl⟩
  · exact ⟨interior U, interior_subset, isOpen_interior, mem_interior_iff_mem_nhds.2 hU,
      ⟨_, mem_interior_iff_mem_nhds.2 hU⟩,
      isPreconnected_of_isOpen_of_infty_mem isOpen_interior (mem_interior_iff_mem_nhds.2 hU)⟩
  · obtain ⟨ε, hε, hεU⟩ := Metric.mem_nhds_iff.1 (continuous_ofReal.continuousAt hU)
    rw [Real.ball_eq_Ioo] at hεU
    refine ⟨ofReal '' Ioo (x - ε) (x + ε), image_subset_iff.2 hεU,
      isOpenEmbedding_ofReal.isOpenMap _ isOpen_Ioo, ⟨x, ⟨by linarith, by linarith⟩, rfl⟩, ?_⟩
    exact (isConnected_Ioo (by linarith)).image _ continuous_ofReal.continuousOn

On this site: The real line with a cocountable point is locally connected

theorem baireSpace_range_ofReal

TopologyByExample.RealsCocountablePoint.baireSpace_range_ofReal

The real line, as the open subspace of the space, is a Baire space.

theorem baireSpace_range_ofReal : BaireSpace (range ofReal)
Proof
:= by
  let e := isOpenEmbedding_ofReal.toIsEmbedding.toHomeomorph
  refine baireSpace_of_continuous_of_surjective e.symm.continuous e.symm.surjective
    fun U hU hUne ↦ ⟨e.symm '' U, e.symm.isOpenMap U hU, hUne.image _, ?_⟩
  rw [e.symm.preimage_image]

theorem baireSpace

TopologyByExample.RealsCocountablePoint.baireSpace

The space is a Baire space: it has the dense open Baire subspace ℝ.

theorem baireSpace : BaireSpace RealsCocountablePoint
Proof
:=
  haveI := baireSpace_range_ofReal
  baireSpace_of_isOpen_of_dense isOpen_range_ofReal dense_range_ofReal

On this site: The real line with a cocountable point is a Baire space

theorem not_pathPreconnectedSpace

TopologyByExample.RealsCocountablePoint.not_pathPreconnectedSpace

The space is not path connected: no path joins a real point to ∞, since ℝ is open and sequentially closed.

theorem not_pathPreconnectedSpace : ¬PathPreconnectedSpace RealsCocountablePoint
Proof
:= fun h ↦
  infty_notMem_range <| TopologyByExample.Joined.mem_of_isOpen_of_isSeqClosed
    isOpen_range_ofReal isSeqClosed_range_ofReal (h.joined (ofReal 0) infty) (mem_range_self 0)

On this site: The real line with a cocountable point is not path connected

theorem not_preirreducibleSpace

TopologyByExample.RealsCocountablePoint.not_preirreducibleSpace

The space is not hyperconnected: (-∞, 0) and (0, ∞) are disjoint nonempty open sets.

theorem not_preirreducibleSpace : ¬PreirreducibleSpace RealsCocountablePoint
Proof
:= fun h ↦ by
  obtain ⟨p, -, hp₁, hp₂⟩ := h.isPreirreducible_univ (ofReal '' Iio 0) (ofReal '' Ioi 0)
    (isOpenEmbedding_ofReal.isOpenMap _ isOpen_Iio) (isOpenEmbedding_ofReal.isOpenMap _ isOpen_Ioi)
    ⟨ofReal (-1), trivial, -1, show (-1 : ℝ) < 0 by norm_num, rfl⟩
    ⟨ofReal 1, trivial, 1, show (0 : ℝ) < 1 by norm_num, rfl⟩
  obtain ⟨x, hx₁, rfl⟩ := hp₁
  obtain ⟨y, hy₂, hxy⟩ := hp₂
  rw [ofReal_injective hxy] at hy₂
  exact lt_asymm (show x < 0 from hx₁) hy₂

On this site: The real line with a cocountable point is not hyperconnected

theorem not_totallyPathDisconnectedSpace

TopologyByExample.RealsCocountablePoint.not_totallyPathDisconnectedSpace

The space is not totally path disconnected: the real points 0 and 1 are joined by a path in ℝ.

theorem not_totallyPathDisconnectedSpace :
    ¬TotallyPathDisconnectedSpace RealsCocountablePoint
Proof
:= fun ⟨h⟩ ↦ by
  have := h _ _ ((PathConnectedSpace.joined (0 : ℝ) 1).map continuous_ofReal)
  exact zero_ne_one (ofReal_injective this)

On this site: The real line with a cocountable point is not totally path disconnected

theorem not_semiregularSpace

TopologyByExample.RealsCocountablePoint.not_semiregularSpace

The space is not semiregular: every neighbourhood of ∞ is dense, and {0}ᶜ is a neighbourhood of ∞ other than the whole space.

theorem not_semiregularSpace : ¬SemiregularSpace RealsCocountablePoint
Proof
:=
  not_semiregularSpace_of_forall_mem_nhds_dense (fun _ ↦ dense_of_mem_nhds_infty)
    (isOpen_compl_singleton.mem_nhds (ofReal_ne_infty 0).symm)
    (fun h ↦ (h ▸ mem_univ (ofReal 0) : ofReal 0 ∈ ({ofReal 0}ᶜ : Set _)) rfl)

On this site: The real line with a cocountable point is not semiregular

theorem not_weaklyLocallyCompactSpace

TopologyByExample.RealsCocountablePoint.not_weaklyLocallyCompactSpace

The space is not weakly locally compact: ∞ has no compact neighbourhood. A neighbourhood of ∞ contains the reals n + t, n ∈ ℕ, for some t ∈ (0, 1), and these form a closed set of the space that is not compact.

theorem not_weaklyLocallyCompactSpace : ¬WeaklyLocallyCompactSpace RealsCocountablePoint
Proof
:=
  fun _ ↦ by
  obtain ⟨K, hK, hKn⟩ := exists_compact_mem_nhds infty
  obtain ⟨s, hsK, hso, hs⟩ := mem_nhds_iff.1 hKn
  have hA : (ofReal ⁻¹' s)ᶜ.Countable := hso.2 hs
  obtain ⟨t, ht, htS⟩ := ((hA.image Int.fract).dense_compl ℝ).inter_open_nonempty (Ioo 0 1)
    isOpen_Ioo (nonempty_Ioo.2 one_pos)
  have hmem (n : ℕ) : (n : ℝ) + t ∈ ofReal ⁻¹' s := by
    by_contra hn
    refine htS ⟨_, hn, ?_⟩
    rw [add_comm, Int.fract_add_natCast, Int.fract_eq_self]
    exact ⟨ht.1.le, ht.2⟩
  set D : Set ℝ := range fun n : ℕ ↦ (n : ℝ) + t
  have hDc : IsClosed D := by
    have : D = (Homeomorph.addRight t) '' range ((↑) : ℕ → ℝ) := by
      ext; simp [D, eq_add_neg_iff_add_eq]
    rw [this]
    exact (Homeomorph.addRight t).isClosedMap _ Nat.isClosedEmbedding_coe_real.isClosed_range
  have hcpt : IsCompact (ofReal '' D) :=
    hK.of_isClosed_subset (isClosed_image_of_countable hDc (countable_range _))
      (image_subset_iff.2 fun _ ⟨n, hn⟩ ↦ hsK (hn ▸ hmem n))
  obtain ⟨b, hb⟩ := (isOpenEmbedding_ofReal.isInducing.isCompact_iff.2 hcpt).isBounded.bddAbove
  obtain ⟨n, hn⟩ := exists_nat_gt b
  have := hb ⟨n, rfl⟩
  linarith [ht.1]

On this site: The real line with a cocountable point is not weakly locally compact

theorem not_sequentialSpace

TopologyByExample.RealsCocountablePoint.not_sequentialSpace

The space is not sequential: ℝ is sequentially closed but not closed.

theorem not_sequentialSpace : ¬SequentialSpace RealsCocountablePoint
Proof
:= fun _ ↦ by
  have h := isSeqClosed_range_ofReal.isClosed.closure_eq
  rw [dense_range_ofReal.closure_range] at h
  exact infty_notMem_range (h ▸ mem_univ infty)

On this site: The real line with a cocountable point is not sequential

theorem not_countablyParacompactSpace

TopologyByExample.RealsCocountablePoint.not_countablyParacompactSpace

The space is not countably paracompact. The sets Fₙ of natural numbers ≥ n are closed, decrease and have empty intersection, but ∞ lies in the closure of every nonempty open set, so of every open set containing Fₙ.

theorem not_countablyParacompactSpace : ¬CountablyParacompactSpace RealsCocountablePoint
Proof
:=
  fun _ ↦ by
  set F : ℕ → Set RealsCocountablePoint :=
    fun n ↦ ofReal '' range fun k : ℕ ↦ ((k + n : ℕ) : ℝ)
  have hFc (n : ℕ) : IsClosed (F n) := by
    refine isClosed_image_of_countable ?_ (countable_range _)
    rw [show (range fun k : ℕ ↦ ((k + n : ℕ) : ℝ)) =
      (↑) '' range fun k : ℕ ↦ k + n from range_comp _ _]
    exact Nat.isClosedEmbedding_coe_real.isClosedMap _ (isClosed_discrete _)
  have hFa : Antitone F := fun m n hmn ↦ image_mono fun _ ⟨k, hk⟩ ↦
    ⟨k + (n - m), by dsimp only at hk ⊢; rw [← hk, show k + (n - m) + m = k + n by omega]⟩
  have hF : ⋂ n, F n = ∅ := by
    refine eq_empty_of_forall_notMem fun p hp ↦ ?_
    obtain ⟨_, ⟨k, rfl⟩, rfl⟩ := mem_iInter.1 hp 0
    obtain ⟨_, ⟨j, rfl⟩, hjk⟩ := mem_iInter.1 hp (k + 1)
    have := ofReal_injective hjk
    dsimp only at this
    norm_cast at this
    omega
  obtain ⟨G, hGo, hFG, -, hG⟩ :=
    CountablyParacompactSpace.exists_open_iInter_closure_eq_empty hFc hFa hF
  have : infty ∈ ⋂ n, closure (G n) := mem_iInter.2 fun n ↦ mem_closure_iff_nhds.2 fun t ht ↦ by
    obtain ⟨q, hqG, hqt⟩ := nonempty_inter_of_mem_nhds_infty ht (hGo n)
      ⟨_, hFG n ⟨_, ⟨0, rfl⟩, rfl⟩⟩
    exact ⟨q, hqt, hqG⟩
  rw [hG] at this
  exact this

On this site: The real line with a cocountable point is not countably paracompact