Lean library Β· module TopologyByExample.Spaces.ContinuumCube

The continuum power of the unit interval

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 ContinuumCube

TopologyByExample.ContinuumCube

The product of continuum many copies of the closed unit interval.

abbrev ContinuumCube
:= unitInterval β†’ unitInterval

On this site: Space: Continuum power of the unit interval

theorem compactSpace

TopologyByExample.ContinuumCube.compactSpace

The continuum cube is compact.

theorem compactSpace : CompactSpace ContinuumCube
Proof
:= inferInstance

On this site: The continuum cube is compact

theorem t2Space

TopologyByExample.ContinuumCube.t2Space

The continuum cube is Hausdorff.

theorem t2Space : T2Space ContinuumCube
Proof
:= inferInstance

On this site: The continuum cube is Hausdorff

theorem arcConnectedSpace

TopologyByExample.ContinuumCube.arcConnectedSpace

The continuum cube is arc connected.

theorem arcConnectedSpace : ArcConnectedSpace ContinuumCube
Proof
:= by
  let := arcConnectedSpace_unitInterval
  infer_instance

On this site: The continuum cube is arc connected

theorem locallyArcConnectedSpace

TopologyByExample.ContinuumCube.locallyArcConnectedSpace

The continuum cube is locally arc connected.

theorem locallyArcConnectedSpace : LocallyArcConnectedSpace ContinuumCube
Proof
:= by
  let := arcConnectedSpace_unitInterval
  let := locallyArcConnectedSpace_unitInterval
  exact locallyArcConnectedSpace_pi

On this site: The continuum cube is locally arc connected

theorem cardinality

TopologyByExample.ContinuumCube.cardinality

The continuum cube has cardinality two to the continuum.

theorem cardinality : #ContinuumCube = 2 ^ 𝔠
Proof
:= by
  change #(unitInterval β†’ unitInterval) = _
  simp only [mk_arrow, lift_uzero, mk_unitInterval]
  calc
    𝔠 ^ 𝔠 = (2 ^ β„΅β‚€) ^ 𝔠 := by rw [two_power_aleph0]
    _ = 2 ^ 𝔠 := by rw [← power_mul, aleph0_mul_continuum]

On this site: Continuum power of the unit interval: The continuum cube has cardinality two to the continuum

theorem not_cardinalityContinuum

TopologyByExample.ContinuumCube.not_cardinalityContinuum

The continuum cube does not have cardinality continuum.

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

On this site: The continuum cube does not have cardinality equal to \(\mathfrak{c}\)

theorem cardinalityAtMostTwoToContinuum

TopologyByExample.ContinuumCube.cardinalityAtMostTwoToContinuum

The continuum cube has cardinality at most two to the continuum.

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

theorem denseRange_continuousMap

TopologyByExample.ContinuumCube.denseRange_continuousMap

Continuous interval-valued functions are dense among all interval-valued functions with the topology of pointwise convergence.

theorem denseRange_continuousMap :
    DenseRange (fun f : C(unitInterval, unitInterval) ↦ (f : ContinuumCube))
Proof
:= by
  apply dense_iff_inter_open.2
  intro U hU hne
  obtain ⟨x, hx⟩ := hne
  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 : ℝ), continuous_of_discreteTopology⟩
  obtain ⟨g, hg, hgf⟩ := f.exists_restrict_eq_forall_mem_of_closed
    (t := unitInterval) (fun i ↦ (x i).property) ⟨0, by simp⟩ I.finite_toSet.isClosed
  let G : C(unitInterval, unitInterval) := ⟨fun i ↦ ⟨g i, hg i⟩, g.continuous.subtype_mk _⟩
  refine ⟨G, hAU ?_, ⟨G, rfl⟩⟩
  intro i hi
  have he : G i = x i := by
    apply Subtype.ext
    exact congrArg (fun h : C((I : Set unitInterval), ℝ) ↦ h ⟨i, hi⟩) hgf
  simpa only [he] using (hA i hi).2

