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

<span class="kw">let </span><font color="Maroon" title="c1">i</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">  for <font color="Olive" title="b1">p</font> being   <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a>  st <font color="Olive" title="b1">p</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 2 &amp; <font color="Maroon" title="c1">i</font>,<font color="Olive" title="b1">p</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  &amp; <font color="Maroon" title="c1">i</font> <a href="int_8.html#R2" title="INT_8:pred.2">is_primitive_root_of</a> <font color="Olive" title="b1">p</font> holds <br/> for <font color="Olive" title="b2">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a>  holds  not <font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b2">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Olive" title="b1">p</font></span><br/><span class="kw">let </span><font color="Maroon" title="c2">p</font> be   <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</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> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 2 &amp; <font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">p</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  &amp; <font color="Maroon" title="c1">i</font> <a href="int_8.html#R2" title="INT_8:pred.2">is_primitive_root_of</a> <font color="Maroon" title="c2">p</font> implies  for <font color="Olive" title="b1">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a>  holds  not <font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b1">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c2">p</font> )</span><br/>



<span class="kw">assume </span><a NAME="E1:35"/><span class="lab"><font color="Green" title="E19">A1</font></span>: 
( <font color="Maroon" title="c2">p</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 2 &amp; <font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">p</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  &amp; <font color="Maroon" title="c1">i</font> <a href="int_8.html#R2" title="INT_8:pred.2">is_primitive_root_of</a> <font color="Maroon" title="c2">p</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">  for <font color="Olive" title="b1">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a>  holds  not <font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b1">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c2">p</font></span><br/>

<span class="lab"><font color="Green" title="E20">A2</font></span>:  <a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">p</font>) = 
 <a href="euler_1.html#K1" title="EULER_1:func.1">Euler</a> <font color="Maroon" title="c2">p</font>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:35"><span class="lab"><font color="Green" title="E19">A1</font></span></a></span>
<br/>.= 
<font color="Maroon" title="c2">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="euler_1.html#T20" onmouseover="rs('euler_1/T20')" onmouseout="rh()">EULER_1:20</a></span>
;<br/>
<a NAME="E3:35"/><span class="lab"><font color="Green" title="E21">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="ref" href="int_2.html#D4" onmouseover="rs('int_2/D4')" onmouseout="rh()">INT_2:def 4</a></span>;<br/>
<span class="kw">then </span><span class="lab"><font color="Green" title="E22">A4</font></span>: <span class="p1">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 = 
<span class="p1">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T38" onmouseover="rs('nat_d/T38')" onmouseout="rh()">NAT_D:38</a></span>
<br/>.= 
<span class="p1">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</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="ref" href="nat_d.html#T37" onmouseover="rs('nat_d/T37')" onmouseout="rh()">NAT_D:37</a></span>
<br/>.= 
<span class="p1">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1</span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1

;<br/>
<div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="35_3"><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">  for <font color="Olive" title="b1">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a>  holds  not <font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b1">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c2">p</font></span></a><div class="add"><span class="kw">assume </span><a NAME="E1:35_3"/>
 ex <font color="Olive" title="b1">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a> st <font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b1">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c2">p</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"> contradiction</span><br/><span class="kw">then </span><span class="kw">consider </span><font color="Maroon" title="c3">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a><span class="kw"> such that </span><br/><a NAME="E3:35_3"/><span class="lab"><font color="Green" title="E23">A5</font></span>: 
<font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c2">p</font>
 ;<br/><span class="kw">set </span><font color="Maroon" title="c4">L</font> = <span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1;<br/><span class="kw">set </span><font color="Maroon" title="c5">Q</font> = <font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1;<br/><a NAME="E4:35_3"/>
<font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span>,<font color="Maroon" title="c2">p</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a> 
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:35"><span class="lab"><font color="Green" title="E19">A1</font></span></a>, <a class="ref" href="wsierp_1.html#T10" onmouseover="rs('wsierp_1/T10')" onmouseout="rh()">WSIERP_1:10</a></span>;<br/><a NAME="E5:35_3"/><span class="kw">then </span>
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span></span>)</span> <a href="nat_d.html#K6" title="NAT_D:func.6">gcd</a> <font color="Maroon" title="c2">p</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 <span class="kw">by</span> <span class="lab"><a class="ref" href="int_2.html#D3" onmouseover="rs('int_2/D3')" onmouseout="rh()">INT_2:def 3</a></span>;<br/><span class="kw">then </span>1 = 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">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>)</span> <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="txt" href="#E1:35"><span class="lab"><font color="Green" title="E19">A1</font></span></a>, <a class="txt" href="#E3:35_3"><span class="lab"><font color="Green" title="E23">A5</font></span></a>, <a class="ref" href="int_5.html#T17" onmouseover="rs('int_5/T17')" onmouseout="rh()">INT_5:17</a></span>
<br/>.= 
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c3">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">*</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default"><font color="Maroon" title="c2">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>)</span></span>)</span> <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="newton.html#T9" onmouseover="rs('newton/T9')" onmouseout="rh()">NEWTON:9</a></span>
<br/>.= 
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><span class="p4">(<span class="default">2 <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#K3" title="XCMPLX_0:func.3">*</a> <span class="p4">(<span class="default"><span class="p5">(<span class="default"><font color="Maroon" title="c2">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>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> <span class="p3">(<span class="default">1 <a href="nat_1.html#K2" title="NAT_1:func.2">*</a> <span class="p4">(<span class="default"><span class="p5">(<span class="default"><font color="Maroon" title="c2">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>)</span></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">p</font>

<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default">2 <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#K3" title="XCMPLX_0:func.3">*</a> <span class="p4">(<span class="default"><span class="p5">(<span class="default"><font color="Maroon" title="c2">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>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default"><font color="Maroon" title="c2">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>)</span></span>)</span> <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="newton.html#T8" onmouseover="rs('newton/T8')" onmouseout="rh()">NEWTON:8</a></span>
;<br/><a NAME="E7:35_3"/><span class="kw">then </span><span class="lab"><font color="Green" title="E24">A6</font></span>: 
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default">2 <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#K3" title="XCMPLX_0:func.3">*</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default"><font color="Maroon" title="c2">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>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">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>)</span>,1 <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <font color="Maroon" title="c2">p</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:35"><span class="lab"><font color="Green" title="E21">A3</font></span></a>, <a class="ref" href="pepin.html#T39" onmouseover="rs('pepin/T39')" onmouseout="rh()">PEPIN:39</a></span>;<br/><a NAME="E8:35_3"/>
<font color="Maroon" title="c2">p</font> is  <a href="abian.html#NV2" title="ABIAN:NV.2">odd</a> 
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:35"><span class="lab"><font color="Green" title="E19">A1</font></span></a>, <a class="ref" href="pepin.html#T17" onmouseover="rs('pepin/T17')" onmouseout="rh()">PEPIN:17</a></span>;<br/><a NAME="E9:35_3"/><span class="kw">then </span>
2 <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a> <font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1
 <span class="kw">by</span> <span class="lab"><a class="ref" href="pepin.html#T22" onmouseover="rs('pepin/T22')" onmouseout="rh()">PEPIN:22</a>, <a class="txt" href="#E4:35"><span class="lab"><font color="Green" title="E22">A4</font></span></a></span>;<br/><a NAME="E10:35_3"/><span class="kw">then </span><span class="lab"><font color="Green" title="E25">A7</font></span>: 
<font color="Maroon" title="c2">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#K2" title="NAT_1:func.2">*</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">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="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T3" onmouseover="rs('nat_d/T3')" onmouseout="rh()">NAT_D:3</a></span>;<br/><a NAME="E11:35_3"/>
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></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 class="kw">by</span> <span class="lab"><a class="txt" href="#E1:35"><span class="lab"><font color="Green" title="E19">A1</font></span></a>, <a class="ref" href="pepin.html#T37" onmouseover="rs('pepin/T37')" onmouseout="rh()">PEPIN:37</a></span>;<br/><a NAME="E12:35_3"/><span class="kw">then </span>
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <font color="Maroon" title="c3">k</font></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 class="kw">by</span> <span class="lab"><a class="txt" href="#E3:35"><span class="lab"><font color="Green" title="E21">A3</font></span></a>, <a class="ref" href="pepin.html#T35" onmouseover="rs('pepin/T35')" onmouseout="rh()">PEPIN:35</a></span>;<br/><a NAME="E13:35_3"/><span class="kw">then </span>
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <font color="Maroon" title="c3">k</font>,1 <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <font color="Maroon" title="c2">p</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:35"><span class="lab"><font color="Green" title="E21">A3</font></span></a>, <a class="ref" href="pepin.html#T39" onmouseover="rs('pepin/T39')" onmouseout="rh()">PEPIN:39</a></span>;<br/><a NAME="E14:35_3"/><span class="kw">then </span>
<font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><font color="Maroon" title="c3">k</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p2">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span>,1 <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <font color="Maroon" title="c2">p</font>
 <span class="kw">by</span> <span class="lab"><a class="ref" href="newton.html#T9" onmouseover="rs('newton/T9')" onmouseout="rh()">NEWTON:9</a></span>;<br/><a NAME="E15:35_3"/><span class="kw">then </span>
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c3">k</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">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>)</span>,1 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">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>)</span> <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <font color="Maroon" title="c2">p</font>
 <span class="kw">by</span> <span class="lab"><a class="ref" href="int_4.html#T11" onmouseover="rs('int_4/T11')" onmouseout="rh()">INT_4:11</a></span>;<br/><a NAME="E16:35_3"/><span class="kw">then </span>
<font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">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>,1 <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <font color="Maroon" title="c2">p</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E7:35_3"><span class="lab"><font color="Green" title="E24">A6</font></span></a>, <a class="txt" href="#E10:35_3"><span class="lab"><font color="Green" title="E25">A7</font></span></a>, <a class="ref" href="pepin.html#T40" onmouseover="rs('pepin/T40')" onmouseout="rh()">PEPIN:40</a></span>;<br/><a NAME="E17:35_3"/><span class="kw">then </span><span class="lab"><font color="Green" title="E26">A8</font></span>: 
<span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c2">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>)</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 class="kw">by</span> <span class="lab"><a class="txt" href="#E3:35"><span class="lab"><font color="Green" title="E21">A3</font></span></a>, <a class="ref" href="pepin.html#T39" onmouseover="rs('pepin/T39')" onmouseout="rh()">PEPIN:39</a></span>;<br/><a NAME="E18:35_3"/>
<font color="Maroon" title="c2">p</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1 <a href="xxreal_0.html#NR2" title="XXREAL_0:NR.2">&gt;=</a> 2
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:35"><span class="lab"><font color="Green" title="E19">A1</font></span></a>, <a class="ref" href="int_1.html#T52" onmouseover="rs('int_1/T52')" onmouseout="rh()">INT_1:52</a></span>;<br/><a NAME="E19:35_3"/><span class="kw">then </span><span class="lab"><font color="Green" title="E27">A9</font></span>: 
<span class="p1">(<span class="default"><font color="Maroon" title="c2">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 <a href="xxreal_0.html#NR2" title="XXREAL_0:NR.2">&gt;=</a> 2 <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 2
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:35"><span class="lab"><font color="Green" title="E22">A4</font></span></a>, <a class="ref" href="nat_2.html#T24" onmouseover="rs('nat_2/T24')" onmouseout="rh()">NAT_2:24</a></span>;<br/><a NAME="E20:35_3"/><span class="lab"><font color="Green" title="E28">A10</font></span>: 
<font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1 <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">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 class="kw">by</span> <span class="lab"><a class="txt" href="#E17:35_3"><span class="lab"><font color="Green" title="E26">A8</font></span></a>, <a class="txt" href="#E3:35"><span class="lab"><font color="Green" title="E21">A3</font></span></a>, <a class="txt" href="#E1:35"><span class="lab"><font color="Green" title="E19">A1</font></span></a>, <a class="txt" href="#E2:35"><span class="lab"><font color="Green" title="E20">A2</font></span></a>, <a class="txt" href="#E4:35"><span class="lab"><font color="Green" title="E22">A4</font></span></a>, <a class="ref" href="pepin.html#T47" onmouseover="rs('pepin/T47')" onmouseout="rh()">PEPIN:47</a></span>;<br/><a NAME="E21:35_3"/>
<span class="p1">(<span class="default"><font color="Maroon" title="c2">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 <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a> <font color="Maroon" title="c2">p</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E10:35_3"><span class="lab"><font color="Green" title="E25">A7</font></span></a>, <a class="ref" href="nat_d.html#D3" onmouseover="rs('nat_d/D3')" onmouseout="rh()">NAT_D:def 3</a></span>;<br/><a NAME="E22:35_3"/><span class="kw">then </span>
2 <a href="nat_1.html#K2" title="NAT_1:func.2">*</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">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> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 <a href="nat_1.html#K2" title="NAT_1:func.2">*</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">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="kw">by</span> <span class="lab"><a class="txt" href="#E10:35_3"><span class="lab"><font color="Green" title="E25">A7</font></span></a>, <a class="txt" href="#E20:35_3"><span class="lab"><font color="Green" title="E28">A10</font></span></a>, <a class="ref" href="nat_d.html#T5" onmouseover="rs('nat_d/T5')" onmouseout="rh()">NAT_D:5</a></span>;<br/><span class="kw">hence </span><a NAME="E23:35_3"/>
contradiction
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E19:35_3"><span class="lab"><font color="Green" title="E27">A9</font></span></a>, <a class="ref" href="pepin.html#T44" onmouseover="rs('pepin/T44')" onmouseout="rh()">PEPIN:44</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="E6:35"/>
 for <font color="Olive" title="b1">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a>  holds  not <font color="Maroon" title="c1">i</font> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b1">k</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <font color="Maroon" title="c2">p</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"> verum</span><br/>


</div>
