<?xml version="1.0"?>
<div class="add">

<span class="kw">let </span><font color="Maroon" title="c1">a</font>, <font color="Maroon" title="c2">b</font>, <font color="Maroon" title="c3">c</font>, <font color="Maroon" title="c4">d</font> be   <a href="xxreal_0.html#V2" title="XXREAL_0:attr.2">positive</a>  <a href="xreal_0.html#NM1" title="XREAL_0:NM.1">Real</a>; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> ( <font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c2">b</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">c</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c4">d</font> implies (  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) iff  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) ) )</span><br/>

<span class="kw">assume </span><a NAME="E1:129"/><span class="lab"><font color="Green" title="E25">A1</font></span>: 
<font color="Maroon" title="c1">a</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c2">b</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">c</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c4">d</font>
 ; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> (  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) iff  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) )</span><br/>

<span class="kw">reconsider </span><font color="Maroon" title="c5">k</font> = <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span> as   <a href="xreal_0.html#NM1" title="XREAL_0:NM.1">Real</a> ;<br/>
<a NAME="E3:129"/><span class="lab"><font color="Green" title="E26">A2</font></span>: 
<font color="Maroon" title="c5">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:129"><span class="lab"><font color="Green" title="E25">A1</font></span></a>, <a class="ref" href="complex3.html#T38" target="_self" onmouseover="rs('complex3/T38')" onmouseout="rh()">SAD</a></span>;<br/>
<a NAME="E4:129"/><span class="lab"><font color="Green" title="E27">A3</font></span>: 
(  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) implies  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) )
 
<div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="129_1"><span class="kw">proof </span></a><div class="add">

<span class="kw">assume </span><a NAME="E1:129_1"/>
 <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)
 ; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide">  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span><br/>

<a NAME="E2:129_1"/><span class="kw">then </span>
<span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T9" onmouseover="rs('xreal_1/T9')" onmouseout="rh()">XREAL_1:9</a></span>;<br/>
<a NAME="E3:129_1"/><span class="kw">then </span>
<font color="Maroon" title="c5">k</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T6" onmouseover="rs('xreal_1/T6')" onmouseout="rh()">XREAL_1:6</a></span>;<br/>
<span class="kw">hence </span><a NAME="E4:129_1"/>
 <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:129"><span class="lab"><font color="Green" title="E26">A2</font></span></a></span>; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div><span class="kw">end;</span></div>
<a NAME="E5:129"/>
(  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a>  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) implies  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR2" title="XXREAL_0:NR.2">&gt;=</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) )
 
<div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="129_2"><span class="kw">proof </span></a><div class="add">

<span class="kw">assume </span><a NAME="E1:129_2"/>
 <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a>  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)
 ; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide">  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR2" title="XXREAL_0:NR.2">&gt;=</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span><br/>

<a NAME="E2:129_2"/><span class="kw">then </span>
<span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T9" onmouseover="rs('xreal_1/T9')" onmouseout="rh()">XREAL_1:9</a></span>;<br/>
<a NAME="E3:129_2"/><span class="kw">then </span>
<font color="Maroon" title="c5">k</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p1">(<span class="default"><a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>)</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T6" onmouseover="rs('xreal_1/T6')" onmouseout="rh()">XREAL_1:6</a></span>;<br/>
<span class="kw">hence </span><a NAME="E4:129_2"/>
 <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR2" title="XXREAL_0:NR.2">&gt;=</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>)
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:129"><span class="lab"><font color="Green" title="E26">A2</font></span></a></span>; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div><span class="kw">end;</span></div>
<span class="kw">hence </span><a NAME="E6:129"/>
(  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="xxreal_0.html#K4" title="XXREAL_0:func.4">max</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) iff  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c1">a</font>,<font color="Maroon" title="c2">b</font>) <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a>  <a href="xxreal_0.html#K3" title="XXREAL_0:func.3">min</a> (<font color="Maroon" title="c3">c</font>,<font color="Maroon" title="c4">d</font>) )
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:129"><span class="lab"><font color="Green" title="E27">A3</font></span></a></span>; <a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div>