theorem separableSpace

TopologyByExample.ContinuumCube.separableSpace

The continuum cube is separable.

theorem separableSpace : TopologicalSpace.SeparableSpace ContinuumCube
Proof
:=
  denseRange_continuousMap.separableSpace (continuous_pi fun i ↦ continuous_eval_const i)

On this site: The continuum cube is separable

theorem not_seqCompactSpace

TopologyByExample.ContinuumCube.not_seqCompactSpace

The continuum cube is not sequentially compact.

theorem not_seqCompactSpace : Β¬SeqCompactSpace ContinuumCube
Proof
:= by
  classical
  have he : Nonempty (unitInterval ≃ Set β„•) := by
    apply Cardinal.eq.mp
    rw [mk_unitInterval, mk_set, mk_nat, two_power_aleph0]
  let e := Classical.choice he
  let f : β„• β†’ ContinuumCube := fun n i ↦ if n ∈ e i then 1 else 0
  intro h
  obtain ⟨x, -, Ο†, hΟ†, hx⟩ := h.isSeqCompact_univ (x := f) fun _ ↦ mem_univ _
  let A : Set β„• := range fun k ↦ Ο† (2 * k)
  obtain ⟨i, hi⟩ := e.surjective A
  have hc := ((continuous_apply i).tendsto x).comp hx
  have hEven : StrictMono (fun n : β„• ↦ 2 * n) := by intro a b h; dsimp; omega
  have hOdd : StrictMono (fun n : β„• ↦ 2 * n + 1) := by intro a b h; dsimp; omega
  have heq (n : β„•) : f (Ο† (2 * n)) i = 1 := by
    simp only [f, hi, A, mem_range]
    simp
  have hoq (n : β„•) : f (Ο† (2 * n + 1)) i = 0 := by
    have hn : Ο† (2 * n + 1) βˆ‰ A := by
      rintro ⟨k, hk⟩
      have := hφ.injective hk
      omega
    simp only [f, hi, ite_eq_right_iff.mpr (fun h ↦ (hn h).elim)]
  have h1 : Tendsto (fun _ : β„• ↦ (1 : unitInterval)) atTop (𝓝 (x i)) := by
    simpa only [Function.comp_def, heq] using hc.comp hEven.tendsto_atTop
  have h0 : Tendsto (fun _ : β„• ↦ (0 : unitInterval)) atTop (𝓝 (x i)) := by
    simpa only [Function.comp_def, hoq] using hc.comp hOdd.tendsto_atTop
  have h10 : (1 : unitInterval) = 0 :=
    (tendsto_nhds_unique tendsto_const_nhds h1).trans
      (tendsto_nhds_unique tendsto_const_nhds h0).symm
  exact one_ne_zero h10

On this site: The continuum cube is not sequentially compact

definition sorgenfreyCoordinates

TopologyByExample.ContinuumCube.sorgenfreyCoordinates

Half-line indicators give coordinates for the Sorgenfrey line.

noncomputable def sorgenfreyCoordinates (x : SorgenfreyLine) : SorgenfreyLine β†’ unitInterval
:=
  fun a ↦ if a ≀ x then 1 else 0

theorem continuous_sorgenfreyCoordinates

TopologyByExample.ContinuumCube.continuous_sorgenfreyCoordinates

The half-line coordinate map is continuous.

theorem continuous_sorgenfreyCoordinates : Continuous sorgenfreyCoordinates
Proof
:= by
  classical
  apply continuous_pi
  intro a
  exact (SorgenfreyLine.isClopen_Ici a).continuous_indicator continuous_const

theorem isEmbedding_sorgenfreyCoordinates

TopologyByExample.ContinuumCube.isEmbedding_sorgenfreyCoordinates

The half-line coordinate map embeds the Sorgenfrey line in an interval power.

