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

<span class="kw">let </span><font color="Maroon" title="c1">x</font>, <font color="Maroon" title="c2">y</font> be    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <span class="p1"><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">[:</a><span class="default"><a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a>,<a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a></span><a href="zfmisc_1.html#K2" title="ZFMISC_1:func.2">:]</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"> ( <a href="metric_3.html#K18" title="METRIC_3:func.18">Eukl_dist2</a> <a href="binop_1.html#K2" title="BINOP_1:func.2">.</a> (<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  iff <font color="Maroon" title="c1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> )</span><br/>

<span class="kw">reconsider </span><font color="Maroon" title="c3">x1</font> = <font color="Maroon" title="c1">x</font> <a href="domain_1.html#K2" title="DOMAIN_1:func.2">`1</a> , <font color="Maroon" title="c4">x2</font> = <font color="Maroon" title="c1">x</font> <a href="domain_1.html#K3" title="DOMAIN_1:func.3">`2</a> , <font color="Maroon" title="c5">y1</font> = <font color="Maroon" title="c2">y</font> <a href="domain_1.html#K2" title="DOMAIN_1:func.2">`1</a> , <font color="Maroon" title="c6">y2</font> = <font color="Maroon" title="c2">y</font> <a href="domain_1.html#K3" title="DOMAIN_1:func.3">`2</a>  as    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#K1" title="NUMBERS:func.1">REAL</a>  ;<br/>
<a NAME="E2:45"/><span class="lab"><font color="Green" title="E32">A1</font></span>: 
( <font color="Maroon" title="c1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="domain_1.html#K1" title="DOMAIN_1:func.1">[</a><span class="default"><font color="Maroon" title="c3">x1</font>,<font color="Maroon" title="c4">x2</font></span><a href="domain_1.html#K1" title="DOMAIN_1:func.1">]</a></span> &amp; <font color="Maroon" title="c2">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="domain_1.html#K1" title="DOMAIN_1:func.1">[</a><span class="default"><font color="Maroon" title="c5">y1</font>,<font color="Maroon" title="c6">y2</font></span><a href="domain_1.html#K1" title="DOMAIN_1:func.1">]</a></span> )
 
;<br/>
<span class="kw">thus </span><a NAME="E3:45"/>
( <a href="metric_3.html#K18" title="METRIC_3:func.18">Eukl_dist2</a> <a href="binop_1.html#K2" title="BINOP_1:func.2">.</a> (<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  implies <font color="Maroon" title="c1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</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"> ( <font color="Maroon" title="c1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> implies <a href="metric_3.html#K18" title="METRIC_3:func.18">Eukl_dist2</a> <a href="binop_1.html#K2" title="BINOP_1:func.2">.</a> (<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  )</span><div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="45_1"><span class="kw">proof </span></a><div class="add">

<span class="kw">set </span><font color="Maroon" title="c7">d2</font> = <a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c4">x2</font>,<font color="Maroon" title="c6">y2</font>);<br/>
<span class="kw">set </span><font color="Maroon" title="c8">d1</font> = <a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c3">x1</font>,<font color="Maroon" title="c5">y1</font>);<br/>
<span class="kw">assume </span><a NAME="E1:45_1"/>
<a href="metric_3.html#K18" title="METRIC_3:func.18">Eukl_dist2</a> <a href="binop_1.html#K2" title="BINOP_1:func.2">.</a> (<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</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">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font></span><br/>

<a NAME="E2:45_1"/><span class="kw">then </span><span class="lab"><font color="Green" title="E33">A2</font></span>: 
 <a href="square_1.html#K3" title="SQUARE_1:func.3">sqrt</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c3">x1</font>,<font color="Maroon" title="c5">y1</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c4">x2</font>,<font color="Maroon" title="c6">y2</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:45"><span class="lab"><font color="Green" title="E32">A1</font></span></a>, <a class="ref" href="metric_3.html#D18" target="_self" onmouseover="rs('metric_3/D18')" onmouseout="rh()">Def18</a></span>;<br/>
<a NAME="E3:45_1"/><span class="lab"><font color="Green" title="E34">A3</font></span>: 
(  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <span class="p1">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c3">x1</font>,<font color="Maroon" title="c5">y1</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a>  &amp;  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <span class="p1">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c4">x2</font>,<font color="Maroon" title="c6">y2</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a>  )
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T63" onmouseover="rs('xreal_1/T63')" onmouseout="rh()">XREAL_1:63</a></span>;<br/>
<a NAME="E4:45_1"/><span class="kw">then </span>
<a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c3">x1</font>,<font color="Maroon" title="c5">y1</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:45_1"><span class="lab"><font color="Green" title="E33">A2</font></span></a>, <a class="txt" href="metric_3.html#E20"><span class="lab"><font color="Green" title="E14">Lm1</font></span></a></span>;<br/>
<a NAME="E5:45_1"/><span class="kw">then </span><span class="lab"><font color="Green" title="E35">A4</font></span>: 
<font color="Maroon" title="c3">x1</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c5">y1</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="metric_1.html#T8" onmouseover="rs('metric_1/T8')" onmouseout="rh()">METRIC_1:8</a></span>;<br/>
<a NAME="E6:45_1"/>
<a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c4">x2</font>,<font color="Maroon" title="c6">y2</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:45_1"><span class="lab"><font color="Green" title="E33">A2</font></span></a>, <a class="txt" href="#E3:45_1"><span class="lab"><font color="Green" title="E34">A3</font></span></a>, <a class="txt" href="metric_3.html#E20"><span class="lab"><font color="Green" title="E14">Lm1</font></span></a></span>;<br/>
<span class="kw">hence </span><a NAME="E7:45_1"/>
<font color="Maroon" title="c1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:45"><span class="lab"><font color="Green" title="E32">A1</font></span></a>, <a class="txt" href="#E5:45_1"><span class="lab"><font color="Green" title="E35">A4</font></span></a>, <a class="ref" href="metric_1.html#T8" onmouseover="rs('metric_1/T8')" onmouseout="rh()">METRIC_1:8</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">assume </span><a NAME="E4:45"/>
<font color="Maroon" title="c1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</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="metric_3.html#K18" title="METRIC_3:func.18">Eukl_dist2</a> <a href="binop_1.html#K2" title="BINOP_1:func.2">.</a> (<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> </span><br/>

<a NAME="E5:45"/><span class="kw">then </span><span class="lab"><font color="Green" title="E33">A5</font></span>: 
( <span class="p1">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c3">x1</font>,<font color="Maroon" title="c5">y1</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a>  <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a>  &amp; <span class="p1">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c4">x2</font>,<font color="Maroon" title="c6">y2</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a>  <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a>  )
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="metric_1.html#T8" onmouseover="rs('metric_1/T8')" onmouseout="rh()">METRIC_1:8</a></span>;<br/>
<a href="metric_3.html#K18" title="METRIC_3:func.18">Eukl_dist2</a> <a href="binop_1.html#K2" title="BINOP_1:func.2">.</a> (<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) = 
 <a href="square_1.html#K3" title="SQUARE_1:func.3">sqrt</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c3">x1</font>,<font color="Maroon" title="c5">y1</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="metric_1.html#K6" title="METRIC_1:func.6">real_dist</a> <a href="binop_1.html#K4" title="BINOP_1:func.4">.</a> (<font color="Maroon" title="c4">x2</font>,<font color="Maroon" title="c6">y2</font>)</span>)</span> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span></span>)</span>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:45"><span class="lab"><font color="Green" title="E32">A1</font></span></a>, <a class="ref" href="metric_3.html#D18" target="_self" onmouseover="rs('metric_3/D18')" onmouseout="rh()">Def18</a></span>
<br/>.= 
 <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E5:45"><span class="lab"><font color="Green" title="E33">A5</font></span></a>, <a class="txt" href="metric_3.html#E20"><span class="lab"><font color="Green" title="E14">Lm1</font></span></a></span>
;<br/>
<span class="kw">hence </span><a NAME="E7:45"/>
<a href="metric_3.html#K18" title="METRIC_3:func.18">Eukl_dist2</a> <a href="binop_1.html#K2" title="BINOP_1:func.2">.</a> (<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</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"> verum</span><br/>


</div>
