Mathlib.SetTheory.Ordinal.Basic
245 declarations and 11 deprecated aliases. Mathlib docs · Source
Ordinals
Ordinals are defined as equivalences of well-ordered sets under order isomorphism. They are endowed with a total order, where an ordinal is smaller than another one if it embeds into it as an initial segment (or, equivalently, in any way). This total order is well founded.
Main definitions
-
Ordinal: the type of ordinals (in a given universe) -
Ordinal.type r: given a well-founded orderr, this is the corresponding ordinal -
Ordinal.typein r a: given a well-founded orderron a typeα, anda : α, the ordinal corresponding to all elements smaller thana. -
enum r ⟨o, h⟩: given a well-orderron a typeα, and an ordinalostrictly smaller than the ordinal corresponding tor(this is the assumptionh), returns theo-th element ofα. In other words, the elements ofαcan be enumerated using ordinals up totype r. -
Ordinal.card o: the cardinality of an ordinalo. -
Ordinal.liftlifts an ordinal in universeuto an ordinal in universemax u v. For a version registering additionally that this is an initial segment embedding, seeOrdinal.liftInitialSeg. For a version registering that it is a principal segment embedding ifu < v, seeOrdinal.liftPrincipalSeg. -
Ordinal.omega0orωis the order type ofℕ. It is called this to matchCardinal.aleph0and so that the omega function can be namedOrdinal.omega. This definition is universe polymorphic:Ordinal.omega0.{u} : Ordinal.{u}(contrast withℕ : Type, which lives in a specific universe). In some cases the universe level has to be given explicitly. -
o₁ + o₂is the order on the disjoint union ofo₁ando₂obtained by declaring that every element ofo₁is smaller than every element ofo₂. The main properties of addition (and the other operations on ordinals) are stated and proved inMathlib/SetTheory/Ordinal/Arithmetic.lean. Here, we only introduce it and prove its basic properties to deduce the fact that the order on ordinals is total (and well founded). -
succ ois the successor of the ordinalo. -
Cardinal.ord c: whencis a cardinal,ord cis the smallest ordinal with this cardinality. It is the canonical way to represent a cardinal with an ordinal.
A conditionally complete linear order with bot structure is registered on ordinals, where ⊥ is
0, the ordinal corresponding to the empty type, and Inf is the minimum for nonempty sets and 0
for the empty set by convention.
Notation
ωis a notation for the first infinite ordinal in the scopeOrdinal.
Definition of ordinals
Basic properties of the order type
The order on ordinals
Enumerating elements in a well-order with ordinals
Cardinality of ordinals
Lifting ordinals to a higher universe
A small type with a given order type
The first infinite ordinal ω
Definition and first properties of addition on ordinals
In this paragraph, we introduce the addition on ordinals, and prove just enough properties to
deduce that the order on ordinals is total (and therefore well-founded). Further properties of
the addition, together with properties of the other operations, are proved in
Mathlib/SetTheory/Ordinal/Arithmetic.lean.
Successor order properties
Extra properties of typein and enum
Representing a cardinal with an ordinal
Sorted lists
theorem Ordinal.type.congr_simp E1 #
∀ {α : Type u} (r r_1 : α → α → Prop) (e_r : r = r_1) [wo : IsWellOrder α r], Ordinal.type r = Ordinal.type r_1
theorem Ordinal.typein.congr_simp E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r], Ordinal.typein r = Ordinal.typein r
def WellOrder.ctorIdx E1 #
WellOrder → ℕ
theorem Set.embeddingOfSubset.congr_simp E1 #
∀ {α : Type u_1} (s t : Set α) (h : s ⊆ t), s.embeddingOfSubset t h = s.embeddingOfSubset t h
theorem WellOrder.mk.injEq E0 #
∀ (α : Type u) (r : α → α → Prop) (wo : IsWellOrder α r) (α_1 : Type u) (r_1 : α_1 → α_1 → Prop)
(wo_1 : IsWellOrder α_1 r_1),
({ α := α, r := r, wo := wo } = { α := α_1, r := r_1, wo := wo_1 }) = (α = α_1 ∧ r ≍ r_1)
theorem WellOrder.mk.inj E1 #
∀ {α : Type u} {r : α → α → Prop} {wo : IsWellOrder α r} {α_1 : Type u} {r_1 : α_1 → α_1 → Prop}
{wo_1 : IsWellOrder α_1 r_1}, { α := α, r := r, wo := wo } = { α := α_1, r := r_1, wo := wo_1 } → α = α_1 ∧ r ≍ r_1
structure WellOrder E1 #
Type (u + 1)
Bundled structure registering a well order on a type. Ordinals will be defined as a quotient of this type.
ctor WellOrder.mk E0 #
(α : Type u) → (r : α → α → Prop) → IsWellOrder α r → WellOrder
abbrev WellOrder.α E1 #
WellOrder → Type u
The underlying type of the order.
abbrev WellOrder.r E1 #
(self : WellOrder) → self.α → self.α → Prop
The underlying relation of the order.
instance WellOrder.wo E0 #
∀ (self : WellOrder), IsWellOrder self.α self.r
The proposition that r is a well-ordering for α.
instance WellOrder.inhabited E0 #
Inhabited WellOrder
instance Ordinal.isEquivalent E0 #
Setoid WellOrder
Equivalence relation on well orders on arbitrary types in universe u, given by order
isomorphism.
def Ordinal E3 #
Type (u + 1)
Ordinal.{u} is the type of well orders in Type u, up to order isomorphism.
def Ordinal.type E1 #
{α : Type u} → (r : α → α → Prop) → [wo : IsWellOrder α r] → Ordinal.{u}
The order type of a well order is an ordinal.
def Ordinal.termTypeLT_ E1 #
Lean.ParserDescr
typeLT α is an abbreviation for the order type of the < relation of α.
instance Ordinal.zero E0 #
Zero Ordinal.{u_1}
instance Ordinal.inhabited E0 #
Inhabited Ordinal.{u_1}
instance Ordinal.one E0 #
One Ordinal.{u_1}
theorem Ordinal.type_eq E0 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.type r = Ordinal.type s ↔ Nonempty (r ≃r s)
theorem RelIso.ordinalType_congr E1 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(h : r ≃r s), Ordinal.type r = Ordinal.type s
theorem OrderIso.ordinalType_congr E1 #
∀ {α β : Type u_1} [inst : LinearOrder α] [inst_1 : LinearOrder β] [inst_2 : WellFoundedLT α] [inst_3 : WellFoundedLT β]
(h : α ≃o β), (Ordinal.type fun x1 x2 ↦ x1 < x2) = Ordinal.type fun x1 x2 ↦ x1 < x2
theorem Ordinal.type_of_isEmpty E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] [IsEmpty α], Ordinal.type r = 0
theorem Ordinal.type_eq_zero_iff_isEmpty E0 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r], Ordinal.type r = 0 ↔ IsEmpty α
theorem Ordinal.type_ne_zero_iff_nonempty E1 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r], Ordinal.type r ≠ 0 ↔ Nonempty α
theorem Ordinal.type_ne_zero_of_nonempty E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] [h : Nonempty α], Ordinal.type r ≠ 0
theorem Ordinal.type_pEmpty E1 #
Ordinal.type emptyRelation = 0
theorem Ordinal.type_empty E1 #
Ordinal.type emptyRelation = 0
theorem Ordinal.type_eq_one_of_unique E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] [Nonempty α] [Subsingleton α], Ordinal.type r = 1
theorem Ordinal.type_eq_one_iff_unique E0 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r], Ordinal.type r = 1 ↔ Nonempty (Unique α)
theorem Ordinal.type_pUnit E1 #
Ordinal.type emptyRelation = 1
theorem Ordinal.type_unit E1 #
Ordinal.type emptyRelation = 1
instance Ordinal.instNeZeroOne E0 #
NeZero 1
instance Ordinal.nontrivial E0 #
Nontrivial Ordinal.{u}
theorem Ordinal.inductionOn E1 #
∀ {motive : Ordinal.{u_1} → Prop} (o : Ordinal.{u_1}),
(∀ (α : Type u_1) (r : α → α → Prop) [inst : IsWellOrder α r], motive (Ordinal.type r)) → motive o
Quotient.inductionOn specialized to ordinals.
Not to be confused with well-founded induction WellFoundedLT.induction.
theorem Ordinal.inductionOn₂ E1 #
∀ {motive : Ordinal.{u_1} → Ordinal.{u_2} → Prop} (o₁ : Ordinal.{u_1}) (o₂ : Ordinal.{u_2}),
(∀ (α : Type u_1) (r : α → α → Prop) [inst : IsWellOrder α r] (β : Type u_2) (s : β → β → Prop)
[inst_1 : IsWellOrder β s], motive (Ordinal.type r) (Ordinal.type s)) →
motive o₁ o₂
Quotient.inductionOn₂ specialized to ordinals.
Not to be confused with well-founded induction WellFoundedLT.induction.
theorem Ordinal.inductionOn₃ E1 #
∀ {motive : Ordinal.{u_1} → Ordinal.{u_2} → Ordinal.{u_3} → Prop} (o₁ : Ordinal.{u_1}) (o₂ : Ordinal.{u_2})
(o₃ : Ordinal.{u_3}),
(∀ (α : Type u_1) (r : α → α → Prop) [inst : IsWellOrder α r] (β : Type u_2) (s : β → β → Prop)
[inst_1 : IsWellOrder β s] (γ : Type u_3) (t : γ → γ → Prop) [inst_2 : IsWellOrder γ t],
motive (Ordinal.type r) (Ordinal.type s) (Ordinal.type t)) →
motive o₁ o₂ o₃
Quotient.inductionOn₃ specialized to ordinals.
Not to be confused with well-founded induction WellFoundedLT.induction.
theorem Ordinal.inductionOnWellOrder E1 #
∀ {motive : Ordinal.{u_1} → Prop} (o : Ordinal.{u_1}),
(∀ (α : Type u_1) [inst : LinearOrder α] [inst_1 : WellFoundedLT α], motive (Ordinal.type fun x1 x2 ↦ x1 < x2)) →
motive o
To prove a result on ordinals, it suffices to prove it for order types of well-orders.
def Ordinal.liftOnWellOrder E1 #
{δ : Sort v} →
Ordinal.{u_1} →
(f : (α : Type u_1) → [inst : LinearOrder α] → [WellFoundedLT α] → δ) →
(∀ (α : Type u_1) [inst : LinearOrder α] [inst_1 : WellFoundedLT α] (β : Type u_1) [inst_2 : LinearOrder β]
[inst_3 : WellFoundedLT β],
((Ordinal.type fun x1 x2 ↦ x1 < x2) = Ordinal.type fun x1 x2 ↦ x1 < x2) → f α = f β) →
δ
To define a function on ordinals, it suffices to define them on order types of well-orders.
Since LinearOrder is data-carrying, liftOnWellOrder_type is not a definitional equality, unlike
Quotient.liftOn_mk which is always def-eq.
theorem Ordinal.liftOnWellOrder_type E0 #
∀ {δ : Sort v} (f : (α : Type u_1) → [inst : LinearOrder α] → [WellFoundedLT α] → δ)
(c :
∀ (α : Type u_1) [inst : LinearOrder α] [inst_1 : WellFoundedLT α] (β : Type u_1) [inst_2 : LinearOrder β]
[inst_3 : WellFoundedLT β], ((Ordinal.type fun x1 x2 ↦ x1 < x2) = Ordinal.type fun x1 x2 ↦ x1 < x2) → f α = f β)
{γ : Type u_1} [inst : LinearOrder γ] [inst_1 : WellFoundedLT γ],
(Ordinal.type fun x1 x2 ↦ x1 < x2).liftOnWellOrder f c = f γ
instance Ordinal.partialOrder E0 #
PartialOrder Ordinal.{u_1}
For Ordinal:
- less-equal is defined such that well orders
randssatisfytype r ≤ type sif there exists a function embeddingras an initial segment ofs. - less-than is defined such that well orders
randssatisfytype r < type sif there exists a function embeddingras a principal segment ofs.
Note that most of the relevant results on initial and principal segments are proved in the
Mathlib/Order/InitialSeg.lean file.
instance Ordinal.instLinearOrder E0 #
LinearOrder Ordinal.{u_1}
theorem InitialSeg.ordinal_type_le E1 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(h : InitialSeg r s), Ordinal.type r ≤ Ordinal.type s
theorem RelEmbedding.ordinal_type_le E1 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(h : r ↪r s), Ordinal.type r ≤ Ordinal.type s
theorem PrincipalSeg.ordinal_type_lt E1 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(h : PrincipalSeg r s), Ordinal.type r < Ordinal.type s
instance Ordinal.instOrderBot E0 #
OrderBot Ordinal.{u_1}
theorem Ordinal.bot_eq_zero E0 #
⊥ = 0
theorem Ordinal.type_le_iff E3 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.type r ≤ Ordinal.type s ↔ Nonempty (InitialSeg r s)
theorem Ordinal.type_le_iff' E1 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.type r ≤ Ordinal.type s ↔ Nonempty (r ↪r s)
theorem Ordinal.type_lt_iff E3 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.type r < Ordinal.type s ↔ Nonempty (PrincipalSeg r s)
theorem Ordinal.type_set_le E1 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α] (s : Set α),
(Ordinal.type fun x1 x2 ↦ x1 < x2) ≤ Ordinal.type fun x1 x2 ↦ x1 < x2
theorem Ordinal.type_mono E1 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α] {s t : Set α},
s ⊆ t → (Ordinal.type fun x1 x2 ↦ x1 < x2) ≤ Ordinal.type fun x1 x2 ↦ x1 < x2
def Ordinal.typein E1 #
{α : Type u} → (r : α → α → Prop) → [IsWellOrder α r] → PrincipalSeg r fun x1 x2 ↦ x1 < x2
The order type of an element inside a well order.
This is registered as a principal segment embedding into the ordinals, with top type r.
theorem Ordinal.type_subrel E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] (a : α),
Ordinal.type (Subrel r fun x ↦ r x a) = (Ordinal.typein r).toRelEmbedding a
theorem Ordinal.top_typein E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r], (Ordinal.typein r).top = Ordinal.type r
theorem Ordinal.typein_lt_type E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] (a : α), (Ordinal.typein r).toRelEmbedding a < Ordinal.type r
theorem Ordinal.typein_top E0 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(f : PrincipalSeg r s), (Ordinal.typein s).toRelEmbedding f.top = Ordinal.type r
theorem Ordinal.typein_lt_typein E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {a b : α},
(Ordinal.typein r).toRelEmbedding a < (Ordinal.typein r).toRelEmbedding b ↔ r a b
theorem Ordinal.typein_le_typein E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {a b : α},
(Ordinal.typein r).toRelEmbedding a ≤ (Ordinal.typein r).toRelEmbedding b ↔ ¬r b a
theorem Ordinal.typein_injective E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r], Function.Injective ⇑(Ordinal.typein r).toRelEmbedding
theorem Ordinal.typein_inj E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {a b : α},
(Ordinal.typein r).toRelEmbedding a = (Ordinal.typein r).toRelEmbedding b ↔ a = b
theorem Ordinal.mem_range_typein_iff E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {o : Ordinal.{u}},
o ∈ Set.range ⇑(Ordinal.typein r).toRelEmbedding ↔ o < Ordinal.type r
theorem Ordinal.typein_surj E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {o : Ordinal.{u}},
o < Ordinal.type r → o ∈ Set.range ⇑(Ordinal.typein r).toRelEmbedding
theorem Ordinal.typein_surjOn E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r],
Set.SurjOn (⇑(Ordinal.typein r).toRelEmbedding) Set.univ (Set.Iio (Ordinal.type r))
theorem Ordinal.type_Iio_lt E0 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α] (x : α),
Ordinal.type LT.lt = (Ordinal.typein LT.lt).toRelEmbedding x
def Ordinal.enum E1 #
{α : Type u} → (r : α → α → Prop) → [inst : IsWellOrder α r] → (fun x1 x2 ↦ x1 < x2) ≃r r
A well order r is order-isomorphic to the set of ordinals smaller than type r.
enum r ⟨o, h⟩ is the o-th element of α ordered by r.
That is, enum maps an initial segment of the ordinals, those less than the order type of r, to
the elements of α.
theorem Ordinal.enum_symm_apply_coe E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] (a : α),
↑((Ordinal.enum r).symm a) = (Ordinal.typein r).toRelEmbedding a
theorem Ordinal.typein_enum E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {o : Ordinal.{u}} (h : o < Ordinal.type r),
(Ordinal.typein r).toRelEmbedding ((Ordinal.enum r) ⟨o, h⟩) = o
theorem Ordinal.enum_type E1 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(f : PrincipalSeg s r) {h : Ordinal.type s < Ordinal.type r}, (Ordinal.enum r) ⟨Ordinal.type s, h⟩ = f.top
theorem Ordinal.enum_typein E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] (a : α),
(Ordinal.enum r) ⟨(Ordinal.typein r).toRelEmbedding a, ⋯⟩ = a
theorem Ordinal.enum_lt_enum E1 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r] {o₁ o₂ : ↑(Set.Iio (Ordinal.type r))},
r ((Ordinal.enum r) o₁) ((Ordinal.enum r) o₂) ↔ o₁ < o₂
theorem Ordinal.enum_le_enum E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {o₁ o₂ : ↑(Set.Iio (Ordinal.type r))},
¬r ((Ordinal.enum r) o₁) ((Ordinal.enum r) o₂) ↔ o₂ ≤ o₁
theorem Ordinal.enum_inj E1 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r] {o₁ o₂ : ↑(Set.Iio (Ordinal.type r))},
(Ordinal.enum r) o₁ = (Ordinal.enum r) o₂ ↔ o₁ = o₂
theorem Ordinal.enum_zero_le E1 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r] (h0 : 0 < Ordinal.type r) (a : α),
¬r a ((Ordinal.enum r) ⟨0, h0⟩)
theorem Ordinal.relIso_enum' E1 #
∀ {α β : Type u} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s] (f : r ≃r s)
(o : Ordinal.{u}) (hr : o < Ordinal.type r) (hs : o < Ordinal.type s),
f ((Ordinal.enum r) ⟨o, hr⟩) = (Ordinal.enum s) ⟨o, hs⟩
theorem Ordinal.relIso_enum E1 #
∀ {α β : Type u} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s] (f : r ≃r s)
(o : Ordinal.{u}) (hr : o < Ordinal.type r), f ((Ordinal.enum r) ⟨o, hr⟩) = (Ordinal.enum s) ⟨o, ⋯⟩
instance Ordinal.small_Iio E0 #
∀ (o : Ordinal.{u}), Small.{u, u + 1} ↑(Set.Iio o)
instance Ordinal.small_Iic E0 #
∀ (o : Ordinal.{u}), Small.{u, u + 1} ↑(Set.Iic o)
instance Ordinal.small_Ico E0 #
∀ (a b : Ordinal.{u}), Small.{u, u + 1} ↑(Set.Ico a b)
instance Ordinal.small_Icc E0 #
∀ (a b : Ordinal.{u}), Small.{u, u + 1} ↑(Set.Icc a b)
instance Ordinal.small_Ioo E0 #
∀ (a b : Ordinal.{u}), Small.{u, u + 1} ↑(Set.Ioo a b)
instance Ordinal.small_Ioc E0 #
∀ (a b : Ordinal.{u}), Small.{u, u + 1} ↑(Set.Ioc a b)
instance Ordinal.lt_wf E0 #
WellFoundedLT Ordinal.{u_1}
instance Ordinal.wellFoundedRelation E0 #
WellFoundedRelation Ordinal.{u_1}
instance Ordinal.instConditionallyCompleteLinearOrderBot E0 #
ConditionallyCompleteLinearOrderBot Ordinal.{u_1}
theorem Ordinal.typein_apply E0 #
∀ {α β : Type u_1} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(f : InitialSeg r s) (a : α), (Ordinal.typein s).toRelEmbedding (f a) = (Ordinal.typein r).toRelEmbedding a
def Ordinal.card E1 #
Ordinal.{u_1} → Cardinal.{u_1}
The cardinal of an ordinal is the cardinality of any type on which a relation with that order type is defined.
theorem Ordinal.card_type E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r], (Ordinal.type r).card = Cardinal.mk α
theorem Ordinal.card_typein E0 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r] (x : α),
((Ordinal.typein r).toRelEmbedding x).card = Cardinal.mk { y // r y x }
theorem Ordinal.card_le_card E1 #
∀ {o₁ o₂ : Ordinal.{u_1}}, o₁ ≤ o₂ → o₁.card ≤ o₂.card
theorem Ordinal.card_monotone E1 #
Monotone Ordinal.card
theorem Ordinal.card_zero E0 #
Ordinal.card 0 = 0
theorem Ordinal.card_one E0 #
Ordinal.card 1 = 1
theorem Ordinal.card_typein_min_le_mk E0 #
∀ {α : Type u} (r : α → α → Prop) [h : IsWellOrder α r] {s : Set α} (hs : sᶜ.Nonempty),
((Ordinal.typein r).toRelEmbedding (⋯.min sᶜ hs)).card ≤ Cardinal.mk ↑s
The cardinality of a set is an upper-bound for the cardinality of the order type of the set's
mex (minimum excluded value). See not_lt_enum_ord_mk_min_compl for the α version.
theorem Ordinal.mk_le_of_forall_mk_setOfPred_lt E1 #
∀ {α β : Type u} {c : Cardinal.{u}} [inst : LinearOrder β] [WellFoundedLT β] (f : α → β),
Function.Injective f → (∀ (x : α), Cardinal.mk ↑{y | f y < f x} < c) → Cardinal.mk α ≤ c
If α can be embedded in a well-order such that any initial segment has cardinal less than c,
then α has cardinal at most c.
def Ordinal.lift E3 #
Ordinal.{v} → Ordinal.{max v u}
The universe lift operation for ordinals, which embeds Ordinal.{u} as
a proper initial segment of Ordinal.{v} for v > u. For the initial segment version,
see liftInitialSeg.
theorem Ordinal.type_ulift E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r],
Ordinal.type (ULift.down ⁻¹'o r) = Ordinal.lift.{v, u} (Ordinal.type r)
theorem Ordinal.type_lt_ulift E0 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α],
(Ordinal.type fun x1 x2 ↦ x1 < x2) = Ordinal.lift.{v, u} (Ordinal.type fun x1 x2 ↦ x1 < x2)
theorem RelIso.ordinal_lift_type_eq E0 #
∀ {α : Type u} {β : Type v} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(f : r ≃r s), Ordinal.lift.{v, u} (Ordinal.type r) = Ordinal.lift.{u, v} (Ordinal.type s)
theorem Ordinal.type_preimage E0 #
∀ {α β : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] (f : β ≃ α), Ordinal.type (⇑f ⁻¹'o r) = Ordinal.type r
theorem Ordinal.type_lift_preimage E0 #
∀ {α : Type u} {β : Type v} (r : α → α → Prop) [inst : IsWellOrder α r] (f : β ≃ α),
Ordinal.lift.{u, v} (Ordinal.type (⇑f ⁻¹'o r)) = Ordinal.lift.{v, u} (Ordinal.type r)
theorem Ordinal.lift_umax E1 #
Ordinal.lift.{max u v, u} = Ordinal.lift.{v, u}
lift.{max u v, u} equals lift.{v, u}.
Unfortunately, the simp lemma doesn't seem to work.
theorem Ordinal.lift_id' E1 #
∀ (a : Ordinal.{max u_1 u_2}), Ordinal.lift.{u_1, max u_1 u_2} a = a
An ordinal lifted to a lower or equal universe equals itself.
Unfortunately, the simp lemma doesn't work.
theorem Ordinal.lift_id E0 #
∀ (a : Ordinal.{u}), Ordinal.lift.{u, u} a = a
An ordinal lifted to the same universe equals itself.
theorem Ordinal.lift_uzero E0 #
∀ (a : Ordinal.{u}), Ordinal.lift.{0, u} a = a
An ordinal lifted to the zero universe equals itself.
theorem Ordinal.lift_type_le E1 #
∀ {α : Type u} {β : Type v} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.lift.{max v w, u} (Ordinal.type r) ≤ Ordinal.lift.{max u w, v} (Ordinal.type s) ↔ Nonempty (InitialSeg r s)
theorem Ordinal.lift_type_eq E0 #
∀ {α : Type u} {β : Type v} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.lift.{max v w, u} (Ordinal.type r) = Ordinal.lift.{max u w, v} (Ordinal.type s) ↔ Nonempty (r ≃r s)
theorem Ordinal.lift_type_lt E1 #
∀ {α : Type u} {β : Type v} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.lift.{max v w, u} (Ordinal.type r) < Ordinal.lift.{max u w, v} (Ordinal.type s) ↔ Nonempty (PrincipalSeg r s)
theorem Ordinal.lift_le E0 #
∀ {a b : Ordinal.{v}}, Ordinal.lift.{u, v} a ≤ Ordinal.lift.{u, v} b ↔ a ≤ b
theorem Ordinal.lift_inj E0 #
∀ {a b : Ordinal.{v}}, Ordinal.lift.{u, v} a = Ordinal.lift.{u, v} b ↔ a = b
theorem Ordinal.lift_lt E0 #
∀ {a b : Ordinal.{v}}, Ordinal.lift.{u, v} a < Ordinal.lift.{u, v} b ↔ a < b
theorem Ordinal.lift_typein_top E0 #
∀ {α : Type u} {β : Type v} {r : α → α → Prop} {s : β → β → Prop} [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s]
(f : PrincipalSeg r s),
Ordinal.lift.{u, v} ((Ordinal.typein s).toRelEmbedding f.top) = Ordinal.lift.{v, u} (Ordinal.type r)
theorem Ordinal.typein_ordinal E0 #
∀ (o : Ordinal.{u}), (Ordinal.typein LT.lt).toRelEmbedding o = Ordinal.lift.{u + 1, u} o
theorem Ordinal.type_lt_Iio E1 #
∀ (o : Ordinal.{u}), (Ordinal.type fun x1 x2 ↦ x1 < x2) = Ordinal.lift.{u + 1, u} o
abbrev Ordinal.ToType E1 #
Ordinal.{u} → Type u
A "canonical" type order-isomorphic to the ordinal o, living in the same universe. It is
defined as Shrink (Iio o), which shrinks Iio o : Type (u + 1) down to Type u through the
axiom of choice; in particular, it has no useful def-eqs.
Use this over Iio o only when it is paramount to have a Type u rather than a Type (u + 1),
and convert using
Ordinal.ToType.mk : Iio o → o.ToType
Ordinal.ToType.toOrd : o.ToType → Iio o
instance Ordinal.instWellFoundedRelationToType E0 #
(o : Ordinal.{u_1}) → WellFoundedRelation o.ToType
instance Ordinal.instSuccOrderToType E0 #
(o : Ordinal.{u_1}) → SuccOrder o.ToType
def Ordinal.ToType.mk E1 #
{o : Ordinal.{u_1}} → ↑(Set.Iio o) ≃o o.ToType
The order isomorphism between ordinals less than o and o.ToType.
abbrev Ordinal.ToType.toOrd E1 #
{o : Ordinal.{u_1}} → o.ToType → ↑(Set.Iio o)
Convert an element of o.ToType to the corresponding element of Iio o.
instance Ordinal.instCoeToTypeElemIio E0 #
(o : Ordinal.{u_1}) → Coe o.ToType ↑(Set.Iio o)
instance Ordinal.instCoeOutToType E0 #
(o : Ordinal.{u_1}) → CoeOut o.ToType Ordinal.{u_1}
theorem Ordinal.type_toType E0 #
∀ (o : Ordinal.{u}), (Ordinal.type fun x1 x2 ↦ x1 < x2) = o
theorem Ordinal.isEmpty_toType_iff E0 #
∀ {o : Ordinal.{u_1}}, IsEmpty o.ToType ↔ o = 0
instance Ordinal.isEmpty_toType_zero E0 #
IsEmpty (Ordinal.ToType 0)
theorem Ordinal.nonempty_toType_iff E0 #
∀ {o : Ordinal.{u_1}}, Nonempty o.ToType ↔ o ≠ 0
theorem Ordinal.typein_lt_self E1 #
∀ {o : Ordinal.{u_1}} (i : o.ToType), (Ordinal.typein fun x1 x2 ↦ x1 < x2).toRelEmbedding i < o
theorem Ordinal.enum_le_enum' E0 #
∀ (a : Ordinal.{u_1}) {o₁ o₂ : ↑(Set.Iio (Ordinal.type fun x1 x2 ↦ x1 < x2))},
(Ordinal.enum fun x1 x2 ↦ x1 < x2) o₁ ≤ (Ordinal.enum fun x1 x2 ↦ x1 < x2) o₂ ↔ o₁ ≤ o₂
theorem Ordinal.enum_zero_le' E1 #
∀ {o : Ordinal.{u_1}} (h0 : 0 < o) (a : o.ToType), (Ordinal.enum fun x1 x2 ↦ x1 < x2) ⟨0, ⋯⟩ ≤ a
theorem Cardinal.mk_toType E0 #
∀ (o : Ordinal.{u_1}), Cardinal.mk o.ToType = o.card
def Ordinal.liftInitialSeg E3 #
Ordinal.{v} ≤i Ordinal.{max u v}
Initial segment version of the lift operation on ordinals, embedding Ordinal.{u} in
Ordinal.{v} as an initial segment when u ≤ v.
theorem Ordinal.liftInitialSeg_coe E0 #
⇑Ordinal.liftInitialSeg = Ordinal.lift.{v, u}
theorem Ordinal.lift_lift E0 #
∀ (a : Ordinal.{u}), Ordinal.lift.{w, max v u} (Ordinal.lift.{v, u} a) = Ordinal.lift.{max v w, u} a
theorem Ordinal.lift_zero E0 #
Ordinal.lift.{u_2, u_1} 0 = 0
theorem Ordinal.lift_one E0 #
Ordinal.lift.{u_2, u_1} 1 = 1
theorem Ordinal.lift_card E0 #
∀ (a : Ordinal.{v}), Cardinal.lift.{u, v} a.card = (Ordinal.lift.{u, v} a).card
theorem Ordinal.mem_range_lift_of_le E0 #
∀ {a : Ordinal.{u}} {b : Ordinal.{max u v}}, b ≤ Ordinal.lift.{v, u} a → b ∈ Set.range Ordinal.lift.{v, u}
theorem Ordinal.le_lift_iff E0 #
∀ {a : Ordinal.{u}} {b : Ordinal.{max u v}}, b ≤ Ordinal.lift.{v, u} a ↔ ∃ a' ≤ a, Ordinal.lift.{v, u} a' = b
theorem Ordinal.lt_lift_iff E0 #
∀ {a : Ordinal.{u}} {b : Ordinal.{max u v}}, b < Ordinal.lift.{v, u} a ↔ ∃ a' < a, Ordinal.lift.{v, u} a' = b
theorem Ordinal.cardinalMk_Iio E0 #
∀ (o : Ordinal.{u}), Cardinal.mk ↑(Set.Iio o) = Cardinal.lift.{u + 1, u} o.card
def Ordinal.omega0 E3 #
Ordinal.{u}
ω is the first infinite ordinal, defined as the order type of ℕ.
Conventions for notations in identifiers:
- The recommended spelling of
ωin identifiers isomega0.
def Ordinal.termω E1 #
Lean.ParserDescr
ω is the first infinite ordinal, defined as the order type of ℕ.
Conventions for notations in identifiers:
- The recommended spelling of
ωin identifiers isomega0.
theorem Ordinal.type_nat_lt E0 #
(Ordinal.type fun x1 x2 ↦ x1 < x2) = Ordinal.omega0
Note that the presence of this lemma makes simp [omega0] form a loop.
theorem Ordinal.card_omega0 E0 #
Ordinal.omega0.card = Cardinal.aleph0
theorem Ordinal.lift_omega0 E0 #
Ordinal.lift.{u_1, u_2} Ordinal.omega0 = Ordinal.omega0
instance Ordinal.add E0 #
Add Ordinal.{u}
o₁ + o₂ is the order on the disjoint union of o₁ and o₂ obtained by declaring that
every element of o₁ is smaller than every element of o₂.
instance Ordinal.addMonoidWithOne E0 #
AddMonoidWithOne Ordinal.{u}
theorem Ordinal.card_add E0 #
∀ (o₁ o₂ : Ordinal.{u_1}), (o₁ + o₂).card = o₁.card + o₂.card
theorem Ordinal.card_add_one E1 #
∀ (o : Ordinal.{u_1}), (o + 1).card = o.card + 1
theorem Ordinal.type_sum_lex E0 #
∀ {α β : Type u} (r : α → α → Prop) (s : β → β → Prop) [inst : IsWellOrder α r] [inst_1 : IsWellOrder β s],
Ordinal.type (Sum.Lex r s) = Ordinal.type r + Ordinal.type s
theorem Ordinal.type_lt_sum_lex E0 #
∀ {α β : Type u} [inst : LinearOrder α] [inst_1 : LinearOrder β] [inst_2 : WellFoundedLT α] [inst_3 : WellFoundedLT β],
(Ordinal.type fun x1 x2 ↦ x1 < x2) = (Ordinal.type fun x1 x2 ↦ x1 < x2) + Ordinal.type fun x1 x2 ↦ x1 < x2
theorem Ordinal.type_lt_withTop E0 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α],
(Ordinal.type fun x1 x2 ↦ x1 < x2) = (Ordinal.type fun x1 x2 ↦ x1 < x2) + 1
theorem Ordinal.type_lt_withBot E0 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α],
(Ordinal.type fun x1 x2 ↦ x1 < x2) = 1 + Ordinal.type fun x1 x2 ↦ x1 < x2
theorem Ordinal.card_nat E0 #
∀ (n : ℕ), (↑n).card = ↑n
theorem Ordinal.card_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], (OfNat.ofNat n).card = OfNat.ofNat n
instance Ordinal.instAddLeftMono E0 #
AddLeftMono Ordinal.{u}
instance Ordinal.instAddRightMono E0 #
AddRightMono Ordinal.{u}
instance Ordinal.existsAddOfLE E0 #
ExistsAddOfLE Ordinal.{u_1}
instance Ordinal.canonicallyOrderedAdd E0 #
CanonicallyOrderedAdd Ordinal.{u_1}
theorem Ordinal.sInf_empty E0 #
sInf ∅ = 0
instance Ordinal.instNoMaxOrder E0 #
NoMaxOrder Ordinal.{u_1}
instance Ordinal.instSuccOrder E0 #
SuccOrder Ordinal.{u}
instance Ordinal.instSuccAddOrder E0 #
SuccAddOrder Ordinal.{u_1}
instance Ordinal.uniqueIioOne E0 #
Unique ↑(Set.Iio 1)
theorem Ordinal.Iio_one_default_eq E0 #
default = ⟨0, ⋯⟩
instance Ordinal.uniqueToTypeOne E0 #
Unique (Ordinal.ToType 1)
theorem Ordinal.one_toType_eq E0 #
∀ (x : Ordinal.ToType 1), x = (Ordinal.enum fun x1 x2 ↦ x1 < x2) ⟨0, Ordinal.uniqueToTypeOne._proof_2⟩
theorem Ordinal.type_lt_mem_range_succ_iff E0 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α],
(Ordinal.type fun x1 x2 ↦ x1 < x2) ∈ Set.range Order.succ ↔ ∃ x, IsMax x
theorem Ordinal.type_lt_mem_range_succ E1 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α] [OrderTop α],
(Ordinal.type fun x1 x2 ↦ x1 < x2) ∈ Set.range Order.succ
theorem Ordinal.isSuccPrelimit_type_lt_iff E0 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α],
Order.IsSuccPrelimit (Ordinal.type fun x1 x2 ↦ x1 < x2) ↔ NoMaxOrder α
theorem Ordinal.isSuccPrelimit_type_lt E1 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α] [h : NoMaxOrder α],
Order.IsSuccPrelimit (Ordinal.type fun x1 x2 ↦ x1 < x2)
theorem Ordinal.typein_one_toType E0 #
∀ (x : Ordinal.ToType 1), (Ordinal.typein fun x1 x2 ↦ x1 < x2).toRelEmbedding x = 0
theorem Ordinal.typein_le_typein' E1 #
∀ (o : Ordinal.{u_1}) {x y : o.ToType},
(Ordinal.typein fun x1 x2 ↦ x1 < x2).toRelEmbedding x ≤ (Ordinal.typein fun x1 x2 ↦ x1 < x2).toRelEmbedding y ↔ x ≤ y
theorem Ordinal.le_enum_succ E1 #
∀ {o : Ordinal.{u_1}} (a : (Order.succ o).ToType), a ≤ (Ordinal.enum fun x1 x2 ↦ x1 < x2) ⟨o, ⋯⟩
def Cardinal.ord E1 #
Cardinal.{u} → Ordinal.{u}
The ordinal corresponding to a cardinal c is the least ordinal whose cardinal is c.
theorem Cardinal.ord_eq_iInf E1 #
∀ (α : Type u), (Cardinal.mk α).ord = ⨅ r, Ordinal.type ↑r
theorem Cardinal.exists_ord_eq E0 #
∀ (α : Type u_1), ∃ r, ∃ (x : IsWellOrder α r), (Cardinal.mk α).ord = Ordinal.type r
There exists a well-order on α whose order type is exactly ord #α.
theorem Cardinal.exists_ord_eq_type_lt E1 #
∀ (α : Type u_1), ∃ x, ∃ (x_1 : WellFoundedLT α), (Cardinal.mk α).ord = Ordinal.type fun x1 x2 ↦ x1 < x2
There exists a well-order on α whose order type is exactly ord #α.
theorem Cardinal.ord_le_type E1 #
∀ {α : Type u} (r : α → α → Prop) [h : IsWellOrder α r], (Cardinal.mk α).ord ≤ Ordinal.type r
theorem Cardinal.card_ord E0 #
∀ (c : Cardinal.{u_1}), c.ord.card = c
theorem Cardinal.gc_ord_card E1 #
GaloisConnection Cardinal.ord Ordinal.card
Galois connection between Cardinal.ord and Ordinal.card.
def Cardinal.gciOrdCard E1 #
GaloisCoinsertion Cardinal.ord Ordinal.card
Galois coinsertion between Cardinal.ord and Ordinal.card.
theorem Cardinal.ord_le E1 #
∀ {c : Cardinal.{u_1}} {o : Ordinal.{u_1}}, c.ord ≤ o ↔ c ≤ o.card
theorem Cardinal.lt_ord E1 #
∀ {c : Cardinal.{u_1}} {o : Ordinal.{u_1}}, o < c.ord ↔ o.card < c
theorem Cardinal.card_surjective E1 #
Function.Surjective Ordinal.card
theorem Cardinal.bddAbove_ord_image_iff E0 #
∀ {s : Set Cardinal.{u_1}}, BddAbove (Cardinal.ord '' s) ↔ BddAbove s
theorem Cardinal.ord_card_le E1 #
∀ (o : Ordinal.{u_1}), o.card.ord ≤ o
theorem Cardinal.lt_ord_succ_card E1 #
∀ (o : Ordinal.{u_1}), o < (Order.succ o.card).ord
theorem Ordinal.card_le_iff E0 #
∀ {o : Ordinal.{u_1}} {c : Cardinal.{u_1}}, o.card ≤ c ↔ o < (Order.succ c).ord
theorem Ordinal.card_le_of_le_ord E1 #
∀ {o : Ordinal.{u_1}} {c : Cardinal.{u_1}}, o ≤ c.ord → o.card ≤ c
A variation on Cardinal.lt_ord using ≤: If o is no greater than the
initial ordinal of cardinality c, then its cardinal is no greater than c.
The converse, however, is false (for instance, o = ω + 1 and c = ℵ₀).
theorem Cardinal.ord_strictMono E1 #
StrictMono Cardinal.ord
theorem Cardinal.ord_mono E1 #
Monotone Cardinal.ord
theorem Cardinal.ord_injective E1 #
Function.Injective Cardinal.ord
theorem Cardinal.ord_le_ord E0 #
∀ {c₁ c₂ : Cardinal.{u_1}}, c₁.ord ≤ c₂.ord ↔ c₁ ≤ c₂
theorem Cardinal.ord_lt_ord E0 #
∀ {c₁ c₂ : Cardinal.{u_1}}, c₁.ord < c₂.ord ↔ c₁ < c₂
theorem Cardinal.ord_inj E0 #
∀ {c₁ c₂ : Cardinal.{u_1}}, c₁.ord = c₂.ord ↔ c₁ = c₂
theorem Cardinal.ord_zero E0 #
Cardinal.ord 0 = 0
theorem Cardinal.ord_natCast E0 #
∀ (n : ℕ), (↑n).ord = ↑n
theorem Cardinal.ord_ofNat E0 #
∀ (n : ℕ) [inst : n.AtLeastTwo], (OfNat.ofNat n).ord = OfNat.ofNat n
theorem Cardinal.ord_one E0 #
Cardinal.ord 1 = 1
theorem Cardinal.isNormal_ord E1 #
Order.IsNormal Cardinal.ord
theorem Cardinal.ord_aleph0 E0 #
Cardinal.aleph0.ord = Ordinal.omega0
theorem Cardinal.lift_ord E0 #
∀ (c : Cardinal.{v}), Ordinal.lift.{u, v} c.ord = (Cardinal.lift.{u, v} c).ord
theorem Cardinal.mk_ord_toType E1 #
∀ (c : Cardinal.{u_1}), Cardinal.mk c.ord.ToType = c
theorem Cardinal.card_typein_lt E1 #
∀ {α : Type u} {r : α → α → Prop} [inst : IsWellOrder α r] (x : α),
(Cardinal.mk α).ord = Ordinal.type r → ((Ordinal.typein r).toRelEmbedding x).card < Cardinal.mk α
theorem Cardinal.mk_Iio_lt E0 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α] (i : α),
((Cardinal.mk α).ord = Ordinal.type fun x1 x2 ↦ x1 < x2) → Cardinal.mk ↑(Set.Iio i) < Cardinal.mk α
theorem Cardinal.mk_Ioi_lt E1 #
∀ {α : Type u_1} [inst : LinearOrder α] [inst_1 : WellFoundedGT α] (i : α),
((Cardinal.mk α).ord = Ordinal.type fun x1 x2 ↦ x1 < x2) → Cardinal.mk ↑(Set.Ioi i) < Cardinal.mk α
theorem Cardinal.ord_eq_zero E0 #
∀ {a : Cardinal.{u_1}}, a.ord = 0 ↔ a = 0
theorem Cardinal.ord_eq_one E0 #
∀ {a : Cardinal.{u_1}}, a.ord = 1 ↔ a = 1
theorem Cardinal.ord_pos E0 #
∀ {a : Cardinal.{u_1}}, 0 < a.ord ↔ 0 < a
theorem Cardinal.omega0_le_ord E0 #
∀ {a : Cardinal.{u_1}}, Ordinal.omega0 ≤ a.ord ↔ Cardinal.aleph0 ≤ a
theorem Cardinal.ord_le_omega0 E0 #
∀ {a : Cardinal.{u_1}}, a.ord ≤ Ordinal.omega0 ↔ a ≤ Cardinal.aleph0
theorem Cardinal.ord_lt_omega0 E0 #
∀ {a : Cardinal.{u_1}}, a.ord < Ordinal.omega0 ↔ a < Cardinal.aleph0
theorem Cardinal.omega0_lt_ord E0 #
∀ {a : Cardinal.{u_1}}, Ordinal.omega0 < a.ord ↔ Cardinal.aleph0 < a
theorem Cardinal.ord_eq_omega0 E0 #
∀ {a : Cardinal.{u_1}}, a.ord = Ordinal.omega0 ↔ a = Cardinal.aleph0
theorem Cardinal.nonempty_ord_toType E1 #
∀ {c : Cardinal.{u_1}}, c ≠ 0 → Nonempty c.ord.ToType
theorem Cardinal.exists_le_of_small E1 #
∀ {ι : Type u_1} [Small.{u, u_1} ι] (κ : ι → Cardinal.{u}), ∃ κ', ∀ (i : ι), κ i ≤ κ'
theorem Cardinal.mk_Iio_le_lift E1 #
∀ (κ : Cardinal.{u}), Cardinal.mk ↑(Set.Iio κ) ≤ Cardinal.lift.{u + 1, u} κ
theorem Ordinal.nat_le_card E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ}, ↑n ≤ o.card ↔ ↑n ≤ o
theorem Ordinal.one_le_card E0 #
∀ {o : Ordinal.{u_1}}, 1 ≤ o.card ↔ 1 ≤ o
theorem Ordinal.ofNat_le_card E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ} [inst : n.AtLeastTwo], OfNat.ofNat n ≤ o.card ↔ OfNat.ofNat n ≤ o
theorem Ordinal.aleph0_le_card E0 #
∀ {o : Ordinal.{u_1}}, Cardinal.aleph0 ≤ o.card ↔ Ordinal.omega0 ≤ o
theorem Ordinal.card_lt_aleph0 E0 #
∀ {o : Ordinal.{u_1}}, o.card < Cardinal.aleph0 ↔ o < Ordinal.omega0
theorem Ordinal.nat_lt_card E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ}, ↑n < o.card ↔ ↑n < o
theorem Ordinal.zero_lt_card E0 #
∀ {o : Ordinal.{u_1}}, 0 < o.card ↔ 0 < o
theorem Ordinal.one_lt_card E0 #
∀ {o : Ordinal.{u_1}}, 1 < o.card ↔ 1 < o
theorem Ordinal.ofNat_lt_card E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ} [inst : n.AtLeastTwo], OfNat.ofNat n < o.card ↔ OfNat.ofNat n < o
theorem Ordinal.card_lt_nat E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ}, o.card < ↑n ↔ o < ↑n
theorem Ordinal.card_lt_ofNat E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ} [inst : n.AtLeastTwo], o.card < OfNat.ofNat n ↔ o < OfNat.ofNat n
theorem Ordinal.card_le_nat E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ}, o.card ≤ ↑n ↔ o ≤ ↑n
theorem Ordinal.card_le_one E0 #
∀ {o : Ordinal.{u_1}}, o.card ≤ 1 ↔ o ≤ 1
theorem Ordinal.card_le_ofNat E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ} [inst : n.AtLeastTwo], o.card ≤ OfNat.ofNat n ↔ o ≤ OfNat.ofNat n
theorem Ordinal.card_eq_nat E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ}, o.card = ↑n ↔ o = ↑n
theorem Ordinal.card_eq_zero E0 #
∀ {o : Ordinal.{u_1}}, o.card = 0 ↔ o = 0
theorem Ordinal.card_eq_one E0 #
∀ {o : Ordinal.{u_1}}, o.card = 1 ↔ o = 1
theorem Cardinal.le_ord_iff_card_le_of_lt_aleph0 E1 #
∀ (o : Ordinal.{u_1}) {c : Cardinal.{u_1}}, c < Cardinal.aleph0 → (o ≤ c.ord ↔ o.card ≤ c)
theorem Ordinal.mem_range_lift_of_card_le E0 #
∀ {a : Cardinal.{u}} {b : Ordinal.{max u v}}, b.card ≤ Cardinal.lift.{v, u} a → b ∈ Set.range Ordinal.lift.{v, u}
theorem Ordinal.card_eq_ofNat E0 #
∀ {o : Ordinal.{u_1}} {n : ℕ} [inst : n.AtLeastTwo], o.card = OfNat.ofNat n ↔ o = OfNat.ofNat n
theorem Ordinal.type_fintype E0 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] [inst_1 : Fintype α], Ordinal.type r = ↑(Fintype.card α)
theorem Ordinal.type_fin E1 #
∀ (n : ℕ), (Ordinal.type fun x1 x2 ↦ x1 < x2) = ↑n
theorem Ordinal.ord_mk_le_type E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] (s : Set α), (Cardinal.mk ↑s).ord ≤ Ordinal.type r
theorem Ordinal.ord_mk_lt_type E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {s : Set α},
s.Finite → sᶜ.Nonempty → (Cardinal.mk ↑s).ord < Ordinal.type r
theorem Ordinal.not_lt_enum_ord_mk_min_compl E1 #
∀ {α : Type u} (r : α → α → Prop) [inst : IsWellOrder α r] {s : Set α} (hfin : s.Finite) (h : sᶜ.Nonempty),
¬r ((Ordinal.enum r) ⟨(Cardinal.mk ↑s).ord, ⋯⟩) (⋯.min sᶜ h)
The #s-th element of α is an upper-bound for the set's mex (minimum excluded value),
ordered by r, when s is finite. See card_typein_min_le_mk for the Ordinal version.
theorem Ordinal.finite_toType_of_lt_omega0 E1 #
∀ {o : Ordinal.{u_1}}, o < Ordinal.omega0 → Finite o.ToType
theorem Ordinal.finite_Iio_of_lt_omega0 E1 #
∀ {o : Ordinal.{u_1}}, o < Ordinal.omega0 → (Set.Iio o).Finite
theorem List.SortedGT.lt_ord_of_lt E1 #
∀ {α : Type u} [inst : LinearOrder α] [inst_1 : WellFoundedLT α] {l m : List α} {o : Ordinal.{u}},
m.SortedGT →
m < l →
(∀ i ∈ l, (Ordinal.typein fun x1 x2 ↦ x1 < x2).toRelEmbedding i < o) →
∀ i ∈ m, (Ordinal.typein fun x1 x2 ↦ x1 < x2).toRelEmbedding i < o
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Cardinal.card_le_iff | Ordinal.card_le_iff | 2026-10-20 |
Cardinal.card_le_of_le_ord | Ordinal.card_le_of_le_ord | 2026-10-20 |
Cardinal.mk_Iio_ordinal | Ordinal.cardinalMk_Iio | 2026-10-20 |
Cardinal.mk_iio_le_lift | Cardinal.mk_Iio_le_lift | 2026-10-20 |
Ordinal.max_eq_zero | max_eq_zero | 2026-05-07 |
Ordinal.max_zero_left | zero_max | 2026-05-07 |
Ordinal.max_zero_right | max_zero | 2026-05-07 |
Ordinal.natCast_succ | Nat.cast_add_one | 2026-05-21 |
Ordinal.one_ne_zero | one_ne_zero | 2026-05-12 |
Ordinal.type_eq_zero_of_empty | Ordinal.type_of_isEmpty | 2026-11-26 |
RelIso.ordinal_type_eq | RelIso.ordinalType_congr | 2026-05-25 |