Lean library · module TopologyByExample.Spaces.NaturalsContinuumPower

The continuum power of the discrete natural numbers

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

definition NaturalsContinuumPower

TopologyByExample.NaturalsContinuumPower

The product of continuum many copies of the discrete natural numbers.

abbrev NaturalsContinuumPower
:= unitInterval → ℕ

On this site: Space: Continuum power of the discrete naturals

definition quantize

TopologyByExample.NaturalsContinuumPower.quantize

Quantize a continuous real-valued function at every coordinate.

noncomputable def quantize (f : C(unitInterval, ℝ)) : NaturalsContinuumPower
:=
  fun i ↦ ⌊f i⌋₊

theorem denseRange_quantized

TopologyByExample.NaturalsContinuumPower.denseRange_quantized

Quantizations of a countable dense sequence of continuous maps are dense in the power.

theorem denseRange_quantized :
    DenseRange (fun n : ℕ ↦ quantize (denseSeq C(unitInterval, ℝ) n))
Proof
:= by
  apply dense_iff_inter_open.2
  intro U hU ⟨x, hx⟩
  obtain ⟨I, A, hA, hAU⟩ := isOpen_pi_iff.mp hU x hx
  let : Finite (I : Set unitInterval) := I.finite_toSet.to_subtype
  let f : C((I : Set unitInterval), ℝ) :=
    ⟨fun i ↦ (x i : ℝ) + 1 / 2, continuous_of_discreteTopology⟩
  obtain ⟨g, hg⟩ := f.exists_restrict_eq I.finite_toSet.isClosed
  let V : Set C(unitInterval, ℝ) := ⋂ i ∈ I, {h | (x i : ℝ) < h i ∧ h i < (x i : ℝ) + 1}
  have hV : IsOpen V := by
    apply isOpen_biInter_finset
    intro i _
    have he : Continuous (fun h : C(unitInterval, ℝ) ↦ h i) := continuous_eval_const i
    exact (isOpen_lt continuous_const he).inter (isOpen_lt he continuous_const)
  have hgV : g ∈ V := by
    simp only [V, mem_iInter, mem_ofPred_eq]
    intro i hi
    have he := congrArg (fun h : C((I : Set unitInterval), ℝ) ↦ h ⟨i, hi⟩) hg
    change g i = (x i : ℝ) + 1 / 2 at he
    constructor <;> linarith
  obtain ⟨n, hn⟩ := (denseRange_denseSeq C(unitInterval, ℝ)).exists_mem_open hV ⟨g, hgV⟩
  refine ⟨_, hAU ?_, ⟨n, rfl⟩⟩
  intro i hi
  have hni := mem_iInter.1 (mem_iInter.1 hn i) hi
  have he : quantize (denseSeq C(unitInterval, ℝ) n) i = x i := by
    apply (Nat.floor_eq_iff (le_trans (Nat.cast_nonneg _) hni.1.le)).2
    exact ⟨hni.1.le, hni.2⟩
  simpa only [he] using (hA i hi).2

theorem separableSpace

TopologyByExample.NaturalsContinuumPower.separableSpace

The continuum power of the naturals is separable.

theorem separableSpace : SeparableSpace NaturalsContinuumPower
Proof
:=
  denseRange_quantized.separableSpace continuous_of_discreteTopology

On this site: The continuum power of the discrete naturals is separable

definition distanceCode

TopologyByExample.NaturalsContinuumPower.distanceCode

A point is encoded by zero at its own coordinate and reciprocal distances elsewhere.

noncomputable def distanceCode (a : unitInterval) : NaturalsContinuumPower
:=
  fun t ↦ if a = t then 0 else ⌈1 / dist a t⌉₊ + 1

theorem distanceCode_eq_zero_iff

TopologyByExample.NaturalsContinuumPower.distanceCode_eq_zero_iff

Only the coordinate equal to the parameter has code zero.

theorem distanceCode_eq_zero_iff (a t : unitInterval) : distanceCode a t = 0 ↔ a = t
Proof
:= by
  classical
  simp [distanceCode]

theorem distanceCode_injective

TopologyByExample.NaturalsContinuumPower.distanceCode_injective

The reciprocal-distance coding is injective.

theorem distanceCode_injective : Function.Injective distanceCode
Proof
:= by
  intro a b h
  have he := congrFun h b
  apply (distanceCode_eq_zero_iff a b).mp
  simpa [distanceCode] using he

