A computer implemented method, apparatus, and computer usable program code
for detecting monotonicity. A determination is made as to whether a
function that is assumed to be monotonic will remain monotonic after
performing an operation in response to receiving the operation. The
operation is allowed to be performed in response to a determination that
the function will remain monotonic after performing the operation.