The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

Mathlib.Data.ENat.Defs

9 declarations and 1 deprecated aliases. Mathlib docs · Source

def ENat E1 #

Type

Extended natural numbers ℕ∞ = WithTop ℕ.

instance instTopENat E0 #

Top ℕ∞

instance instReprENat E0 #

Repr ℕ∞

instance instInhabitedENat E0 #

Inhabited ℕ∞

def «termℕ∞» E1 #

Lean.ParserDescr

Extended natural numbers ℕ∞ = WithTop ℕ.

instance ENat.instNatCast E0 #

NatCast ℕ∞

def ENat.recTopCoe E1 #

{C : ℕ∞ → Sort u_1} → C ⊤ → ((a : ℕ) → C ↑a) → (n : ℕ∞) → C n

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

theorem ENat.recTopCoe_top E0 #

∀ {C : ℕ∞ → Sort u_1} (d : C ⊤) (f : (a : ℕ) → C ↑a), ENat.recTopCoe d f ⊤ = d

theorem ENat.recTopCoe_natCast E0 #

∀ {C : ℕ∞ → Sort u_1} (d : C ⊤) (f : (a : ℕ) → C ↑a) (x : ℕ), ENat.recTopCoe d f ↑x = f x

Deprecated aliases

NameNew nameSince
ENat.recTopCoe_coeENat.recTopCoe_natCast2026-07-17