<?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" 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:33"/><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:33"/><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" 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="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1;<br/>
<a NAME="E3:33"/><span class="lab"><font color="Green" title="E19">A3</font></span>: 
<span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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" title="GR_CY_3:def.1">Def1</a>, <a class="ref" href="gr_cy_3.html#D2" target="_self" title="GR_CY_3:def.2">Def2</a></span>;<br/>
<a NAME="E4:33"/>
<span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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:33"><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:33"/><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="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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" title="XREAL_1:th.51">XREAL_1:51</a></span>;<br/>
<a NAME="E6:33"/><span class="kw">then </span>
2,<span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1 <a href="int_2.html#R1" title="INT_2:pred.1">are_relative_prime</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:33"><span class="lab"><font color="Green" title="E19">A3</font></span></a>, <a class="ref" href="int_2.html#T28" title="INT_2:th.28">INT_2:28</a>, <a class="ref" href="int_2.html#T30" title="INT_2:th.30">INT_2:30</a></span>;<br/>
<a NAME="E7:33"/><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="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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" title="INT_2:def.3">INT_2:def 3</a></span>;<br/>
<a NAME="E8:33"/>
<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> 3
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:33"><span class="lab"><font color="Green" title="E18">A2</font></span></a>, <a class="ref" href="int_1.html#T59" title="INT_1:th.59">INT_1:59</a></span>;<br/>
<a NAME="E9:33"/><span class="kw">then </span>
<span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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#K4" title="NAT_1:func.4">*</a> 8</span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 7
 
;<br/>
<span class="kw">then </span><span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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" title="NAT_D:th.21">NAT_D:21</a></span>
<br/>.= 
7
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T24" title="NAT_D:th.24">NAT_D:24</a></span>
;<br/>
<a NAME="E11:33"/><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="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></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="#E3:33"><span class="lab"><font color="Green" title="E19">A3</font></span></a>, <a class="txt" href="#E5:33"><span class="lab"><font color="Green" title="E20">A4</font></span></a>, <a class="ref" href="int_5.html#T43" title="INT_5:th.43">INT_5:43</a></span>;<br/>
<a NAME="E12:33"/><span class="kw">then </span>
<span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="newton.html#K15" title="NEWTON:func.15">|^</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="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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#K6" title="INT_1:func.6">mod</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:33"><span class="lab"><font color="Green" title="E19">A3</font></span></a>, <a class="txt" href="#E5:33"><span class="lab"><font color="Green" title="E20">A4</font></span></a>, <a class="txt" href="#E7:33"><span class="lab"><font color="Green" title="E21">A5</font></span></a>, <a class="ref" href="int_5.html#T20" title="INT_5:th.20">INT_5:20</a></span>;<br/>
<a NAME="E13:33"/><span class="kw">then </span>
<span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="newton.html#K15" title="NEWTON:func.15">|^</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</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#K6" title="INT_1:func.6">mod</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T34" title="NAT_D:th.34">NAT_D:34</a></span>;<br/>
<a NAME="E14:33"/><span class="kw">then </span>
<span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="newton.html#K3" title="NEWTON:func.3">|^</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#K6" title="INT_1:func.6">mod</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K6" title="NUMBERS:func.6">0</a> 
 
<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/>
<a NAME="E15:33"/><span class="kw">then </span>
<span class="p1">(<span class="default">2 <a href="nat_1.html#K4" title="NAT_1:func.4">*</a> <font color="Maroon" title="c1">p</font></span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">+</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#K3" title="NEWTON:func.3">|^</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" title="INT_1:th.62">INT_1:62</a></span>;<br/>
<span class="kw">hence </span><a NAME="E16:33"/>
 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:33"><span class="lab"><font color="Green" title="E19">A3</font></span></a></span>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div>
