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

<span class="kw">let </span><font color="Maroon" title="c1">p</font> be   <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> ( <font color="Maroon" title="c1">p</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 2 &amp; <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 4 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 implies  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1 <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c1">p</font> )</span><br/>

<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:44"/><span class="lab"><font color="Green" title="E32">A1</font></span>: 
<font color="Maroon" title="c1">p</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 2
 <span class="kw">and </span><br/><a NAME="E2:44"/><span class="lab"><font color="Green" title="E33">A2</font></span>: 
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 4 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide">  <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1 <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c1">p</font></span><br/>

<a NAME="E3:44"/>
<font color="Maroon" title="c1">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="ref" href="int_2.html#D5" title="INT_2:def.5">INT_2:def 5</a></span>;<br/>
<a NAME="E4:44"/><span class="kw">then </span><span class="lab"><font color="Green" title="E34">A3</font></span>: 
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">p</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T235" title="XREAL_1:th.235">XREAL_1:235</a></span>;<br/>
<a NAME="E5:44"/>
<font color="Maroon" title="c1">p</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">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span> <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> 4</span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:44"><span class="lab"><font color="Green" title="E33">A2</font></span></a>, <a class="ref" href="nat_d.html#T2" title="NAT_D:th.2">NAT_D:2</a></span>;<br/>
<a NAME="E6:44"/><span class="kw">then </span>
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:44"><span class="lab"><font color="Green" title="E34">A3</font></span></a></span>;<br/>
<span class="kw">then </span><span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 2</span>)</span> = 
<span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span></span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T18" title="NAT_D:th.18">NAT_D:18</a></span>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> 2</span>)</span> <a href="newton.html#K2" title="NEWTON:func.2">|^</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="newton.html#T14" title="NEWTON:th.14">NEWTON:14</a></span>
<br/>.= 
<span class="p1">(<span class="default">1 <a href="newton.html#K15" title="NEWTON:func.15">|^</a> 2</span>)</span> <a href="newton.html#K15" title="NEWTON:func.15">|^</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="wsierp_1.html#T2" title="WSIERP_1:th.2">WSIERP_1:2</a></span>
<br/>.= 
<span class="p1">(<span class="default">1 <a href="pepin.html#K2" title="PEPIN:func.2">^2</a> </span>)</span> <a href="newton.html#K15" title="NEWTON:func.15">|^</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">p</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 4</span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="newton.html#T100" title="NEWTON:th.100">NEWTON:100</a></span>
<br/>.= 
1
<span class="kw">by</span> <span class="lab"><a class="ref" href="newton.html#T15" title="NEWTON:th.15">NEWTON:15</a></span>
;<br/>
<a NAME="E8:44"/><span class="kw">then </span>
 <a href="int_5.html#K2" title="INT_5:func.2">Lege</a> <span class="p1">(<span class="default"><a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1</span>)</span>,<font color="Maroon" title="c1">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:44"><span class="lab"><font color="Green" title="E32">A1</font></span></a>, <a class="ref" href="int_5.html#T36" target="_self" title="INT_5:th.36">Th36</a></span>;<br/>
<span class="kw">hence </span><a NAME="E9:44"/>
 <a href="xcmplx_0.html#K4" title="XCMPLX_0:func.4">-</a> 1 <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c1">p</font>
 <span class="kw">by</span> <span class="lab"><a class="ref" href="int_5.html#D3" target="_self" title="INT_5:def.3">Def3</a></span>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div>
