Documentation

CombinatorialGames.Nimber.Nat

Finite nimber arithmetic #

This file defines the type alias NatNimber of the natural numbers, endowed with nimber arithmetic. The goal is to define the field structure computably, and prove that it matches that on Nimber.

@[instance_reducible]
Equations

The natural numbers, endowed with nim operations.

Equations
Instances For
    @[simp]
    theorem NatNimber.val_eq_zero {a✝ : NatNimber} :
    val a✝ = 0 ↔ a✝ = 0
    theorem NatNimber.val_iSup {ι✝ : Sort u_1} (f✝ : ι✝ → NatNimber) :
    val (iSup f✝) = ⨆ (i : ι✝), val (f✝ i)
    @[match_pattern]

    The identity function between NatNimber and Nat.

    Equations
    Instances For
      @[simp]
      theorem NatNimber.of_eq_one {a✝ : ℕ} :
      of a✝ = 1 ↔ a✝ = 1
      @[simp]
      theorem NatNimber.one_lt_of {a✝ : ℕ} :
      1 < of a✝ ↔ 1 < a✝
      theorem NatNimber.one_le_val {a✝ : NatNimber} :
      1 ≤ val a✝ ↔ 1 ≤ a✝
      def NatNimber.ind {motive✝ : NatNimber → Sort u_1} (of : (a : ℕ) → motive✝ (of a)) (a✝ : NatNimber) :
      motive✝ a✝

      A recursor for NatNimber. Use as cases x.

      Equations
      Instances For
        @[instance_reducible]
        Equations
        • One or more equations did not get rendered due to their size.
        theorem NatNimber.of_sSup (s✝ : Set ℕ) :
        of (sSup s✝) = sSup (⇑val ⁻¹' s✝)
        @[simp]
        theorem NatNimber.val_eq_one {a✝ : NatNimber} :
        val a✝ = 1 ↔ a✝ = 1
        theorem NatNimber.val_iInf {ι✝ : Sort u_1} (f✝ : ι✝ → NatNimber) :
        val (iInf f✝) = ⨅ (i : ι✝), val (f✝ i)
        theorem NatNimber.one_le_of {a✝ : ℕ} :
        1 ≤ of a✝ ↔ 1 ≤ a✝
        @[simp]
        theorem NatNimber.zero_eq_val {a✝ : NatNimber} :
        0 = val a✝ ↔ 0 = a✝
        theorem NatNimber.val_le_iff {a✝ : NatNimber} {b✝ : ℕ} :
        val a✝ ≤ b✝ ↔ a✝ ≤ of b✝
        @[instance_reducible]
        Equations
        • One or more equations did not get rendered due to their size.
        theorem NatNimber.of_sInf (s✝ : Set ℕ) :
        of (sInf s✝) = sInf (⇑val ⁻¹' s✝)
        theorem NatNimber.val_sInf (s✝ : Set NatNimber) :
        val (sInf s✝) = sInf (⇑of ⁻¹' s✝)
        theorem NatNimber.val_eq_iff {a✝ : NatNimber} {b✝ : ℕ} :
        val a✝ = b✝ ↔ a✝ = of b✝
        @[simp]
        theorem NatNimber.val_one :
        val 1 = 1
        @[simp]
        theorem NatNimber.one_eq_of {a✝ : ℕ} :
        1 = of a✝ ↔ 1 = a✝
        @[simp]
        theorem NatNimber.one_eq_val {a✝ : NatNimber} :
        1 = val a✝ ↔ 1 = a✝
        @[simp]
        theorem NatNimber.of_zero :
        of 0 = 0
        theorem NatNimber.of_le_iff {a✝ : ℕ} {b✝ : NatNimber} :
        of a✝ ≤ b✝ ↔ a✝ ≤ val b✝
        theorem NatNimber.val_sSup (s✝ : Set NatNimber) :
        val (sSup s✝) = sSup (⇑of ⁻¹' s✝)
        theorem NatNimber.lt_wf :
        WellFounded fun (x1 x2 : NatNimber) => x1 < x2
        @[simp]
        theorem NatNimber.one_lt_val {a✝ : NatNimber} :
        1 < val a✝ ↔ 1 < a✝
        @[simp]
        theorem NatNimber.of_eq_zero {a✝ : ℕ} :
        of a✝ = 0 ↔ a✝ = 0
        @[simp]
        theorem NatNimber.of_one :
        of 1 = 1
        theorem NatNimber.val_lt_iff {a✝ : NatNimber} {b✝ : ℕ} :
        val a✝ < b✝ ↔ a✝ < of b✝
        @[simp]
        theorem NatNimber.of_val (a✝ : NatNimber) :
        of (val a✝) = a✝
        theorem NatNimber.of_ne_zero {a✝ : ℕ} :
        of a✝ ≠ 0 ↔ a✝ ≠ 0
        theorem NatNimber.of_preimage (s✝ : Set NatNimber) :
        ⇑of ⁻¹' s✝ = ⇑val '' s✝
        theorem NatNimber.of_ne_one {a✝ : ℕ} :
        of a✝ ≠ 1 ↔ a✝ ≠ 1
        @[simp]
        theorem NatNimber.val_zero :
        val 0 = 0
        @[simp]
        theorem NatNimber.zero_eq_of {a✝ : ℕ} :
        0 = of a✝ ↔ 0 = a✝
        theorem NatNimber.of_eq_iff {a✝ : ℕ} {b✝ : NatNimber} :
        of a✝ = b✝ ↔ a✝ = val b✝
        @[simp]
        theorem NatNimber.of_pos {a✝ : ℕ} :
        0 < of a✝ ↔ 0 < a✝
        theorem NatNimber.val_lt_one {a✝ : NatNimber} :
        val a✝ < 1 ↔ a✝ < 1
        @[simp]
        theorem NatNimber.val_le_one {a✝ : NatNimber} :
        val a✝ ≤ 1 ↔ a✝ ≤ 1
        @[simp]
        theorem NatNimber.val_of (a✝ : ℕ) :
        val (of a✝) = a✝
        theorem NatNimber.of_iSup {ι✝ : Sort u_1} (f✝ : ι✝ → ℕ) :
        of (iSup f✝) = ⨆ (i : ι✝), of (f✝ i)
        theorem NatNimber.of_lt_one {a✝ : ℕ} :
        of a✝ < 1 ↔ a✝ < 1
        theorem NatNimber.of_lt_iff {a✝ : ℕ} {b✝ : NatNimber} :
        of a✝ < b✝ ↔ a✝ < val b✝
        theorem NatNimber.val_ne_zero {a✝ : NatNimber} :
        val a✝ ≠ 0 ↔ a✝ ≠ 0
        theorem NatNimber.val_preimage (s✝ : Set ℕ) :
        ⇑val ⁻¹' s✝ = ⇑of '' s✝
        @[simp]
        theorem NatNimber.of_le_one {a✝ : ℕ} :
        of a✝ ≤ 1 ↔ a✝ ≤ 1
        @[instance_reducible]
        Equations
        • One or more equations did not get rendered due to their size.
        theorem NatNimber.induction {p✝ : NatNimber → Prop} (i✝ : NatNimber) :
        (∀ (j : NatNimber), (∀ k < j, p✝ k) → p✝ j) → p✝ i✝

        Well-founded induction for NatNimber.

        @[match_pattern]

        The identity function between Nat and NatNimber.

        Equations
        Instances For
          theorem NatNimber.of_iInf {ι✝ : Sort u_1} (f✝ : ι✝ → ℕ) :
          of (iInf f✝) = ⨅ (i : ι✝), of (f✝ i)
          theorem NatNimber.succ_def (a✝ : NatNimber) :
          Order.succ a✝ = of (val a✝ + 1)
          theorem NatNimber.val_ne_one {a✝ : NatNimber} :
          val a✝ ≠ 1 ↔ a✝ ≠ 1
          @[simp]
          theorem NatNimber.val_pos {a✝ : NatNimber} :
          0 < val a✝ ↔ 0 < a✝
          @[simp]
          theorem NatNimber.succ_of (a✝ : ℕ) :
          Order.succ (of a✝) = of (a✝ + 1)
          @[instance_reducible]
          Equations