<?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>, <font color="Maroon" title="c3">n</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"> ( <font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c3">n</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  &amp; <font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font> <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <font color="Maroon" title="c3">n</font> implies <font color="Maroon" title="c2">y</font>,<font color="Maroon" title="c3">n</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  )</span><br/>

<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:38"/><span class="lab"><font color="Green" title="E22">A1</font></span>: 
<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c3">n</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a> 
 <span class="kw">and </span><br/><a NAME="E2:38"/><span class="lab"><font color="Green" title="E23">A2</font></span>: 
<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font> <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <font color="Maroon" title="c3">n</font>
 <span class="kw">and </span><br/><a NAME="E3:38"/><span class="lab"><font color="Green" title="E24">A3</font></span>: 
 not <font color="Maroon" title="c2">y</font>,<font color="Maroon" title="c3">n</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"> contradiction</span><br/>

<span class="kw">consider </span><font color="Maroon" title="c4">z</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a><span class="kw"> such that </span><br/><a NAME="E5:38"/><span class="lab"><font color="Green" title="E25">A4</font></span>: 
<font color="Maroon" title="c3">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">z</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">x</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c2">y</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:38"><span class="lab"><font color="Green" title="E23">A2</font></span></a>, <a class="ref" href="int_1.html#D5" onmouseover="rs('int_1/D5')" onmouseout="rh()">INT_1:def 5</a></span>;<br/>
<span class="kw">set </span><font color="Maroon" title="c5">gcdyn</font> = <font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font>;<br/>
<a NAME="E6:38"/><span class="lab"><font color="Green" title="E26">A5</font></span>: 
<font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <font color="Maroon" title="c2">y</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="int_2.html#T21" onmouseover="rs('int_2/T21')" onmouseout="rh()">INT_2:21</a></span>;<br/>
<a NAME="E7:38"/><span class="lab"><font color="Green" title="E27">A6</font></span>: 
<font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <font color="Maroon" title="c3">n</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="int_2.html#T21" onmouseover="rs('int_2/T21')" onmouseout="rh()">INT_2:21</a></span>;<br/>
<a NAME="E8:38"/>
<font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <font color="Maroon" title="c3">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">z</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="int_2.html#T2" onmouseover="rs('int_2/T2')" onmouseout="rh()">INT_2:2</a>, <a class="ref" href="int_2.html#T21" onmouseover="rs('int_2/T21')" onmouseout="rh()">INT_2:21</a></span>;<br/>
<a NAME="E9:38"/><span class="kw">then </span>
<font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <span class="p1">(<span class="default"><font color="Maroon" title="c3">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">z</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c2">y</font>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E6:38"><span class="lab"><font color="Green" title="E26">A5</font></span></a>, <a class="ref" href="wsierp_1.html#T4" onmouseover="rs('wsierp_1/T4')" onmouseout="rh()">WSIERP_1:4</a></span>;<br/>
<a NAME="E10:38"/><span class="kw">then </span>
<font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a> <font color="Maroon" title="c1">x</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E5:38"><span class="lab"><font color="Green" title="E25">A4</font></span></a>, <a class="txt" href="#E7:38"><span class="lab"><font color="Green" title="E27">A6</font></span></a>, <a class="ref" href="int_2.html#T22" onmouseover="rs('int_2/T22')" onmouseout="rh()">INT_2:22</a></span>;<br/>
<a NAME="E11:38"/><span class="kw">then </span>
<font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:38"><span class="lab"><font color="Green" title="E22">A1</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/>
<a NAME="E12:38"/><span class="kw">then </span><span class="lab"><font color="Green" title="E28">A7</font></span>: 
( <font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 or <font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1 )
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="int_2.html#T13" onmouseover="rs('int_2/T13')" onmouseout="rh()">INT_2:13</a></span>;<br/>
<a NAME="E13:38"/>
 <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c2">y</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Maroon" title="c3">n</font>
 
;<br/>
<span class="kw">hence </span><a NAME="E14:38"/>
contradiction
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:38"><span class="lab"><font color="Green" title="E24">A3</font></span></a>, <a class="txt" href="#E12:38"><span class="lab"><font color="Green" title="E28">A7</font></span></a>, <a class="ref" href="int_2.html#D3" onmouseover="rs('int_2/D3')" onmouseout="rh()">INT_2:def 3</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>
