Idris2/libs/contrib/Data/Nat/Algebra.idr

16 lines
291 B
Idris
Raw Normal View History

2020-07-14 01:52:22 +03:00
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