property-0.0.1: common properties
Test.Property.Function.Monotone
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) \)