The monoid of natural numbers with addition
module elementary-number-theory.monoid-of-natural-numbers-with-addition where
Imports
open import elementary-number-theory.addition-natural-numbers open import elementary-number-theory.natural-numbers open import foundation.dependent-pair-types open import foundation.universe-levels open import group-theory.commutative-monoids open import group-theory.monoids open import group-theory.semigroups
Idea
The natural numbers equipped with 0
and addition is a commutative monoid.
Definitions
The Semigroup of natural numbers
ℕ-Semigroup : Semigroup lzero pr1 ℕ-Semigroup = ℕ-Set pr1 (pr2 ℕ-Semigroup) = add-ℕ pr2 (pr2 ℕ-Semigroup) = associative-add-ℕ
The monoid of natural numbers
ℕ-Monoid : Monoid lzero pr1 ℕ-Monoid = ℕ-Semigroup pr1 (pr2 ℕ-Monoid) = 0 pr1 (pr2 (pr2 ℕ-Monoid)) = left-unit-law-add-ℕ pr2 (pr2 (pr2 ℕ-Monoid)) = right-unit-law-add-ℕ
The commutative monoid of natural numbers
ℕ-Commutative-Monoid : Commutative-Monoid lzero pr1 ℕ-Commutative-Monoid = ℕ-Monoid pr2 ℕ-Commutative-Monoid = commutative-add-ℕ