Natural operations on ordinals #
The goal of this file is to define natural addition and multiplication on ordinals, also known as
the Hessenberg sum and product, and provide a basic API. The natural addition of two ordinals
a + b is recursively defined as the least ordinal greater than a' + b and a + b' for a' < a
and b' < b. The natural multiplication a * b is likewise recursively defined as the least
ordinal such that a * b + a' * b' is greater than a' * b + a * b' for any a' < a and
b' < b.
These operations give the ordinals a CommSemiring + IsStrictOrderedRing structure. To make the
best use of it, we define them on a type alias NatOrdinal.
An equivalent characterization explains the relevance of these operations to game theory: they are the restrictions of surreal addition and multiplication to the ordinals.
Implementation notes #
To reduce API duplication, we opt not to implement operations on NatOrdinal on Ordinal. The
order isomorphisms NatOrdinal.of and NatOrdinal.val allow us to cast between them whenever
needed.
For similar reasons, most results about ordinals and games are written using NatOrdinal rather
than Ordinal (except when Nimber would make more sense).
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- NatOrdinal.typein r = { toRelEmbedding := RelEmbedding.ofMonotone (fun (a : α) => NatOrdinal.type (Subrel r fun (x : α) => r x a)) ⋯, top := NatOrdinal.type r, mem_range_iff_rel' := ⋯ }
Instances For
Equations
- NatOrdinal.wellFoundedRelation = { rel := fun (x1 x2 : NatOrdinal) => x1 < x2, wf := NatOrdinal.lt_wf }
Equations
- NatOrdinal.zero = { zero := NatOrdinal.type emptyRelation }
Equations
- NatOrdinal.one = { one := NatOrdinal.type emptyRelation }
Equations
- NatOrdinal.instOrderBot = { bot := 0, bot_le := NatOrdinal.instOrderBot._proof_1 }
Equations
Instances For
Equations
Instances For
Equations
- NatOrdinal.ind mk a = mk (NatOrdinal.val a)
Instances For
Equations
- One or more equations did not get rendered due to their size.
Natural addition #
Natural addition on ordinals a + b, also known as the Hessenberg sum, is recursively defined
as the least ordinal greater than a' + b and a + b' for all a' < a and b' < b. In contrast
to normal ordinal addition, it is commutative.
Natural addition can equivalently be characterized as the ordinal resulting from adding up
corresponding coefficients in the Cantor normal forms of a and b.
Equations
- NatOrdinal.instAdd = { add := NatOrdinal.add✝ }
Add two NatOrdinals as ordinal numbers.
Equations
- NatOrdinal.«term_+ₒ_» = Lean.ParserDescr.trailingNode `NatOrdinal.«term_+ₒ_» 65 65 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol "+ₒ") (Lean.ParserDescr.cat `term 66))
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- NatOrdinal.instSuccAddOrder = { toSuccOrder := NatOrdinal.instSuccOrder, succ_eq_add_one := NatOrdinal.instSuccAddOrder._proof_1 }
Equations
- One or more equations did not get rendered due to their size.
A version of oadd_le_add stated in terms of Ordinal.