theorem distanceCode_ne_of_close

TopologyByExample.NaturalsContinuumPower.distanceCode_ne_of_close

Near a coordinate, a code cannot equal a fixed positive integer.

theorem distanceCode_ne_of_close {a t : unitInterval} {k : ℕ} (hk : 0 < k)
    (hclose : dist a t < 1 / ((k : ℝ) + 1)) : distanceCode a t ≠ k
Proof
:= by
  classical
  by_cases he : a = t
  · simpa [distanceCode, he] using hk.ne
  intro h
  have hd : 0 < dist a t := dist_pos.mpr he
  have hc := Nat.le_ceil (1 / dist a t)
  have hc' := congrArg (fun n : ℕ ↦ (n : ℝ)) h
  simp only [distanceCode, ite_eq_right_iff.mpr (fun h ↦ (he h).elim), Nat.cast_add,
    Nat.cast_one] at hc'
  have hbound : 1 / dist a t ≤ (k : ℝ) := by linarith
  have hm := (div_le_iff₀ hd).mp hbound
  have hn := (lt_div_iff₀ (show (0 : ℝ) < (k : ℝ) + 1 by positivity)).mp hclose
  nlinarith

theorem isOpen_coordinate_eq

TopologyByExample.NaturalsContinuumPower.isOpen_coordinate_eq

private theorem isOpen_coordinate_eq (a : unitInterval) (n : ℕ) :
    IsOpen {f : NaturalsContinuumPower | f a = n}
Proof
:= by
  have hc : Continuous (fun f : NaturalsContinuumPower ↦ f a) := continuous_apply a
  exact (isOpen_discrete ({n} : Set ℕ)).preimage hc

theorem isDiscrete_range_distanceCode

TopologyByExample.NaturalsContinuumPower.isDiscrete_range_distanceCode

The reciprocal-distance image is a discrete subset of the product.

theorem isDiscrete_range_distanceCode : IsDiscrete (range distanceCode)
Proof
:= by
  classical
  apply isDiscrete_iff_forall_mem_exists_isOpen.2
  rintro _ ⟨a, rfl⟩
  refine ⟨{f | f a = 0}, isOpen_coordinate_eq a 0, ?_⟩
  ext f
  constructor
  · rintro ⟨h, ⟨b, rfl⟩⟩
    have he := (distanceCode_eq_zero_iff b a).mp h
    exact he ▸ rfl
  · rintro rfl
    exact ⟨(distanceCode_eq_zero_iff a a).mpr rfl, mem_range_self a⟩

theorem isClosed_range_distanceCode

TopologyByExample.NaturalsContinuumPower.isClosed_range_distanceCode

The reciprocal-distance image is closed in the product.

theorem isClosed_range_distanceCode : IsClosed (range distanceCode)
Proof
:= by
  classical
  apply isClosed_of_closure_subset
  intro p hp
  by_cases hzero : ∃ a, p a = 0
  · obtain ⟨a, ha⟩ := hzero
    refine ⟨a, ?_⟩
    funext i
    let U : Set NaturalsContinuumPower := {f | f a = 0} ∩ {f | f i = p i}
    have hU : IsOpen U :=
      (isOpen_coordinate_eq a 0).inter
        (isOpen_coordinate_eq i (p i))
    obtain ⟨f, hfU, ⟨b, rfl⟩⟩ := mem_closure_iff.1 hp U hU ⟨ha, rfl⟩
    have he := (distanceCode_eq_zero_iff b a).mp hfU.1
    have hh : distanceCode b i = p i := hfU.2
    simpa only [he] using hh
  · have hk (a : unitInterval) : 0 < p a := Nat.pos_of_ne_zero (not_exists.mp hzero a)
    let U (a : unitInterval) := Metric.ball a (1 / ((p a : ℝ) + 1))
    have hcover : (univ : Set unitInterval) ⊆ ⋃ a, U a := by
      intro a _
      exact mem_iUnion.mpr ⟨a, Metric.mem_ball_self (by positivity)⟩
    obtain ⟨F, hF⟩ := isCompact_univ.elim_finite_subcover U
      (fun _ ↦ Metric.isOpen_ball) hcover
    let V : Set NaturalsContinuumPower := ⋂ a ∈ F, {f | f a = p a}
    have hV : IsOpen V := isOpen_biInter_finset fun a _ ↦
      isOpen_coordinate_eq a (p a)
    have hpV : p ∈ V := by simp [V]
    obtain ⟨f, hfV, ⟨a, rfl⟩⟩ := mem_closure_iff.1 hp V hV hpV
    obtain ⟨b, hb, hab⟩ := mem_iUnion₂.mp (hF (mem_univ a))
    have he := mem_iInter.1 (mem_iInter.1 hfV b) hb
    exact ((distanceCode_ne_of_close (hk b) hab) he).elim

