The positive natural numbers #
This file develops the type ℕ+ or PNat, the subtype of natural numbers that are positive.
It is defined in Data.PNat.Defs, but most of the development is deferred to here so
that Data.PNat.Defs can have very few imports.
@[instance_reducible]
@[instance_reducible]
@[instance_reducible]
@[instance_reducible]
@[instance_reducible]
@[instance_reducible]
@[instance_reducible]
Equations
@[instance_reducible]
Equations
- PNat.instCancelCommMonoid = { toCommMonoid := PNat.instCommMonoid, toIsLeftCancelMul := PNat.instCancelCommMonoid._proof_1 }
coe promoted to an AddHom, that is, a morphism which preserves addition.
Equations
- PNat.coeAddHom = { toFun := PNat.val, map_add' := PNat.add_coe }
Instances For
The order isomorphism between ℕ and ℕ+ given by succ.
Equations
- OrderIso.pnatIsoNat = { toEquiv := Equiv.pnatEquivNat, map_rel_iff' := ⋯ }
Instances For
@[instance_reducible]
Equations
- PNat.instOrderBot = { bot := 1, bot_le := PNat.instOrderBot._proof_2 }
@[simp]
@[simp]
@[simp]
PNat.coe promoted to a MonoidHom.
Equations
- PNat.coeMonoidHom = { toFun := Coe.coe, map_one' := PNat.one_coe, map_mul' := PNat.mul_coe }
Instances For
b is greater one if any a is less than b