Documentation

Mathlib.SetTheory.Ordinal.Univ

Universal ordinal and cardinal #

Cardinal.univ is the cardinality of the cardinals themselves. Likewise, Ordinal.univ is the order type of the ordinals. These are related via Cardinal.univ.ord = Ordinal.univ and Ordinal.univ.card = Cardinal.univ.

The cardinal Cardinal.univ is strongly inaccessible. This reflects the fact that in ZFC, the cardinals form a proper class. See IsInaccessible.univ for a proof.

Implementation notes #

We actually define Cardinal.univ as the cardinality of Ordinal, rather than that of Cardinal. This makes the basic API easier to set up. See Cardinal.mk_cardinal for a proof that Cardinal.univ = #Cardinal.

The ordinal univ.{u, v} is the order type of Ordinal.{u} or Cardinal.{u}, as an element of Ordinal.{v} (when u < v).

Equations
Instances For

    The cardinal univ.{u, v} is the cardinality of Ordinal.{u} or Cardinal.{u}, as an element of Cardinal.{v} (when u < v).

    Equations
    Instances For

      Universal ordinal #

      @[simp]
      theorem Ordinal.type_lt_ordinal :
      (type fun (x1 x2 : Ordinal.{u}) => x1 < x2) = univ.{u, u + 1}
      @[deprecated Ordinal.type_lt_ordinal (since := "2026-03-20")]
      theorem Ordinal.univ_id :
      univ.{u, u + 1} = type fun (x1 x2 : Ordinal.{u}) => x1 < x2
      def Ordinal.liftPrincipalSeg :
      PrincipalSeg (fun (x1 x2 : Ordinal.{u}) => x1 < x2) fun (x1 x2 : Ordinal.{max (u + 1) v}) => x1 < x2

      Principal segment version of the lift operation on ordinals, embedding Ordinal.{u} in Ordinal.{v} as a principal segment when u < v.

      Equations
      Instances For
        @[deprecated Ordinal.liftPrincipalSeg_top (since := "2026-03-20")]

        Universal cardinal #