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

<b>let </b><font color="Maroon" title="c1">m</font>, <font color="Maroon" title="c2">a</font>, <font color="Maroon" title="c3">b</font> be   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> ( <font color="Maroon" title="c1">m</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a>  &amp; <font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">m</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_relative_prime</a>  implies  ex <font color="Olive" title="b1">n</font> being  <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a> st <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b1">n</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a>  )</span><br/>





<b>assume </b><a NAME="E1:22"/><i><font color="Green" title="E22">A1</font></i>: 
( <font color="Maroon" title="c1">m</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a>  &amp; <font color="Maroon" title="c2">a</font>,<font color="Maroon" title="c1">m</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_relative_prime</a>  )
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide">  ex <font color="Olive" title="b1">n</font> being  <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a> st <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b1">n</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> </span><br/>

<b>then consider </b><font color="Maroon" title="c4">x</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a><b> such that </b><br/><a NAME="E3:22"/><i><font color="Green" title="E23">A2</font></i>: 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">x</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 <b>by </b><i><a class="ref" href="int_4.html#T15" target="_self" title="INT_4:th.15">Th15</a></i>;<br/>
<b>consider </b><font color="Maroon" title="c5">q</font>, <font color="Maroon" title="c6">n</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a><b> such that </b><br/><a NAME="E5:22"/><i><font color="Green" title="E24">A3</font></i>: 
( <font color="Maroon" title="c4">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">m</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c5">q</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c6">n</font> &amp; <font color="Maroon" title="c6">n</font> <a href="xxreal_0.html#NR2" title="XXREAL_0:NR.2">&gt;=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a>  &amp; <font color="Maroon" title="c6">n</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;</a> <font color="Maroon" title="c1">m</font> )
 <b>by </b><i><a class="txt" href="int_4.html#E1:22"><i><font color="Green" title="E22">A1</font></i></a>, <a class="ref" href="int_4.html#T13" target="_self" title="INT_4:th.13">Th13</a></i>;<br/>
<i><font color="Green" title="E25">A4</font></i>: <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c4">x</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font> = 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c5">q</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">m</font></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"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c6">n</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font>
<b>by </b><i><a class="txt" href="int_4.html#E5:22"><i><font color="Green" title="E24">A3</font></i></a></i>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c6">n</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font>
<b>by </b><i><a class="ref" href="euler_1.html#T13" title="EULER_1:th.13">EULER_1:13</a></i>
;<br/>
<a NAME="E7:22"/>
<font color="Maroon" title="c6">n</font> <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">NAT</a> 
 
<b>by </b><i><a class="txt" href="int_4.html#E5:22"><i><font color="Green" title="E24">A3</font></i></a>, <a class="ref" href="int_1.html#T16" title="INT_1:th.16">INT_1:16</a></i>;<br/>
<b>then reconsider </b><font color="Maroon" title="c7">n</font> = <font color="Maroon" title="c6">n</font> as   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a> <b>by </b><i><a class="ref" href="ordinal1.html#D13" title="ORDINAL1:def.13">ORDINAL1:def 13</a></i>;<br/>
<b>take </b>
<font color="Maroon" title="c7">n</font>
; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c7">n</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> </span><br/>

<b>thus </b><a NAME="E9:22"/>
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c7">n</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c3">b</font></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 <b>by </b><i><a class="txt" href="int_4.html#E3:22"><i><font color="Green" title="E23">A2</font></i></a>, <a class="txt" href="int_4.html#E6:22"><i><font color="Green" title="E25">A4</font></i></a></i>; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> verum</span><br/>


</div>
