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

<span class="kw">let </span><font color="Maroon" title="c1">a</font> be   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</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">  for <font color="Olive" title="b1">k</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a><br/>  for <font color="Olive" title="b2">q</font> being   <a href="rat_1.html#NM1" title="RAT_1:NM.1">Rational</a>  st <font color="Olive" title="b2">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Olive" title="b1">k</font> <a href="xcmplx_0.html#K7" title="XCMPLX_0:func.7">/</a> <font color="Maroon" title="c1">a</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <font color="Olive" title="b1">k</font>,<font color="Maroon" title="c1">a</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  holds <br/>( <font color="Olive" title="b1">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K2" title="RAT_1:func.2">numerator</a> <font color="Olive" title="b2">q</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K1" title="RAT_1:func.1">denominator</a> <font color="Olive" title="b2">q</font> )</span><br/><span class="kw">let </span><font color="Maroon" title="c2">k</font> be   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</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">  for <font color="Olive" title="b1">q</font> being   <a href="rat_1.html#NM1" title="RAT_1:NM.1">Rational</a>  st <font color="Olive" title="b1">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">k</font> <a href="xcmplx_0.html#K7" title="XCMPLX_0:func.7">/</a> <font color="Maroon" title="c1">a</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <font color="Maroon" title="c2">k</font>,<font color="Maroon" title="c1">a</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  holds <br/>( <font color="Maroon" title="c2">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K2" title="RAT_1:func.2">numerator</a> <font color="Olive" title="b1">q</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K1" title="RAT_1:func.1">denominator</a> <font color="Olive" title="b1">q</font> )</span><br/><span class="kw">let </span><font color="Maroon" title="c3">q</font> be   <a href="rat_1.html#NM1" title="RAT_1:NM.1">Rational</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="c3">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">k</font> <a href="xcmplx_0.html#K7" title="XCMPLX_0:func.7">/</a> <font color="Maroon" title="c1">a</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <font color="Maroon" title="c2">k</font>,<font color="Maroon" title="c1">a</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  implies ( <font color="Maroon" title="c2">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K2" title="RAT_1:func.2">numerator</a> <font color="Maroon" title="c3">q</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K1" title="RAT_1:func.1">denominator</a> <font color="Maroon" title="c3">q</font> ) )</span><br/>





<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:44"/><span class="lab"><font color="Green" title="E33">A1</font></span>: 
( <font color="Maroon" title="c3">q</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">k</font> <a href="xcmplx_0.html#K7" title="XCMPLX_0:func.7">/</a> <font color="Maroon" title="c1">a</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  )
 <span class="kw">and </span><br/><a NAME="E2:44"/><span class="lab"><font color="Green" title="E34">A2</font></span>: 
<font color="Maroon" title="c2">k</font>,<font color="Maroon" title="c1">a</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</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="c2">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K2" title="RAT_1:func.2">numerator</a> <font color="Maroon" title="c3">q</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K1" title="RAT_1:func.1">denominator</a> <font color="Maroon" title="c3">q</font> )</span><br/>

<span class="kw">consider </span><font color="Maroon" title="c4">b</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a><span class="kw"> such that </span><br/><a NAME="E4:44"/><span class="lab"><font color="Green" title="E35">A3</font></span>: 
( <font color="Maroon" title="c2">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="rat_1.html#K2" title="RAT_1:func.2">numerator</a> <font color="Maroon" title="c3">q</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">b</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="rat_1.html#K1" title="RAT_1:func.1">denominator</a> <font color="Maroon" title="c3">q</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">b</font> )
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:44"><span class="lab"><font color="Green" title="E33">A1</font></span></a>, <a class="ref" href="rat_1.html#T27" onmouseover="rs('rat_1/T27')" onmouseout="rh()">RAT_1:27</a></span>;<br/>
<a NAME="E5:44"/>
 <a href="rat_1.html#K2" title="RAT_1:func.2">numerator</a> <font color="Maroon" title="c3">q</font>, <a href="rat_1.html#K1" title="RAT_1:func.1">denominator</a> <font color="Maroon" title="c3">q</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a> 
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="wsierp_1.html#T22" target="_self" onmouseover="rs('wsierp_1/T22')" onmouseout="rh()">Th22</a></span>;<br/>
<a NAME="E6:44"/><span class="kw">then </span>
<font color="Maroon" title="c2">k</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c1">a</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1"><a href="int_2.html#K1" title="INT_2:func.1">|.</a><span class="default"><font color="Maroon" title="c4">b</font></span><a href="int_2.html#K1" title="INT_2:func.1">.|</a></span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:44"><span class="lab"><font color="Green" title="E35">A3</font></span></a>, <a class="ref" href="int_2.html#T24" onmouseover="rs('int_2/T24')" onmouseout="rh()">INT_2:24</a></span>;<br/>
<span class="kw">then </span>1 = 
<span class="p1"><a href="int_2.html#K1" title="INT_2:func.1">|.</a><span class="default"><font color="Maroon" title="c4">b</font></span><a href="int_2.html#K1" title="INT_2:func.1">.|</a></span>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:44"><span class="lab"><font color="Green" title="E34">A2</font></span></a>, <a class="ref" href="int_2.html#D3" onmouseover="rs('int_2/D3')" onmouseout="rh()">INT_2:def 3</a></span>
<br/>.= 
<font color="Maroon" title="c4">b</font>
<span class="kw">by</span> <span class="lab"><a class="ref" href="absvalue.html#D1" onmouseover="rs('absvalue/D1')" onmouseout="rh()">ABSVALUE:def 1</a></span>
;<br/>
<span class="kw">hence </span><a NAME="E8:44"/>
( <font color="Maroon" title="c2">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K2" title="RAT_1:func.2">numerator</a> <font color="Maroon" title="c3">q</font> &amp; <font color="Maroon" title="c1">a</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="rat_1.html#K1" title="RAT_1:func.1">denominator</a> <font color="Maroon" title="c3">q</font> )
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:44"><span class="lab"><font color="Green" title="E35">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>
