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

<b>let </b><font color="Maroon" title="c1">m</font>, <font color="Maroon" title="c2">k</font>, <font color="Maroon" title="c3">n</font> be   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</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="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a>  implies <span class="p1">(<span class="default"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <span class="p2">(<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="c3">n</font></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font> )</span><br/>





<b>assume </b><a NAME="E1:3"/><i><font color="Green" title="E4">A1</font></i>: 
<font color="Maroon" title="c1">m</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 ; <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"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <span class="p2">(<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="c3">n</font></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font></span><br/>

<div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="3_1"><b>per </b></a><a class="txt" onclick="hs(this)" href="javascript:()"><b>cases </b></a><span class="hide"><a NAME="E1:3_1"/>
( <font color="Maroon" title="c3">n</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a>  or <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a>  )
 </span>;<br/><div class="add"><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="3_1_1"><b>suppose </b></a><a NAME="E1:3_1_1"/><i><font color="Green" title="E5">A2</font></i>: 
<font color="Maroon" title="c3">n</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 ; <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"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <span class="p2">(<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="c3">n</font></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font></span><br/><div class="add"><b>reconsider </b><font color="Maroon" title="c4">k'</font> = <font color="Maroon" title="c2">k</font>, <font color="Maroon" title="c5">m'</font> = <font color="Maroon" title="c1">m</font>, <font color="Maroon" title="c6">n'</font> = <font color="Maroon" title="c3">n</font> as   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a> ;<br/><a NAME="E3:3_1_1"/>
<font color="Maroon" title="c5">m'</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c6">n'</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 <b>by </b><i><a class="txt" href="#E1:3"><i><font color="Green" title="E4">A1</font></i></a>, <a class="txt" href="#E1:3_1_1"><i><font color="Green" title="E5">A2</font></i></a>, <a class="ref" href="xcmplx_1.html#T6" title="XCMPLX_1:th.6">XCMPLX_1:6</a></i>;<br/><b>hence </b><span class="p1">(<span class="default"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <span class="p2">(<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="c3">n</font></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font> = 
<span class="p1">(<span class="default"><font color="Maroon" title="c4">k'</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c4">k'</font> <a href="int_1.html#K5" title="INT_1:func.5">div</a> <span class="p4">(<span class="default"><font color="Maroon" title="c5">m'</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c6">n'</font></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c5">m'</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c6">n'</font></span>)</span></span>)</span></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c6">n'</font>
<b>by </b><i><a class="ref" href="int_1.html#D8" title="INT_1:def.8">INT_1:def 8</a></i>
<br/>.= 
<span class="p1">(<span class="default"><font color="Maroon" title="c4">k'</font> <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="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> <span class="p4">(<span class="default"><font color="Maroon" title="c5">m'</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p5">(<span class="default"><font color="Maroon" title="c4">k'</font> <a href="int_1.html#K5" title="INT_1:func.5">div</a> <span class="p0">(<span class="default"><font color="Maroon" title="c5">m'</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c6">n'</font></span>)</span></span>)</span></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c6">n'</font></span>)</span></span>)</span> <a href="int_1.html#K6" title="INT_1:func.6">mod</a> <font color="Maroon" title="c6">n'</font>

<br/>.= 
<font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</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 class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> verum</span><br/></div><b>end;</b></div><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="3_1_2"><b>suppose </b></a><a NAME="E1:3_1_2"/><i><font color="Green" title="E5">A3</font></i>: 
<font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 ; <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"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <span class="p2">(<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="c3">n</font></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font></span><br/><div class="add"><b>hence </b><span class="p1">(<span class="default"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <span class="p2">(<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="c3">n</font></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font> = 
 <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
<b>by </b><i><a class="ref" href="nat_d.html#D2" title="NAT_D:def.2">NAT_D:def 2</a></i>
<br/>.= 
<font color="Maroon" title="c2">k</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c3">n</font>
<b>by </b><i><a class="txt" href="#E1:3_1_2"><i><font color="Green" title="E5">A3</font></i></a>, <a class="ref" href="nat_d.html#D2" title="NAT_D:def.2">NAT_D:def 2</a></i>
;<br/> <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> verum</span><br/></div><b>end;</b></div></div><b>end;</b></div>

</div>
