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

<span class="kw">let </span><font color="Maroon" title="c1">i</font>, <font color="Maroon" title="c2">p</font> be   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</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="c2">p</font> is  <a href="int_2.html#V1" title="INT_2:attr.1">prime</a>  &amp; <font color="Maroon" title="c1">i</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1 implies <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</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:23"/><span class="lab"><font color="Green" title="E16">A1</font></span>: 
<font color="Maroon" title="c2">p</font> is  <a href="int_2.html#V1" title="INT_2:attr.1">prime</a> 
 <span class="kw">and </span><br/><a NAME="E2:23"/><span class="lab"><font color="Green" title="E17">A2</font></span>: 
<font color="Maroon" title="c1">i</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1
 ; <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"> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/>

<a NAME="E3:23"/><span class="lab"><font color="Green" title="E18">A3</font></span>: 
<font color="Maroon" title="c2">p</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:23"><span class="lab"><font color="Green" title="E16">A1</font></span></a>, <a class="ref" href="int_2.html#D4" onmouseover="rs('int_2/D4')" onmouseout="rh()">INT_2:def 4</a></span>;<br/>
<a NAME="E4:23"/>
<font color="Maroon" title="c2">p</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:23"><span class="lab"><font color="Green" title="E16">A1</font></span></a>, <a class="ref" href="int_2.html#D4" onmouseover="rs('int_2/D4')" onmouseout="rh()">INT_2:def 4</a></span>;<br/>
<a NAME="E5:23"/><span class="kw">then </span>
<font color="Maroon" title="c1">i</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">i</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> <font color="Maroon" title="c2">p</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">p</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="int_1.html#D10" onmouseover="rs('int_1/D10')" onmouseout="rh()">INT_1:def 10</a></span>;<br/>
<a NAME="E6:23"/><span class="kw">then </span>
<font color="Maroon" title="c1">i</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="c1">i</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> <font color="Maroon" title="c2">p</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">p</font></span>)</span> <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="#E2:23"><span class="lab"><font color="Green" title="E17">A2</font></span></a></span>;<br/>
<a NAME="E7:23"/><span class="kw">then </span>
<font color="Maroon" title="c1">i</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a>  <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default"><span class="p5">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> <font color="Maroon" title="c2">p</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">p</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 2</span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> <font color="Maroon" title="c2">p</font></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c2">p</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1
 
;<br/>
<span class="kw">then </span><span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font> = 
1 <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font>
<span class="kw">by</span> <span class="lab"><a class="ref" href="pepin.html#T10" target="_self" onmouseover="rs('pepin/T10')" onmouseout="rh()">Th10</a></span>
<br/>.= 
1
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:23"><span class="lab"><font color="Green" title="E18">A3</font></span></a>, <a class="ref" href="nat_d.html#T24" onmouseover="rs('nat_d/T24')" onmouseout="rh()">NAT_D:24</a></span>
;<br/>
<span class="kw">hence </span><a NAME="E9:23"/>
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="square_1.html#K1" title="SQUARE_1:func.1">^2</a></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 ; <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>