theorem isEmbedding_sorgenfreyCoordinates : IsEmbedding sorgenfreyCoordinates
Proof
:= by
  classical
  apply IsEmbedding.mk'
  Β· intro x y h
    have hx := congrFun h x
    have hy := congrFun h y
    simp only [sorgenfreyCoordinates, le_refl, ite_true] at hx hy
    have hxy : x ≀ y := by by_contra hn; simp [hn] at hx
    have hyx : y ≀ x := by by_contra hn; simp [hn] at hy
    exact le_antisymm hxy hyx
  Β· intro x
    apply le_antisymm
    Β· apply (SorgenfreyLine.nhds_basis_Ico x).ge_iff.2
      intro b hb
      let U : Set (SorgenfreyLine β†’ unitInterval) :=
        {f | (1 / 2 : ℝ) < f x} ∩ {f | (f b : ℝ) < 1 / 2}
      have hU : IsOpen U :=
        (isOpen_lt continuous_const ((continuous_apply x).subtypeVal)).inter
          (isOpen_lt ((continuous_apply b).subtypeVal) continuous_const)
      have hxU : sorgenfreyCoordinates x ∈ U := by
        norm_num [U, sorgenfreyCoordinates, not_le.mpr hb]
      have hm := preimage_mem_comap (m := sorgenfreyCoordinates) (hU.mem_nhds hxU)
      apply mem_of_superset hm
      intro y hy
      change (1 / 2 : ℝ) < (sorgenfreyCoordinates y x : ℝ) ∧
        (sorgenfreyCoordinates y b : ℝ) < 1 / 2 at hy
      constructor
      Β· by_contra hn
        norm_num [sorgenfreyCoordinates, hn] at hy
      Β· by_contra hn
        norm_num [sorgenfreyCoordinates, le_of_not_gt hn] at hy
    Β· exact map_le_iff_le_comap.mp continuous_sorgenfreyCoordinates.continuousAt

theorem exists_isEmbedding_sorgenfreyPlane

TopologyByExample.ContinuumCube.exists_isEmbedding_sorgenfreyPlane

The Sorgenfrey plane embeds in the continuum cube.

theorem exists_isEmbedding_sorgenfreyPlane :
    βˆƒ f : SorgenfreyLine Γ— SorgenfreyLine β†’ ContinuumCube, IsEmbedding f
Proof
:= by
  have hcard : #(SorgenfreyLine βŠ• SorgenfreyLine) = #unitInterval := by
    change #(ℝ βŠ• ℝ) = #unitInterval
    simp only [mk_sum, lift_uzero, mk_real, mk_unitInterval, continuum_add_self]
  let e := Classical.choice (Cardinal.eq.mp hcard)
  let H : ((SorgenfreyLine β†’ unitInterval) Γ— (SorgenfreyLine β†’ unitInterval)) β‰ƒβ‚œ
      ContinuumCube := Homeomorph.sumArrowHomeomorphProdArrow.symm.trans
        (Homeomorph.piCongrLeft (Y := fun _ : unitInterval ↦ unitInterval) e)
  exact ⟨H ∘ Prod.map sorgenfreyCoordinates sorgenfreyCoordinates,
    H.isEmbedding.comp (isEmbedding_sorgenfreyCoordinates.prodMap
      isEmbedding_sorgenfreyCoordinates)⟩

On this site: Continuum power of the unit interval: The Sorgenfrey plane embeds in the continuum cube

theorem not_completelyNormalSpace

TopologyByExample.ContinuumCube.not_completelyNormalSpace

The continuum cube is not completely normal.

theorem not_completelyNormalSpace : Β¬CompletelyNormalSpace ContinuumCube
Proof
:= by
  intro h
  obtain ⟨f, hf⟩ := exists_isEmbedding_sorgenfreyPlane
  exact SorgenfreyLine.not_normalSpace_prod hf.completelyNormalSpace.toNormalSpace

On this site: The continuum cube is not completely normal