The monoid of natural numbers with addition
Content created by Egbert Rijke and Fredrik Bakke.
Created on 2023-04-08.
Last modified on 2023-10-22.
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.equality-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-ℕ
Recent changes
- 2023-10-22. Fredrik Bakke and Egbert Rijke. Peano arithmetic (#876).
- 2023-04-08. Egbert Rijke. Refactoring elementary number theory files (#546).