Cardinals and ordinals #
Relationships between cardinals and ordinals, properties of cardinals that are proved using ordinals.
Main definitions #
- The function
cardinal.aleph'
gives the cardinals listed by their ordinal index, and is the inverse ofcardinal.aleph_idx
.aleph' n = n
,aleph' ω = cardinal.omega = ℵ₀
,aleph' (ω + 1) = ℵ₁
, etc. It is an order isomorphism between ordinals and cardinals. - The function
cardinal.aleph
gives the infinite cardinals listed by their ordinal index.aleph 0 = cardinal.omega = ℵ₀
,aleph 1 = ℵ₁
is the first uncountable cardinal, and so on.
Main Statements #
cardinal.mul_eq_max
andcardinal.add_eq_max
state that the product (resp. sum) of two infinite cardinals is just their maximum. Several variations around this fact are also given.cardinal.mk_list_eq_mk
: whenα
is infinite,α
andlist α
have the same cardinality.- simp lemmas for inequalities between
bit0 a
andbit1 b
are registered, makingsimp
able to prove inequalities about numeral cardinals.
Tags #
cardinal arithmetic (for infinite cardinals)
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.)
In this definition, we register additionally that this function is an initial segment,
i.e., it is order preserving and its range is an initial segment of the ordinals.
For the basic function version, see aleph_idx
.
For an upgraded version stating that the range is everything, see aleph_idx.rel_iso
.
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.)
For an upgraded version stating that the range is everything, see aleph_idx.rel_iso
.
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.)
In this version, we register additionally that this function is an order isomorphism
between cardinals and ordinals.
For the basic function version, see aleph_idx
.
Equations
- cardinal.aleph_idx.rel_iso = rel_iso.of_surjective ↑cardinal.aleph_idx.initial_seg cardinal.aleph_idx.rel_iso._proof_1
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.
In this version, we register additionally that this function is an order isomorphism
between ordinals and cardinals.
For the basic function version, see 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.
Equations
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.
Equations
- cardinal.aleph o = cardinal.aleph' (ω + o)
Ordinals that are cardinals are unbounded.
ord ∘ aleph'
enumerates the ordinals that are cardinals.
ord ∘ aleph
enumerates the infinite ordinals that are cardinals.
Properties of mul
#
Properties of add
#
Properties about power #
Computing cardinality of various types #
Properties of compl
#
Extending an injection to an equiv #
This section proves inequalities for bit0
and bit1
, enabling simp
to solve inequalities
for numeral cardinals. The complexity of the resulting algorithm is not good, as in some cases
simp
reduces an inequality to a disjunction of two situations, depending on whether a cardinal
is finite or infinite. Since the evaluation of the branches is not lazy, this is bad. It is good
enough for practical situations, though.
For specific numbers, these inequalities could also be deduced from the corresponding
inequalities of natural numbers using norm_cast
:
example : (37 : cardinal) < 42 :=
by { norm_cast, norm_num }