Lean library · module TopologyByExample.Theorems.CoordinateCardinalities
Cardinalities of spaces with real coordinates
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
- TopologyByExample.Theorems.ExactCardinalityTransfers
- TopologyByExample.Spaces.PowerCardinalities
- TopologyByExample.Spaces.AlexandroffPlank
- TopologyByExample.Spaces.ButterflySpace
- TopologyByExample.Spaces.HalfDisc
- TopologyByExample.Spaces.NiemytzkiPlane
- TopologyByExample.Spaces.DeletedDiameter
- TopologyByExample.Spaces.DeletedRadius
- TopologyByExample.Spaces.EverywhereDoubledLine
- TopologyByExample.Spaces.ConcentricCircles
- TopologyByExample.Spaces.RationalSequence
- TopologyByExample.Spaces.StrongParallelLine
- TopologyByExample.Spaces.Mysior
- TopologyByExample.Spaces.ThomasPlank
- TopologyByExample.Spaces.InterlockingInterval
- TopologyByExample.Spaces.ConeLexicographicSquare
- TopologyByExample.Theorems.CardinalityBoundCoverage
- TopologyByExample.Theorems.LinesWithOrigins
theorem plane
TopologyByExample.CoordinateCardinalities.plane
private theorem plane : CardinalityContinuum (ℝ × ℝ)
Proof
:=
ExactCardinalityTransfers.prod mk_real mk_real
theorem halfPlane
TopologyByExample.CoordinateCardinalities.halfPlane
private theorem halfPlane : CardinalityContinuum {p : ℝ × ℝ // 0 ≤ p.2}
Proof
:= by
apply le_antisymm
· exact (mk_set_le {p : ℝ × ℝ | 0 ≤ p.2}).trans_eq plane
· let f : ℝ → {p : ℝ × ℝ // 0 ≤ p.2} := fun x => ⟨(x, 0), le_rfl⟩
have hf : Function.Injective f := fun x y h => congrArg (fun z => z.val.1) h
simpa only [mk_real] using mk_le_of_injective hf
theorem butterfly
TopologyByExample.CoordinateCardinalities.butterfly
The butterfly space has continuum cardinality.
theorem butterfly : CardinalityContinuum Butterfly
Proof
:= halfPlane
On this site: The butterfly space has cardinality equal to \(\mathfrak{c}\)
theorem halfDisc
TopologyByExample.CoordinateCardinalities.halfDisc
The half-disc topology has continuum cardinality.
theorem halfDisc : CardinalityContinuum HalfDisc
Proof
:= halfPlane
On this site: Half-disc topology has cardinality equal to \(\mathfrak{c}\)
theorem niemytzki
TopologyByExample.CoordinateCardinalities.niemytzki
The Niemytzki plane has continuum cardinality.
theorem niemytzki : CardinalityContinuum Niemytzki
Proof
:= halfPlane
On this site: The Niemytzki plane has cardinality equal to \(\mathfrak{c}\)
theorem deletedDiameter
TopologyByExample.CoordinateCardinalities.deletedDiameter
The deleted-diameter topology has continuum cardinality.
theorem deletedDiameter : CardinalityContinuum DeletedDiameter
Proof
:= plane
On this site: Deleted diameter topology has cardinality equal to \(\mathfrak{c}\)
theorem deletedRadius
TopologyByExample.CoordinateCardinalities.deletedRadius
The deleted-radius topology has continuum cardinality.
theorem deletedRadius : CardinalityContinuum DeletedRadius
Proof
:= plane
On this site: Deleted radius topology has cardinality equal to \(\mathfrak{c}\)
theorem everywhereDoubled
TopologyByExample.CoordinateCardinalities.everywhereDoubled
The everywhere doubled line has continuum cardinality.
theorem everywhereDoubled : CardinalityContinuum EverywhereDoubledLine
Proof
:= by
change #(ℝ × Bool) = continuum
exact ExactCardinalityTransfers.prod_left mk_real
(by rw [mk_bool]; exact (natCast_le_aleph0 (n := 2)).trans aleph0_le_continuum)
On this site: The everywhere doubled line has cardinality equal to \(\mathfrak{c}\)
theorem circle
TopologyByExample.CoordinateCardinalities.circle
The circle has continuum cardinality.
theorem circle : CardinalityContinuum Circle
Proof
:= by
unfold CardinalityContinuum
rw [← mk_congr Circle.nonempty_onePoint_real_homeomorph.some.toEquiv]
exact ExactCardinalityTransfers.option mk_real
theorem concentricCircles
TopologyByExample.CoordinateCardinalities.concentricCircles
The two concentric circles have continuum cardinality.
theorem concentricCircles : CardinalityContinuum ConcentricCircles
Proof
:= by
change #(Circle × Bool) = continuum
exact ExactCardinalityTransfers.prod_left circle
(by rw [mk_bool]; exact (natCast_le_aleph0 (n := 2)).trans aleph0_le_continuum)
On this site: Concentric circles has cardinality equal to \(\mathfrak{c}\)
theorem rationalSequence
TopologyByExample.CoordinateCardinalities.rationalSequence
The rational-sequence topology has continuum cardinality.
theorem rationalSequence : CardinalityContinuum RationalSequence
Proof
:= mk_real
On this site: The rational sequence topology has cardinality equal to \(\mathfrak{c}\)
theorem strongParallelLine
TopologyByExample.CoordinateCardinalities.strongParallelLine
The strong parallel line has continuum cardinality.
theorem strongParallelLine : CardinalityContinuum StrongParallelLine
Proof
:=
PowerCardinalities.doubleArrow
On this site: Strong parallel line topology has cardinality equal to \(\mathfrak{c}\)
theorem alexandroffPlank
TopologyByExample.CoordinateCardinalities.alexandroffPlank
The Alexandroff plank has continuum cardinality.
theorem alexandroffPlank : CardinalityContinuum AlexandroffPlank
Proof
:= by
change #(OnePoint OmegaOne × Icc (-1 : ℝ) 1) = continuum
rw [mk_prod, lift_id, lift_id, mk_Icc_real (by norm_num)]
have h : #(OnePoint OmegaOne) ≤ continuum := by
change #(Option OmegaOne) ≤ continuum
rw [mk_option]
exact (add_le_add omegaOne_cardinal_le_continuum
(one_le_aleph0.trans aleph0_le_continuum)).trans_eq (add_eq_self aleph0_le_continuum)
rw [mul_comm]
exact mul_eq_left aleph0_le_continuum h (mk_ne_zero _)
On this site: The Alexandroff plank has cardinality equal to \(\mathfrak{c}\)
theorem mysior
TopologyByExample.CoordinateCardinalities.mysior
Mysior's original space has continuum cardinality.
theorem mysior : CardinalityContinuum Mysior
Proof
:= by
let f : Mysior → Option (ℝ × ℝ)
| .infty => none
| .mk x y => some (x, y.val)
have hf : Function.Injective f := by
intro x y h
cases x <;> cases y <;> simp_all [f]
apply le_antisymm
· exact (mk_le_of_injective hf).trans_eq (ExactCardinalityTransfers.option plane)
· have hi : Function.Injective (fun x : ℝ => Mysior.mk x 0) := by
intro x y h
exact (Mysior.mk.inj h).1
simpa only [mk_real] using mk_le_of_injective hi
On this site: Mysior's space has cardinality equal to \(\mathfrak{c}\)
theorem thomasPlank
TopologyByExample.CoordinateCardinalities.thomasPlank
The Thomas plank has continuum cardinality.
theorem thomasPlank : CardinalityContinuum ThomasPlank
Proof
:= by
have hc : CardinalityContinuum (OnePoint (WithDiscreteTopology ℝ) × OnePoint ℕ) := by
have : Nonempty (OnePoint ℕ) := ⟨OnePoint.infty⟩
apply ExactCardinalityTransfers.prod_left
(ExactCardinalityTransfers.option discreteReals_cardinalityContinuum)
change #(Option ℕ) ≤ continuum
rw [mk_option, mk_nat, add_eq_left le_rfl one_le_aleph0]
exact aleph0_le_continuum
apply le_antisymm
· exact (mk_set_le _).trans_eq hc
· let f : WithDiscreteTopology ℝ → ThomasPlank := fun x => ThomasPlank.mkNat x 0
have hf : Function.Injective f := by
intro x y h
exact OnePoint.coe_injective (congrArg (fun z : ThomasPlank => z.val.1) h)
exact (show #(WithDiscreteTopology ℝ) = continuum from
discreteReals_cardinalityContinuum) ▸ mk_le_of_injective hf
On this site: The Thomas plank has cardinality equal to \(\mathfrak{c}\)
theorem interlockingInterval
TopologyByExample.CoordinateCardinalities.interlockingInterval
The interlocking interval topology has continuum cardinality.
theorem interlockingInterval : CardinalityContinuum InterlockingInterval
Proof
:= by
apply le_antisymm
· exact (mk_set_le {x : ℝ | 0 < x ∧ ∀ n : ℤ, x ≠ n}).trans_eq mk_real
· let f : Ioo (0 : ℝ) 1 → InterlockingInterval := fun x =>
InterlockingInterval.mk x 0 (by simpa using x.property.1) (by simpa using x.property.2)
have hf : Function.Injective f := by
intro x y h
exact Subtype.ext (congrArg InterlockingInterval.toReal h)
simpa only [mk_Ioo_real zero_lt_one] using mk_le_of_injective hf
On this site: The interlocking interval topology has cardinality equal to \(\mathfrak{c}\)
theorem coneLexicographicSquare
TopologyByExample.CoordinateCardinalities.coneLexicographicSquare
The cone over the lexicographic square has continuum cardinality.
theorem coneLexicographicSquare : CardinalityContinuum ConeLexicographicSquare
Proof
:= by
have : Nonempty (Iio (1 : unitInterval)) := ⟨⟨0, zero_lt_one⟩⟩
exact ExactCardinalityTransfers.option (ExactCardinalityTransfers.prod_left
CardinalityBoundCoverage.lexicographicSquare
((mk_set_le (Iio (1 : unitInterval))).trans_eq mk_unitInterval))
On this site: The cone over the lexicographic square has cardinality equal to \(\mathfrak{c}\)
theorem lineContinuumOrigins
TopologyByExample.CoordinateCardinalities.lineContinuumOrigins
The line with continuum many origins has continuum cardinality.
theorem lineContinuumOrigins : CardinalityContinuum (LineWithOrigins ℝ)
Proof
:= by
apply le_antisymm
· have h := mk_le_of_surjective (Quotient.mk_surjective (s := WithOrigins.setoid ℝ 0 ℝ))
have he : #(Σ _ : ℝ, ℝ) = continuum := by
rw [mk_congr (Equiv.sigmaEquivProd ℝ ℝ)]
exact plane
exact h.trans_eq he
· simpa only [mk_real] using mk_le_of_injective
(WithOrigins.chart_injective (X := ℝ) (p := 0) (I := ℝ) 0)
On this site: The line with uncountably many origins has cardinality equal to \(\mathfrak{c}\)