theorem not_normalSpace

TopologyByExample.NaturalsContinuumPower.not_normalSpace

The continuum power is not normal.

theorem not_normalSpace : ¬NormalSpace NaturalsContinuumPower
Proof
:= by
  let := separableSpace
  let := isDiscrete_iff_discreteTopology.mp isDiscrete_range_distanceCode
  apply isClosed_range_distanceCode.not_normal_of_continuum_le_mk
  rw [← mk_unitInterval]
  exact mk_le_of_injective (f := fun a ↦ (⟨distanceCode a, mem_range_self a⟩ : range distanceCode))
    (fun a b h ↦ distanceCode_injective (congrArg Subtype.val h))

theorem not_firstCountableTopology

TopologyByExample.NaturalsContinuumPower.not_firstCountableTopology

The continuum power is not first countable.

theorem not_firstCountableTopology : ¬FirstCountableTopology NaturalsContinuumPower
Proof
:= by
  classical
  intro h
  let z : NaturalsContinuumPower := fun _ ↦ 0
  obtain ⟨U, hU, hB⟩ := (nhds_basis_opens z).exists_antitone_subbasis
  have hchoose (n : ℕ) := isOpen_pi_iff.mp (hU n).2 z (hU n).1
  choose I A hA hsub using hchoose
  have hcount : (⋃ n, (I n : Set unitInterval)).Countable :=
    countable_iUnion fun n ↦ (I n).finite_toSet.countable
  have hne : (⋃ n, (I n : Set unitInterval)) ≠ Set.univ := by
    intro he
    have hc : Countable unitInterval := Set.countable_univ_iff.mp (he ▸ hcount)
    have hle := Cardinal.mk_le_aleph0 (α := unitInterval)
    rw [mk_unitInterval] at hle
    exact not_le_of_gt aleph0_lt_continuum hle
  obtain ⟨a, ha⟩ : ∃ a, a ∉ ⋃ n, (I n : Set unitInterval) := by
    by_contra h
    push Not at h
    exact hne (Set.eq_univ_of_forall h)
  have hV : {f : NaturalsContinuumPower | f a = 0} ∈ 𝓝 z :=
    (isOpen_coordinate_eq a 0).mem_nhds rfl
  obtain ⟨n, _, hn⟩ := hB.toHasBasis.mem_iff.mp hV
  let y : NaturalsContinuumPower := Function.update z a 1
  have hy : y ∈ U n := by
    apply hsub n
    intro i hi
    have hia : i ≠ a := by
      intro he
      exact ha (mem_iUnion.mpr ⟨n, he ▸ hi⟩)
    simpa only [y, Function.update_of_ne hia] using (hA n i hi).2
  have hbad : y a = 0 := hn hy
  simp [y] at hbad

On this site: The continuum power of the discrete naturals is not first countable

theorem closedDiscreteContinuum

TopologyByExample.NaturalsContinuumPower.closedDiscreteContinuum

There is a closed discrete subset of cardinality continuum.

theorem closedDiscreteContinuum : ∃ s : Set NaturalsContinuumPower,
    IsClosed s ∧ IsDiscrete s ∧ 𝔠 ≤ #s
Proof
:= by
  refine ⟨range distanceCode, isClosed_range_distanceCode, isDiscrete_range_distanceCode, ?_⟩
  rw [← mk_unitInterval]
  exact mk_le_of_injective (f := fun a ↦ (⟨distanceCode a, mem_range_self a⟩ : range distanceCode))
    (fun a b h ↦ distanceCode_injective (congrArg Subtype.val h))

On this site: The continuum power of the discrete naturals has a closed discrete subset of cardinality \(\mathfrak{c}\)

theorem t2Space

TopologyByExample.NaturalsContinuumPower.t2Space

The product is Hausdorff.

theorem t2Space : T2Space NaturalsContinuumPower
Proof
:= inferInstance

On this site: The continuum power of the discrete naturals is Hausdorff

theorem zeroDimensionalSpace

