Documentation

Mathlib.Data.ENat.Defs

Definition and notation for extended natural numbers #

def ENat :

Extended natural numbers ℕ∞ = WithTop.

Instances For
    @[implicit_reducible]
    @[implicit_reducible]
    instance instInhabitedENat :
    Inhabited ℕ∞
    def «termℕ∞» :
    Lean.ParserDescr

    Extended natural numbers ℕ∞ = WithTop.

    Instances For
      @[implicit_reducible]
      instance ENat.instNatCast :
      NatCast ℕ∞
      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.

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