Lean library Β· module TopologyByExample.Spaces.ContinuumCube
The continuum power of the unit interval
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