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

<span class="kw">let </span><font color="Maroon" title="c1">p</font> be   <a href="gr_cy_3.html#V2" title="GR_CY_3:attr.2">Sophie_Germain</a>  <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="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> 3 implies  ex <font color="Olive" title="b1">q</font> being   <a href="gr_cy_3.html#V1" title="GR_CY_3:attr.1">Safe</a>  <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a> st <font color="Olive" title="b1">q</font> <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a>  <a href="gr_cy_3.html#K1" title="GR_CY_3:func.1">Mersenne</a> <font color="Maroon" title="c1">p</font> )</span><br/>

<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:32"/><span class="lab"><font color="Green" title="E17">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:32"/><span class="lab"><font color="Green" title="E18">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> 3
 ; <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">  ex <font color="Olive" title="b1">q</font> being   <a href="gr_cy_3.html#V1" title="GR_CY_3:attr.1">Safe</a>  <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a> st <font color="Olive" title="b1">q</font> <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a>  <a href="gr_cy_3.html#K1" title="GR_CY_3:func.1">Mersenne</a> <font color="Maroon" title="c1">p</font></span><br/>

<span class="kw">set </span><font color="Maroon" title="c2">q</font> = <span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1;<br/>
<a NAME="E3:32"/><span class="lab"><font color="Green" title="E19">A3</font></span>: 
<span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 is   <a href="gr_cy_3.html#V1" title="GR_CY_3:attr.1">Safe</a>  <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="gr_cy_3.html#D1" target="_self" onmouseover="rs('gr_cy_3/D1')" onmouseout="rh()">Def1</a>, <a class="ref" href="gr_cy_3.html#D2" target="_self" onmouseover="rs('gr_cy_3/D2')" onmouseout="rh()">Def2</a></span>;<br/>
<a NAME="E4:32"/>
<span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 5
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:32"><span class="lab"><font color="Green" title="E17">A1</font></span></a>, <a class="txt" href="gr_cy_3.html#E13"><span class="lab"><font color="Green" title="E9">Lm1</font></span></a></span>;<br/>
<a NAME="E5:32"/><span class="kw">then </span><span class="lab"><font color="Green" title="E20">A4</font></span>: 
<span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 5 <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 3
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T51" onmouseover="rs('xreal_1/T51')" onmouseout="rh()">XREAL_1:51</a></span>;<br/>
<a NAME="E6:32"/><span class="kw">then </span>
2,<span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 <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="#E3:32"><span class="lab"><font color="Green" title="E19">A3</font></span></a>, <a class="ref" href="int_2.html#T28" onmouseover="rs('int_2/T28')" onmouseout="rh()">INT_2:28</a>, <a class="ref" href="int_2.html#T30" onmouseover="rs('int_2/T30')" onmouseout="rh()">INT_2:30</a></span>;<br/>
<a NAME="E7:32"/><span class="kw">then </span><span class="lab"><font color="Green" title="E21">A5</font></span>: 
2 <a href="nat_d.html#K6" title="NAT_D:func.6">gcd</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="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <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/>
<a NAME="E8:32"/>
<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#K2" title="NAT_1:func.2">*</a> 4</span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 3
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:32"><span class="lab"><font color="Green" title="E18">A2</font></span></a>, <a class="ref" href="int_1.html#T59" onmouseover="rs('int_1/T59')" onmouseout="rh()">INT_1:59</a></span>;<br/>
<a NAME="E9:32"/><span class="kw">then </span>
<span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 <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#K2" title="NAT_1:func.2">*</a> 8</span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 7
 
;<br/>
<span class="kw">then </span><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="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 8 = 
7 <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 8
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T21" onmouseover="rs('nat_d/T21')" onmouseout="rh()">NAT_D:21</a></span>
<br/>.= 
7
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T24" onmouseover="rs('nat_d/T24')" onmouseout="rh()">NAT_D:24</a></span>
;<br/>
<a NAME="E11:32"/><span class="kw">then </span>
2 <a href="int_5.html#R1" title="INT_5:pred.1">is_quadratic_residue_mod</a> <span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:32"><span class="lab"><font color="Green" title="E19">A3</font></span></a>, <a class="txt" href="#E5:32"><span class="lab"><font color="Green" title="E20">A4</font></span></a>, <a class="ref" href="int_5.html#T43" onmouseover="rs('int_5/T43')" onmouseout="rh()">INT_5:43</a></span>;<br/>
<a NAME="E12:32"/><span class="kw">then </span>
<span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="newton.html#K11" title="NEWTON:func.11">|^</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default"><span class="p5">(<span class="default"><span class="p0">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <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>)</span> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 2</span>)</span></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1</span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</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="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:32"><span class="lab"><font color="Green" title="E19">A3</font></span></a>, <a class="txt" href="#E5:32"><span class="lab"><font color="Green" title="E20">A4</font></span></a>, <a class="txt" href="#E7:32"><span class="lab"><font color="Green" title="E21">A5</font></span></a>, <a class="ref" href="int_5.html#T20" onmouseover="rs('int_5/T20')" onmouseout="rh()">INT_5:20</a></span>;<br/>
<a NAME="E13:32"/><span class="kw">then </span>
<span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="newton.html#K11" title="NEWTON:func.11">|^</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="c1">p</font></span>)</span> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> 2</span>)</span></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1</span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</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="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T34" onmouseover="rs('nat_d/T34')" onmouseout="rh()">NAT_D:34</a></span>;<br/>
<a NAME="E14:32"/><span class="kw">then </span>
<span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1</span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</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="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T18" onmouseover="rs('nat_d/T18')" onmouseout="rh()">NAT_D:18</a></span>;<br/>
<a NAME="E15:32"/><span class="kw">then </span>
<span class="p1">(<span class="default">2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <span class="p1">(<span class="default">2 <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <font color="Maroon" title="c1">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="ref" href="int_1.html#T62" onmouseover="rs('int_1/T62')" onmouseout="rh()">INT_1:62</a></span>;<br/>
<span class="kw">hence </span><a NAME="E16:32"/>
 ex <font color="Olive" title="b1">q</font> being   <a href="gr_cy_3.html#V1" title="GR_CY_3:attr.1">Safe</a>  <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a> st <font color="Olive" title="b1">q</font> <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a>  <a href="gr_cy_3.html#K1" title="GR_CY_3:func.1">Mersenne</a> <font color="Maroon" title="c1">p</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:32"><span class="lab"><font color="Green" title="E19">A3</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>
