Lean library · module TopologyByExample.Spaces.MisraCardinality

Cardinalities of Misra's 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 cardinality

TopologyByExample.MisraE0.cardinality

Misra's two-sheet space has cardinality aleph one.

theorem MisraE0.cardinality : #MisraE0 = aleph 1
Proof
:= by
  let f : MisraE0 → OmegaOne × OmegaOne × (Bool ⊕ Option Bool)
    | .apex s => (⊥, ⊥, Sum.inl s)
    | .row α => (α, ⊥, Sum.inr none)
    | .cell s α β => (α, β, Sum.inr (some s))
  have hf : Function.Injective f := by
    intro x y h
    cases x <;> cases y <;> simp_all [f]
  apply le_antisymm
  · calc
      #MisraE0 ≤ #(OmegaOne × OmegaOne × (Bool ⊕ Option Bool)) := mk_le_of_injective hf
      _ ≤ aleph 1 * (aleph 1 * aleph0) := by
        simp only [mk_prod, lift_id, OrdinalCardinalities.omegaOne]
        exact mul_le_mul' le_rfl (mul_le_mul' le_rfl mk_le_aleph0)
      _ = aleph 1 := by
        rw [mul_eq_left (aleph0_le_aleph _) (aleph0_le_aleph _) aleph0_ne_zero]
        exact mul_eq_self (aleph0_le_aleph _)
  · rw [← OrdinalCardinalities.omegaOne]
    exact mk_le_of_injective (f := MisraE0.row) (by intro a b h; cases h; rfl)

On this site: Misra’s \(E_0\): Cardinality

theorem cardinality

TopologyByExample.MisraSubspace.cardinality

The deleted-sheet subspace still has cardinality aleph one.

theorem MisraSubspace.cardinality : #MisraSubspace = aleph 1
Proof
:= by
  apply le_antisymm
  · exact (mk_le_of_injective (Subtype.val_injective (p := MisraE0.keep))).trans_eq
      MisraE0.cardinality
  · rw [← OrdinalCardinalities.omegaOne]
    apply mk_le_of_injective (f := MisraSubspace.row)
    intro a b h
    exact MisraE0.row.inj (congrArg Subtype.val h)

On this site: Misra’s Urysohn subspace: Cardinality