TopologyByExample.NaturalsContinuumPower.zeroDimensionalSpace

The product is zero dimensional.

theorem zeroDimensionalSpace : ZeroDimensionalSpace NaturalsContinuumPower
Proof
:= inferInstance

On this site: The continuum power of the discrete naturals is zero-dimensional

theorem exists_free_coordinate

TopologyByExample.NaturalsContinuumPower.exists_free_coordinate

A nonempty open set leaves some coordinate completely unrestricted.

theorem exists_free_coordinate {U : Set NaturalsContinuumPower} (hU : IsOpen U)
    {x : NaturalsContinuumPower} (hx : x ∈ U) :
    ∃ a : unitInterval, ∀ n : ℕ, Function.update x a n ∈ U
Proof
:= by
  classical
  obtain ⟨I, A, hA, hsub⟩ := isOpen_pi_iff.mp hU x hx
  let : Infinite unitInterval := Cardinal.aleph0_le_mk_iff.mp
    (by rw [mk_unitInterval]; exact aleph0_le_continuum)
  obtain ⟨a, ha⟩ := Infinite.exists_notMem_finset I
  refine ⟨a, fun n ↦ hsub ?_⟩
  intro i hi
  have hia : i ≠ a := by intro he; exact ha (he ▸ hi)
  simpa only [Function.update_of_ne hia] using (hA i hi).2

theorem no_isolated_point

TopologyByExample.NaturalsContinuumPower.no_isolated_point

The product has no isolated points.

theorem no_isolated_point : ¬∃ x : NaturalsContinuumPower, IsOpen ({x} : Set _)
Proof
:= by
  classical
  rintro ⟨x, hx⟩
  obtain ⟨a, ha⟩ := exists_free_coordinate hx (mem_singleton x)
  have h := congrFun (ha (x a + 1)) a
  simp at h

On this site: The continuum power of the discrete naturals has no isolated point

theorem not_weaklyLocallyCompactSpace

TopologyByExample.NaturalsContinuumPower.not_weaklyLocallyCompactSpace

The product is not weakly locally compact.

theorem not_weaklyLocallyCompactSpace : ¬WeaklyLocallyCompactSpace NaturalsContinuumPower
Proof
:= by
  classical
  intro h
  let z : NaturalsContinuumPower := fun _ ↦ 0
  obtain ⟨K, hK, hzK⟩ := exists_compact_mem_nhds z
  obtain ⟨U, hUK, hU, hzU⟩ := mem_nhds_iff.mp hzK
  obtain ⟨a, ha⟩ := exists_free_coordinate hU hzU
  have he : (fun f : NaturalsContinuumPower ↦ f a) '' K = Set.univ := by
    apply Set.eq_univ_of_forall
    intro n
    exact ⟨Function.update z a n, hUK (ha n), Function.update_self a n z⟩
  have hc := hK.image (continuous_apply a)
  rw [he] at hc
  exact Set.infinite_univ (hc.finite IsDiscrete.univ)

On this site: The continuum power of the discrete naturals is not weakly locally compact

theorem not_pseudocompactSpace

TopologyByExample.NaturalsContinuumPower.not_pseudocompactSpace

A coordinate projection gives an unbounded continuous real-valued function.

theorem not_pseudocompactSpace : ¬PseudocompactSpace NaturalsContinuumPower
Proof
:= by
  intro h
  let f : C(NaturalsContinuumPower, ℝ) :=
    ⟨fun x ↦ (x 0 : ℝ), continuous_of_discreteTopology.comp (continuous_apply 0)⟩
  obtain ⟨b, hb⟩ := (PseudocompactSpace.bddAbove_and_bddBelow_range f).1
  obtain ⟨n, hn⟩ := exists_nat_gt b
  have hle : (n : ℝ) ≤ b := hb ⟨fun _ ↦ n, rfl⟩
  exact hn.not_ge hle

On this site: The continuum power of the discrete naturals is not pseudocompact

theorem not_sequentiallyDiscreteSpace

TopologyByExample.NaturalsContinuumPower.not_sequentiallyDiscreteSpace

There is a convergent sequence which is not eventually constant.

