I'm trying to prove that if $~~(A,<_A)~~$ and $~~(B,<_B)~~$ are linearly ordered sets and $~~f: A \rightarrow B~~$ is non-monotonic function than there exist points $~~a,b,c\in A~~$ such that $~~ a <_A b <_A c~~$ and ($f(b)<_B\min\{f(a),f(c)\}~~$ or $~~\max\{f(a),f(c)\}<_Bf(b)$)
But unfortunately nothing better than brute-force enumeration of possibilities comes to my mind. So i'll be grateful for any tips or solutions for this question. Thanks in advance.
We can try by contradicition.
The negation of the statement to be proved is :
which is :
which is :
and this - it seems to me - contradicts non-monotonicity of $f$.