Disclaimer: I'm not a mathematician. I'm a developer (with physics degree).
By trial and error I've found that: $$-\min(a,b)=\max(-a,-b)$$ $$-\max(a,b)=\min(-a,-b)$$
- Is it true?
- Is there a proof of it so I can read it? (Ideally explained so simple as other max/min properties in EWD1240a by Edsger Wybe Dijkstra)
Thank you
The easiest way to prove your equality is to split the two possible cases. In both cases, we will use the fact that multiplying an inequality by $-1$ reverses the direction of the inequality, i.e. if $x<y$, then $-x>-y$.
In both cases, $-\min(a,b)=\max(-a,-b)$, so the equality holds in general.