Idris2/libs/contrib/Data/Nat/Algebra.idr
2020-07-17 08:25:20 -05:00

16 lines
291 B
Idris

module Data.Nat.Algebra
import Control.Algebra
import Data.Nat
%default total
public export
SemigroupV Nat where
semigroupOpIsAssociative = plusAssociative
public export
MonoidV Nat where
monoidNeutralIsNeutralL = plusZeroRightNeutral
monoidNeutralIsNeutralR = plusZeroLeftNeutral