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.PNat.Notation

6 declarations. Mathlib docs · Source

def PNat E1 #

Type

ℕ+ is the type of positive natural numbers. It is defined as a subtype, and the VM representation of ℕ+ is the same as ℕ because the proof is not stored.

instance instDecidableEqPNat E0 #

DecidableEq ℕ+

def «termℕ+» E1 #

Lean.ParserDescr

ℕ+ is the type of positive natural numbers. It is defined as a subtype, and the VM representation of ℕ+ is the same as ℕ because the proof is not stored.

def PNat.val E1 #

ℕ+ → ℕ

The underlying natural number

instance coePNatNat E0 #

Coe ℕ+ ℕ

instance instReprPNat E0 #

Repr ℕ+