Misere combinatorial games.
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).
Ordinals equipped with natural arithmetic.
Equations
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
The natural ordinal represented by a well-order.
Instances For
The initial segment of NatOrdinal below the order type of r.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Enumerate the ordinals below a given order type by the original well-order.
Equations
Instances For
Equations
- MisereGames.NatOrdinal.wellFoundedRelation = { rel := fun (x1 x2 : MisereGames.NatOrdinal) => x1 < x2, wf := MisereGames.NatOrdinal.lt_wf }
Equations
Equations
Equations
- MisereGames.NatOrdinal.instOrderBot = { bot := 0, bot_le := MisereGames.NatOrdinal.instOrderBot._proof_1 }
Equations
- One or more equations did not get rendered due to their size.
Recursor through the underlying ordinal representation.
Equations
- MisereGames.NatOrdinal.ind mk a = mk (MisereGames.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
Add two NatOrdinals as ordinal numbers.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
- MisereGames.NatOrdinal.instSuccAddOrder = { toSuccOrder := MisereGames.NatOrdinal.instSuccOrder, succ_eq_add_one := MisereGames.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.