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

<span class="kw">let </span><font color="Maroon" title="c1">m</font>, <font color="Maroon" title="c2">n</font>, <font color="Maroon" title="c3">k</font> be   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> ( 1 <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c1">m</font> &amp; <span class="p1">(<span class="default"><font color="Maroon" title="c2">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> &amp; <font color="Maroon" title="c3">k</font>,<font color="Maroon" title="c1">m</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_relative_prime</a>  implies <font color="Maroon" title="c2">n</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 )</span><br/>





<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:17"/><span class="lab"><font color="Green" title="E12">A1</font></span>: 
1 <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c1">m</font>
 <span class="kw">and </span><br/><a NAME="E2:17"/><span class="lab"><font color="Green" title="E13">A2</font></span>: 
<span class="p1">(<span class="default"><font color="Maroon" title="c2">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font>
 <span class="kw">and </span><br/><a NAME="E3:17"/><span class="lab"><font color="Green" title="E14">A3</font></span>: 
<font color="Maroon" title="c3">k</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:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> <font color="Maroon" title="c2">n</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/>

<span class="kw">consider </span><font color="Maroon" title="c4">t2</font> being   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a><span class="kw"> such that </span><br/><a NAME="E5:17"/><span class="lab"><font color="Green" title="E15">A4</font></span>: 
<font color="Maroon" title="c3">k</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="c4">t2</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> <span class="p1">(<span class="default"><font color="Maroon" title="c3">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font></span>)</span>
 <span class="kw">and </span><br/><a NAME="E6:17"/>
<font color="Maroon" title="c3">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c1">m</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:17"><span class="lab"><font color="Green" title="E12">A1</font></span></a>, <a class="ref" href="nat_d.html#D2" title="NAT_D:def.2">NAT_D:def 2</a></span>;<br/>
<span class="kw">consider </span><font color="Maroon" title="c5">t1</font> being   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a><span class="kw"> such that </span><br/><a NAME="E8:17"/><span class="lab"><font color="Green" title="E16">A5</font></span>: 
<font color="Maroon" title="c2">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</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">t1</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font></span>)</span>
 <span class="kw">and </span><br/><a NAME="E9:17"/>
<span class="p1">(<span class="default"><font color="Maroon" title="c2">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c1">m</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:17"><span class="lab"><font color="Green" title="E12">A1</font></span></a>, <a class="ref" href="nat_d.html#D2" title="NAT_D:def.2">NAT_D:def 2</a></span>;<br/>
<a NAME="E10:17"/>
<span class="p1">(<span class="default"><font color="Maroon" title="c2">n</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default">1 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">m</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><font color="Maroon" title="c5">t1</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c4">t2</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:17"><span class="lab"><font color="Green" title="E13">A2</font></span></a>, <a class="txt" href="#E8:17"><span class="lab"><font color="Green" title="E16">A5</font></span></a>, <a class="txt" href="#E5:17"><span class="lab"><font color="Green" title="E15">A4</font></span></a></span>;<br/>
<a NAME="E11:17"/><span class="kw">then </span><span class="lab"><font color="Green" title="E17">A6</font></span>: 
<font color="Maroon" title="c1">m</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <font color="Maroon" title="c3">k</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">n</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="int_1.html#D3" title="INT_1:def.3">INT_1:def 3</a></span>;<br/>
<span class="kw">reconsider </span><font color="Maroon" title="c6">n</font> = <font color="Maroon" title="c2">n</font>, <font color="Maroon" title="c7">m</font> = <font color="Maroon" title="c1">m</font> as   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a> ;<br/>
<a NAME="E13:17"/>
<font color="Maroon" title="c7">m</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <font color="Maroon" title="c6">n</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:17"><span class="lab"><font color="Green" title="E14">A3</font></span></a>, <a class="txt" href="#E11:17"><span class="lab"><font color="Green" title="E17">A6</font></span></a>, <a class="ref" href="int_2.html#T25" title="INT_2:th.25">INT_2:25</a></span>;<br/>
<span class="kw">then </span><span class="kw">consider </span><font color="Maroon" title="c8">tt</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a><span class="kw"> such that </span><br/><a NAME="E15:17"/><span class="lab"><font color="Green" title="E18">A7</font></span>: 
<font color="Maroon" title="c6">n</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c7">m</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c8">tt</font>
 <span class="kw">by</span> <span class="lab"><a class="ref" href="int_1.html#D3" title="INT_1:def.3">INT_1:def 3</a></span>;<br/>
<a NAME="E16:17"/>
<font color="Maroon" title="c6">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c7">m</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c8">tt</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E15:17"><span class="lab"><font color="Green" title="E18">A7</font></span></a></span>;<br/>
<span class="kw">then </span><font color="Maroon" title="c6">n</font> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c7">m</font> = 
1 <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c7">m</font>
<span class="kw">by</span> <span class="lab"><a class="ref" href="euler_1.html#T12" title="EULER_1:th.12">EULER_1:12</a></span>
<br/>.= 
1
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:17"><span class="lab"><font color="Green" title="E12">A1</font></span></a>, <a class="ref" href="nat_d.html#T14" title="NAT_D:th.14">NAT_D:14</a></span>
;<br/>
<span class="kw">hence </span><a NAME="E18:17"/>
<font color="Maroon" title="c2">n</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div>
