Lean library · module TopologyByExample.Spaces.LongSpaceCardinalities

Cardinalities of long spaces

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

theorem longRay

TopologyByExample.LongSpaceCardinalities.longRay

The long ray has cardinality continuum.

theorem longRay : CardinalityContinuum LongRay
Proof
:= by
  unfold CardinalityContinuum
  apply le_antisymm
  · change #(OmegaOne × Ico (0 : ℝ) 1) ≤ 𝔠
    rw [mk_prod, lift_uzero, lift_uzero, mk_Ico_real zero_lt_one]
    have h : #OmegaOne ≤ 𝔠 := by
      change #(Ordinal.ToType (Ordinal.omega 1)) ≤ 𝔠
      rw [mk_toType, Ordinal.card_omega]
      exact aleph_one_le_continuum
    exact (mul_le_mul' h le_rfl).trans_eq continuum_mul_self
  · have h := mk_le_of_injective (f := fun t : Ico (0 : ℝ) 1 =>
      (toLex (⊥, t) : LongRay)) (by
        intro a b hab
        exact congrArg (fun p : LongRay => (ofLex p).2) hab)
    simpa only [mk_Ico_real zero_lt_one] using h

On this site: The long ray has cardinality equal to \(\mathfrak{c}\)

theorem openLongRay

TopologyByExample.LongSpaceCardinalities.openLongRay

Removing the first point of the long ray leaves continuum many points.

theorem openLongRay : CardinalityContinuum OpenLongRay
Proof
:= by
  unfold CardinalityContinuum
  apply le_antisymm
  · exact (mk_le_of_injective (Subtype.val_injective :
      Function.Injective (Subtype.val : OpenLongRay → LongRay))).trans_eq longRay
  · let f : Ioo (0 : ℝ) 1 → OpenLongRay := fun t =>
      ⟨toLex (⊥, ⟨t.val, t.property.1.le, t.property.2⟩),
        Prod.Lex.toLex_lt_toLex.mpr (Or.inr ⟨rfl, t.property.1⟩)⟩
    have hf : Function.Injective f := by
      intro a b hab
      apply Subtype.ext
      exact congrArg (fun p : OpenLongRay => ((ofLex p.val).2 : ℝ)) hab
    have h := mk_le_of_injective hf
    simpa only [mk_Ioo_real zero_lt_one] using h

On this site: The open long ray has cardinality equal to \(\mathfrak{c}\)

theorem longLine

TopologyByExample.LongSpaceCardinalities.longLine

The two-sided long line has cardinality continuum.

theorem longLine : CardinalityContinuum LongLine
Proof
:= by
  change #(OpenLongRay ⊕ LongRay) = 𝔠
  rw [mk_sum, lift_uzero, lift_uzero, openLongRay, longRay, continuum_add_self]

On this site: The long line has cardinality equal to \(\mathfrak{c}\)

theorem closedLongRay

TopologyByExample.LongSpaceCardinalities.closedLongRay

The closed long ray has cardinality continuum.

theorem closedLongRay : CardinalityContinuum (OnePoint LongRay)
Proof
:= by
  change #(Option LongRay) = 𝔠
  rw [mk_option, longRay, add_one_eq aleph0_le_continuum]

theorem longCircle

TopologyByExample.LongSpaceCardinalities.longCircle

The long circle has cardinality continuum.

theorem longCircle : CardinalityContinuum (OnePoint OpenLongRay)
Proof
:= by
  change #(Option OpenLongRay) = 𝔠
  rw [mk_option, openLongRay, add_one_eq aleph0_le_continuum]

theorem alteredLongRay

TopologyByExample.LongSpaceCardinalities.alteredLongRay

Altering the topology at the added point does not change the continuum cardinality.

theorem alteredLongRay : CardinalityContinuum AlteredLongRay
Proof
:= by
  change #(Option LongRay) = 𝔠
  rw [mk_option, longRay, add_one_eq aleph0_le_continuum]

On this site: The altered long ray has cardinality equal to \(\mathfrak{c}\)