lawz-0.0.1: Common mathematical laws.

Safe HaskellSafe
LanguageHaskell2010

Test.Operation.Associative

Synopsis

Documentation

associative :: Eq r => (r -> r -> r) -> r -> r -> r -> Bool Source #

\( \forall a, b, c: (a \# b) \# c \equiv a \# (b \# c) \)

associative_on :: Rel r -> (r -> r -> r) -> r -> r -> r -> Bool Source #

\( \forall a, b, c: (a \# b) \# c \doteq a \# (b \# c) \)