<?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> be   <a href="int_1.html#V1" title="INT_1:attr.1">integer</a>   <a href="ordinal1.html#NM2" title="ORDINAL1:NM.2">number</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">  for <font color="Olive" title="b1">n</font> being   <a href="int_1.html#V1" title="INT_1:attr.1">integer</a>   <a href="xxreal_0.html#V2" title="XXREAL_0:attr.2">positive</a>   <a href="ordinal1.html#NM2" title="ORDINAL1:NM.2">number</a>  holds <br/> ( <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="Olive" title="b1">n</font> iff <font color="Maroon" title="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Olive" title="b1">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Olive" title="b1">n</font> )</span><br/><span class="kw">let </span><font color="Maroon" title="c3">n</font> be   <a href="int_1.html#V1" title="INT_1:attr.1">integer</a>   <a href="xxreal_0.html#V2" title="XXREAL_0:attr.2">positive</a>   <a href="ordinal1.html#NM2" title="ORDINAL1:NM.2">number</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="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> iff <font color="Maroon" title="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> )</span><br/>



<div><span class="lab"><font color="Green" title="E13">A1</font></span>: <a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="22_1"><span class="kw">now </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"> ( <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="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> )</span></a><div class="add"><span class="kw">assume </span><a NAME="E1:22_1"/>
<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>
 ; <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> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font></span><br/><span class="kw">then </span><span class="kw">consider </span><font color="Maroon" title="c4">k</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a><span class="kw"> such that </span><br/><a NAME="E3:22_1"/><span class="lab"><font color="Green" title="E14">A2</font></span>: 
<font color="Maroon" title="c1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c4">k</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">n</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="ref" href="nat_6.html#T9" target="_self" onmouseover="rs('nat_6/T9')" onmouseout="rh()">Th9</a></span>;<br/><span class="kw">thus </span><a NAME="E4:22_1"/>
<font color="Maroon" title="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:22_1"><span class="lab"><font color="Green" title="E14">A2</font></span></a>, <a class="ref" href="euler_1.html#T12" onmouseover="rs('euler_1/T12')" onmouseout="rh()">EULER_1:12</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><span class="kw">end;</span></div>
<div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="22_2"><span class="kw">now </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"> ( <font color="Maroon" title="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> implies <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></a><div class="add"><span class="kw">assume </span><a NAME="E1:22_2"/><span class="lab"><font color="Green" title="E14">A3</font></span>: 
<font color="Maroon" title="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font>
 ; <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="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><br/><a NAME="E2:22_2"/><span class="lab"><font color="Green" title="E15">A4</font></span>: 
<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</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">by</span> <span class="lab"><a class="ref" href="nat_6.html#T10" target="_self" onmouseover="rs('nat_6/T10')" onmouseout="rh()">Th10</a></span>;<br/><a NAME="E3:22_2"/>
<font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</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">by</span> <span class="lab"><a class="ref" href="nat_6.html#T10" target="_self" onmouseover="rs('nat_6/T10')" onmouseout="rh()">Th10</a>, <a class="ref" href="int_1.html#T14" onmouseover="rs('int_1/T14')" onmouseout="rh()">INT_1:14</a></span>;<br/><span class="kw">hence </span><a NAME="E4:22_2"/>
<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">by</span> <span class="lab"><a class="txt" href="#E1:22_2"><span class="lab"><font color="Green" title="E14">A3</font></span></a>, <a class="txt" href="#E2:22_2"><span class="lab"><font color="Green" title="E15">A4</font></span></a>, <a class="ref" href="int_1.html#T15" onmouseover="rs('int_1/T15')" onmouseout="rh()">INT_1:15</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><span class="kw">end;</span></div>
<span class="kw">hence </span><a NAME="E3:22"/>
( <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> iff <font color="Maroon" title="c1">x</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">y</font> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Maroon" title="c3">n</font> )
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:22"><span class="lab"><font color="Green" title="E13">A1</font></span></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>
