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

<b>let </b><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>;<br/>





<div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="31_1"><b>per </b></a><a class="txt" onclick="hs(this)" href="javascript:()"><b>cases </b></a><span class="hide"><a NAME="E1:31_1"/>
( <font color="Maroon" title="c2">n</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 0 or <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 0 )
 </span>;<br/><div class="add"><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="31_1_1"><b>suppose </b></a><a NAME="E1:31_1_1"/><i><font color="Green" title="E19">A1</font></i>: 
<font color="Maroon" title="c2">n</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 0
 ;<br/><div class="add"><a NAME="E2:31_1_1"/>
for <font color="Olive" title="b1">t</font> being  <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>  st <font color="Maroon" title="c1">m</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Olive" title="b1">t</font> holds <br/><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="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c1">m</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Olive" title="b1">t</font>
 <div><a class="txt" onclick="hs2(this)" href="javascript:()" title="31_1_1_1"><b>proof </b></a><div class="add">

<b>let </b><font color="Maroon" title="c4">t</font> be   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>;<br/>

<b>assume </b><a NAME="E1:31_1_1_1"/>
<font color="Maroon" title="c1">m</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c4">t</font>
 ;<br/>

<b>then consider </b><font color="Maroon" title="c5">q</font> being   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a><b> such that </b><br/><a NAME="E3:31_1_1_1"/><i><font color="Green" title="E20">A2</font></i>: 
( <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <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="c5">q</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c4">t</font> &amp; <font color="Maroon" title="c4">t</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c2">n</font> )
 <b>by </b><i><a class="txt" href="nat_d.html#E1:31_1_1"><i><font color="Green" title="E19">A1</font></i></a>, <a class="ref" href="nat_d.html#D2" target="_self" title="NAT_D:def.2">Def2</a></i>;<br/>
<a NAME="E4:31_1_1_1"/>
 ex <font color="Olive" title="b1">p</font> being  <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a> st <br/>( <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#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <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="Olive" title="b1">p</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c4">t</font> &amp; <font color="Maroon" title="c4">t</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c2">n</font> )
 
<div><a class="txt" onclick="hs2(this)" href="javascript:()" title="31_1_1_1_1"><b>proof </b></a><div class="add">

<b>reconsider </b><font color="Maroon" title="c6">p</font> = <font color="Maroon" title="c3">k</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c5">q</font> as    <a href="subset_1.html#M2" title="SUBSET_1:mode.2">Element</a> of  <a href="numbers.html#K5" title="NUMBERS:func.5">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="c6">p</font>
;<br/>

<b>thus </b><a NAME="E2:31_1_1_1_1"/>
( <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#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c1">m</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <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="c6">p</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c4">t</font> &amp; <font color="Maroon" title="c4">t</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <font color="Maroon" title="c2">n</font> )
 <b>by </b><i><a class="txt" href="nat_d.html#E3:31_1_1_1"><i><font color="Green" title="E20">A2</font></i></a></i>;<br/>


</div><b>end;</b></div>
<b>hence </b><a NAME="E5:31_1_1_1"/>
<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="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c1">m</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c4">t</font>
 <b>by </b><i><a class="ref" href="nat_d.html#D2" target="_self" title="NAT_D:def.2">Def2</a></i>;<br/>


</div><b>end;</b></div><b>hence </b><a NAME="E3:31_1_1"/>
<font color="Maroon" title="c1">m</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.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="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c1">m</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font>
 ;<br/></div><b>end;</b></div><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="31_1_2"><b>suppose </b></a><a NAME="E1:31_1_2"/>
<font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 0
 ;<br/><div class="add"><b>hence </b><a NAME="E2:31_1_2"/>
<font color="Maroon" title="c1">m</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.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="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <font color="Maroon" title="c1">m</font></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font>
 ;<br/></div><b>end;</b></div></div><b>end;</b></div>

</div>
