property-0.0.1: common properties

Safe HaskellSafe
LanguageHaskell2010

Test.Property.Function.Monotone

Synopsis

Documentation

monotone :: Ord r => (r -> r) -> r -> r -> Bool Source #

monotone_on :: Rel r -> Rel s -> (r -> s) -> r -> r -> Bool Source #

\( \forall a, b: a \leq b \Rightarrow f(a) \leq f(b) \)

antitone :: Ord r => (r -> r) -> r -> r -> Bool Source #

antitone_on :: Rel r -> Rel s -> (r -> s) -> r -> r -> Bool Source #

\( \forall a, b: a \leq b \Rightarrow f(b) \leq f(a) \)