theorem not_sequentiallyDiscreteSpace : ¬SequentiallyDiscreteSpace NaturalsContinuumPower
Proof
:= by
  classical
  intro h
  let : Infinite unitInterval := Cardinal.aleph0_le_mk_iff.mp
    (by rw [mk_unitInterval]; exact aleph0_le_continuum)
  let e : ℕ ↪ unitInterval := Infinite.natEmbedding unitInterval
  let z : NaturalsContinuumPower := fun _ ↦ 0
  let u : ℕ → NaturalsContinuumPower := fun n ↦ Function.update z (e n) 1
  have ht : Tendsto u atTop (𝓝 z) := by
    apply tendsto_pi_nhds.mpr
    intro i
    apply tendsto_const_nhds.congr'
    by_cases hi : ∃ k, e k = i
    · obtain ⟨k, rfl⟩ := hi
      filter_upwards [eventually_gt_atTop k] with n hn
      simp [u, Function.update_of_ne (e.injective.ne hn.ne)]
    · have hi' : ∀ n, i ≠ e n := by simpa [eq_comm] using hi
      filter_upwards [] with n
      simp [u, Function.update_of_ne (hi' n)]
  obtain ⟨n, hn⟩ := (SequentiallyDiscreteSpace.eventually_eq_of_tendsto u z ht).exists
  have he := congrFun hn (e n)
  simp [u, z] at he

On this site: The continuum power of the discrete naturals is not sequentially discrete

theorem cardinality

TopologyByExample.NaturalsContinuumPower.cardinality

The continuum power of the naturals has cardinality two to the continuum.

theorem cardinality : #NaturalsContinuumPower = 2 ^ 𝔠
Proof
:= by
  change #(unitInterval → ℕ) = _
  simp only [mk_arrow, lift_uzero, mk_nat, mk_unitInterval]
  apply le_antisymm
  · calc
      ℵ₀ ^ 𝔠 ≤ 𝔠 ^ 𝔠 := power_le_power_right aleph0_le_continuum
      _ = (2 ^ ℵ₀) ^ 𝔠 := by rw [two_power_aleph0]
      _ = 2 ^ 𝔠 := by rw [← power_mul, aleph0_mul_continuum]
  · exact power_le_power_right (natCast_le_aleph0 (n := 2))

On this site: Continuum power of the discrete naturals: Cardinality of the continuum power of the naturals

theorem cardinalityAtMostTwoToContinuum

TopologyByExample.NaturalsContinuumPower.cardinalityAtMostTwoToContinuum

Its cardinality is at most two to the continuum.

theorem cardinalityAtMostTwoToContinuum : CardinalityAtMostTwoToContinuum
    NaturalsContinuumPower
Proof
:= by
  change #NaturalsContinuumPower ≤ 2 ^ 𝔠
  exact cardinality.le

theorem not_cardinalityContinuum

TopologyByExample.NaturalsContinuumPower.not_cardinalityContinuum

Its cardinality is not continuum.

theorem not_cardinalityContinuum : ¬CardinalityContinuum NaturalsContinuumPower
Proof
:= by
  change ¬#NaturalsContinuumPower = 𝔠
  rw [cardinality]
  exact (cantor 𝔠).ne'

On this site: The continuum power of the discrete naturals does not have cardinality equal to \(\mathfrak{c}\)

theorem not_cardinalityLessThanContinuum

TopologyByExample.NaturalsContinuumPower.not_cardinalityLessThanContinuum

Its cardinality is not smaller than continuum.

theorem not_cardinalityLessThanContinuum :
    ¬CardinalityLessThanContinuum NaturalsContinuumPower
Proof
:= by
  change ¬#NaturalsContinuumPower < 𝔠
  rw [cardinality]
  exact not_lt.mpr (cantor 𝔠).le

On this site: The continuum power of the discrete naturals does not have cardinality less than \(\mathfrak{c}\)

definition cylinder

TopologyByExample.NaturalsContinuumPower.cylinder

A cylinder fixes the coordinates in a finite set.

def cylinder (x : NaturalsContinuumPower) (F : Finset unitInterval) :
    Set NaturalsContinuumPower
:= {y | ∀ i ∈ F, y i = x i}

theorem mem_cylinder

TopologyByExample.NaturalsContinuumPower.mem_cylinder

Every cylinder contains its centre.

theorem mem_cylinder (x : NaturalsContinuumPower) (F : Finset unitInterval) :
    x ∈ cylinder x F
Proof
:= fun _ _ ↦ rfl

theorem isOpen_cylinder

TopologyByExample.NaturalsContinuumPower.isOpen_cylinder

Finite coordinate cylinders are open.

theorem isOpen_cylinder (x : NaturalsContinuumPower) (F : Finset unitInterval) :
    IsOpen (cylinder x F)
Proof
:= by
  have he : cylinder x F = ⋂ i ∈ F, {y : NaturalsContinuumPower | y i = x i} := by
    ext y
    simp [cylinder]
  rw [he]
  exact isOpen_biInter_finset fun i _ ↦ isOpen_coordinate_eq i (x i)

theorem exists_cylinder

TopologyByExample.NaturalsContinuumPower.exists_cylinder

An open neighbourhood contains a finite coordinate cylinder.

theorem exists_cylinder {U : Set NaturalsContinuumPower} (hU : IsOpen U)
    {x : NaturalsContinuumPower} (hx : x ∈ U) : ∃ F, cylinder x F ⊆ U
Proof
:= by
  obtain ⟨F, A, hA, hsub⟩ := isOpen_pi_iff.mp hU x hx
  refine ⟨F, fun y hy ↦ hsub ?_⟩
  intro i hi
  rw [hy i hi]
  exact (hA i hi).2

theorem nonempty_iInter_cylinder

TopologyByExample.NaturalsContinuumPower.nonempty_iInter_cylinder

Nested finite coordinate cylinders have a common extension.

theorem nonempty_iInter_cylinder (x : ℕ → NaturalsContinuumPower)
    (F : ℕ → Finset unitInterval) (h : Antitone (fun n ↦ cylinder (x n) (F n))) :
    (⋂ n, cylinder (x n) (F n)).Nonempty
Proof
:= by
  classical
  let z : NaturalsContinuumPower := fun j ↦
    if hj : ∃ n, j ∈ F n then x hj.choose j else 0
  refine ⟨z, mem_iInter.mpr fun n j hj ↦ ?_⟩
  have hex : ∃ n, j ∈ F n := ⟨n, hj⟩
  simp only [z, dite_eq_left hex]
  let m := hex.choose
  have hm : j ∈ F m := hex.choose_spec
  have hmn : x (max m n) ∈ cylinder (x m) (F m) :=
    h (le_max_left _ _) (mem_cylinder _ _)
  have hnn : x (max m n) ∈ cylinder (x n) (F n) :=
    h (le_max_right _ _) (mem_cylinder _ _)
  exact (hmn j hm).symm.trans (hnn j hj)

theorem baireSpace

TopologyByExample.NaturalsContinuumPower.baireSpace

Fusion of finite coordinate conditions proves the Baire property.

theorem baireSpace : BaireSpace NaturalsContinuumPower
Proof
:= by
  classical
  constructor
  intro U hU hd
  apply dense_iff_inter_open.mpr
  intro O hO hOne
  obtain ⟨x, hx⟩ := hOne
  obtain ⟨F, hF⟩ := exists_cylinder hO hx
  have step (n : ℕ) (p : NaturalsContinuumPower × Finset unitInterval) :
      ∃ q : NaturalsContinuumPower × Finset unitInterval,
        cylinder q.1 q.2 ⊆ cylinder p.1 p.2 ∩ U n := by
    obtain ⟨y, hyp, hyU⟩ := dense_iff_inter_open.mp (hd n) _
      (isOpen_cylinder p.1 p.2) ⟨p.1, mem_cylinder _ _⟩
    obtain ⟨G, hG⟩ := exists_cylinder ((isOpen_cylinder p.1 p.2).inter (hU n))
      ⟨hyp, hyU⟩
    exact ⟨(y, G), hG⟩
  choose next hnext using step
  let p : ℕ → NaturalsContinuumPower × Finset unitInterval :=
    Nat.rec (x, F) (fun n p ↦ next n p)
  have hp (n : ℕ) : cylinder (p (n + 1)).1 (p (n + 1)).2 ⊆
      cylinder (p n).1 (p n).2 ∩ U n := hnext n (p n)
  have hanti : Antitone (fun n ↦ cylinder (p n).1 (p n).2) :=
    antitone_nat_of_succ_le fun n ↦ (hp n).trans inter_subset_left
  obtain ⟨z, hz⟩ := nonempty_iInter_cylinder (fun n ↦ (p n).1) (fun n ↦ (p n).2) hanti
  refine ⟨z, hF (mem_iInter.mp hz 0), mem_iInter.mpr fun n ↦ ?_⟩
  exact (hp n (mem_iInter.mp hz (n + 1))).2

On this site: The continuum power of the discrete naturals is a Baire space