Documentation

Mathlib.Data.ENat.Defs

Definition and notation for extended natural numbers #

def ENat :

Extended natural numbers ℕ∞ = WithTop ℕ.

Equations
Instances For

    Extended natural numbers ℕ∞ = WithTop ℕ.

    Equations
    Instances For
      def ENat.recTopCoe {C : ℕ∞ → Sort u_1} (top : C ⊤) (coe : (a : ℕ) → C ↑a) (n : ℕ∞) :
      C n

      Recursor for ENat using the preferred forms ⊤ and ↑a.

      Equations
      Instances For
        @[simp]
        theorem ENat.recTopCoe_top {C : ℕ∞ → Sort u_1} (d : C ⊤) (f : (a : ℕ) → C ↑a) :
        @[simp]
        theorem ENat.recTopCoe_coe {C : ℕ∞ → Sort u_1} (d : C ⊤) (f : (a : ℕ) → C ↑a) (x : ℕ) :
        recTopCoe d f ↑x = f x