Documentation

CombinatorialGames.Tactic.OrdinalAlias

Declare type aliases of Ordinal #

This repository contains two type aliases of Ordinal, each preserving the order structure but with distinct arithmetic defined on it, namely NatOrdinal and Nimber. We define a ordinal_alias! macro which contains all the boilerplate required to set up these types. This also ensures that the API between both stays consistent.

theorem Ordinal.forall_lt_natCast {P : Ordinal.{u_1} → Prop} {n : ℕ} :
(∀ x < ↑n, P x) ↔ ∀ x < n, P ↑x
theorem Ordinal.exists_lt_natCast {P : Ordinal.{u_1} → Prop} {n : ℕ} :
(∃ x < ↑n, P x) ↔ ∃ x < n, P ↑x
theorem Ordinal.forall_le_natCast {P : Ordinal.{u_1} → Prop} {n : ℕ} :
(∀ x ≤ ↑n, P x) ↔ ∀ x ≤ n, P ↑x
theorem Ordinal.exists_le_natCast {P : Ordinal.{u_1} → Prop} {n : ℕ} :
(∃ x ≤ ↑n, P x) ↔ ∃ x ≤ n, P ↑x
theorem Ordinal.lt_three_iff {x : Ordinal.{u_1}} :
x < 3 ↔ x = 0 ∨ x = 1 ∨ x = 2
theorem Ordinal.le_three_iff {x : Ordinal.{u_1}} :
x ≤ 3 ↔ x = 0 ∨ x = 1 ∨ x = 2 ∨ x = 3
theorem Ordinal.lt_four_iff {x : Ordinal.{u_1}} :
x < 4 ↔ x = 0 ∨ x = 1 ∨ x = 2 ∨ x = 3
theorem Ordinal.le_four_iff {x : Ordinal.{u_1}} :
x ≤ 4 ↔ x = 0 ∨ x = 1 ∨ x = 2 ∨ x = 3 ∨ x = 4

Auxiliary defs #

Macros #

Declare a type alias of either Ordinal or Nat, preserving the order structure.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    Declare a type alias of Ordinal, preserving the order structure.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For