initial_seg

If r is a relation on α and s in a relation on β, then f : r ≼i s is an order embedding whose range is an initial segment. That is, whenever b < f a in β then b is in the range of f.

initial_seg.of_iso

An order isomorphism is an initial segment

initial_seg.refl

The identity function shows that ≼i is reflexive

initial_seg.trans

Composition of functions shows that ≼i is transitive

initial_seg.antisymm

If we have order embeddings between α and β whose images are initial segments, and β is a well-order then α and β are order-isomorphic.

initial_seg.cod_restrict

Restrict the codomain of an initial segment

principal_seg.of_element

Any element of a well order yields a principal segment

principal_seg.cod_restrict

Restrict the codomain of a principal segment

order_embedding.collapse

Construct an initial segment from an order embedding.

embedding_to_cardinal

An embedding of any type to the set of cardinals.

well_ordering_rel

The relation whose existence is given by the well-ordering theorem

ordinal

ordinal.{u} is the type of well orders in Type u, quotient by order isomorphism.

ordinal.type

The order type of a well order is an ordinal.

ordinal.typein

The order type of an element inside a well order.

ordinal.le

Ordinal less-equal is defined such that well orders r and s satisfy type r type s if there exists a function embedding r as an initial segment of s.

ordinal.lt

Ordinal less-than is defined such that well orders r and s satisfy type r < type s if there exists a function embedding r as a principal segment of s.

ordinal.enum

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 α.

ordinal.card

The cardinal of an ordinal is the cardinal of any set with that order type.

ordinal.succ

The ordinal successor is the smallest ordinal larger than o. It is defined as o + 1.

ordinal.lift

The universe lift operation for ordinals, which embeds ordinal.{u} as a proper initial segment of ordinal.{v} for v > u.

ordinal.omega

ω is the first infinite ordinal, defined as the order type of .

ordinal.pred

The ordinal predecessor of o is o' if o = succ o', and o otherwise.

ordinal.is_limit

A limit ordinal is an ordinal which is not zero and not a successor.

ordinal.is_normal

A normal ordinal function is a strictly increasing function which is order-continuous.

ordinal.min

The minimal element of a nonempty family of ordinals

ordinal.omin

The minimal element of a nonempty set of ordinals

ordinal.univ

univ.{u v} is the order type of the ordinals of Type u as a member of ordinal.{v} (when u < v). It is an inaccessible cardinal.

ordinal.sub

a - b is the unique ordinal satisfying b + (a - b) = a when b a.

ordinal.div

a / b is the unique ordinal o satisfying a = b * o + o' with o' < b.

ordinal.has_dvd

Divisibility is defined by right multiplication: a ∣ b if there exists c such that b = a * c.

ordinal.has_mod

a % b is the unique ordinal o' satisfying a = b * o + o' with o' < b.

cardinal.ord

The ordinal corresponding to a cardinal c is the least ordinal whose cardinal is c.

cardinal.univ

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

ordinal.sup

The supremum of a family of ordinals

ordinal.bsup

The supremum of a family of ordinals indexed by the set of ordinals less than some o : ordinal.{u}. (This is not a special case of sup over the subtype, because {a // a < o} : Type (u+1) and sup only works over families in Type u.)

ordinal.power

The ordinal exponential, defined by transfinite recursion.

ordinal.log

The ordinal logarithm is the solution u to the equation x = b ^ u * v + w where v < b and w < b.

ordinal.CNF

The Cantor normal form of an ordinal is the list of coefficients in the base-b expansion of o.

CNF b (b ^ u₁ * v₁ + b ^ u₂ * v₂) = [(u₁, v₁), (u₂, v₂)]

ordinal.nfp

The next fixed point function, the least fixed point of the normal function f above a.

ordinal.deriv

The derivative of a normal function f is the sequence of fixed points of f.

cardinal.aleph_idx

The aleph' index function, which gives the ordinal index of a cardinal. (The aleph' part is because unlike aleph this counts also the finite stages. So aleph_idx n = n, aleph_idx ω = ω, aleph_idx ℵ₁ = ω + 1 and so on.)

cardinal.aleph'

The aleph' function gives the cardinals listed by their ordinal index, and is the inverse of aleph_idx. aleph' n = n, aleph' ω = ω, `aleph' (ω + 1) = ℵ₁, etc.

cardinal.aleph'_equiv

aleph' and aleph_idx form an equivalence between ordinal and cardinal

cardinal.aleph

The aleph function gives the infinite cardinals listed by their ordinal index. aleph 0 = ω, aleph 1 = succ ω is the first uncountable cardinal, and so on.