<?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#V1" title="GR_CY_3:attr.1">Safe</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="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a> 7 implies <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 2 )</span><br/>

<span class="kw">set </span><font color="Maroon" title="c2">k</font> = <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3;<br/>
<span class="kw">consider </span><font color="Maroon" title="c3">q</font> being   <a href="newton.html#NM1" title="NEWTON:NM.1">Prime</a><span class="kw"> such that </span><br/><a NAME="E2:6"/><span class="lab"><font color="Green" title="E6">A1</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="c3">q</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> <font color="Maroon" title="c1">p</font>
 <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></span>;<br/>
<span class="kw">assume </span><a NAME="E3:6"/><span class="lab"><font color="Green" title="E7">A2</font></span>: 
<font color="Maroon" title="c1">p</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a> 7
 ; <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="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 2</span><br/>

<div><span class="lab"><font color="Green" title="E8">A3</font></span>: <a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="6_1"><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"> (  not <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp;  not <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 )</span></a><div class="add"><span class="kw">assume </span><a NAME="E1:6_1"/><span class="lab"><font color="Green" title="E9">A4</font></span>: 
( <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  or <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <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"> contradiction</span><br/><div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="6_1_1"><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"> contradiction</span></a><div class="add"><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="6_1_1_1"><span class="kw">per </span></a><a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="kw">cases </span></a><span class="hide"><a NAME="E1:6_1_1_1"/>
( <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  or <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 )
 </span><span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6_1"><span class="lab"><font color="Green" title="E9">A4</font></span></a></span>;<br/><div class="add"><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="6_1_1_1_1"><span class="kw">suppose </span></a><a NAME="E1:6_1_1_1_1"/>
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</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"> contradiction</span><br/><div class="add"><a NAME="E2:6_1_1_1_1"/><span class="kw">then </span>
3 <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a> <font color="Maroon" title="c1">p</font>
 <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/><a NAME="E3:6_1_1_1_1"/><span class="kw">then </span>
3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">p</font>
 <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">hence </span><a NAME="E4:6_1_1_1_1"/>
contradiction
 <span class="kw">by</span> <span class="lab"><a class="ref" href="gr_cy_3.html#T2" target="_self" onmouseover="rs('gr_cy_3/T2')" onmouseout="rh()">Th2</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><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="6_1_1_1_2"><span class="kw">suppose </span></a><a NAME="E1:6_1_1_1_2"/><span class="lab"><font color="Green" title="E10">A5</font></span>: 
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <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"> contradiction</span><br/><div class="add"><a NAME="E2:6_1_1_1_2"/>
2,3 <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a> 
 <span class="kw">by</span> <span class="lab"><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>, <a class="ref" href="pepin.html#T41" onmouseover="rs('pepin/T41')" onmouseout="rh()">PEPIN:41</a></span>;<br/><a NAME="E3:6_1_1_1_2"/><span class="kw">then </span><span class="lab"><font color="Green" title="E11">A6</font></span>: 
2 <a href="nat_d.html#K6" title="NAT_D:func.6">gcd</a> 3 <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="E4:6_1_1_1_2"/>
3 <a href="int_1.html#R1" title="INT_1:pred.1">divides</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">q</font></span>)</span> <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="txt" href="#E2:6"><span class="lab"><font color="Green" title="E6">A1</font></span></a>, <a class="txt" href="#E1:6_1_1_1_2"><span class="lab"><font color="Green" title="E10">A5</font></span></a>, <a class="ref" href="pepin.html#T8" onmouseover="rs('pepin/T8')" onmouseout="rh()">PEPIN:8</a></span>;<br/><a NAME="E5:6_1_1_1_2"/><span class="kw">then </span>
3 <a href="nat_d.html#R1" title="NAT_D:pred.1">divides</a> <font color="Maroon" title="c3">q</font>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:6_1_1_1_2"><span class="lab"><font color="Green" title="E11">A6</font></span></a>, <a class="ref" href="wsierp_1.html#T29" onmouseover="rs('wsierp_1/T29')" onmouseout="rh()">WSIERP_1:29</a></span>;<br/><a NAME="E6:6_1_1_1_2"/><span class="kw">then </span>
3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">q</font>
 <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">hence </span><a NAME="E7:6_1_1_1_2"/>
contradiction
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:6"><span class="lab"><font color="Green" title="E7">A2</font></span></a>, <a class="txt" href="#E2:6"><span class="lab"><font color="Green" title="E6">A1</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><span class="kw">end;</span></div></div><span class="kw">end;</span></div></div><span class="kw">end;</span></div><span class="kw">hence </span><a NAME="E3:6_1"/>
contradiction
 ; <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>
<a NAME="E5:6"/>
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> 2 <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T62" onmouseover="rs('nat_d/T62')" onmouseout="rh()">NAT_D:62</a></span>;<br/>
<a NAME="E6:6"/><span class="kw">then </span>
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <a href="numbers.html#K5" title="NUMBERS:func.5">0</a> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 2
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_1.html#T13" onmouseover="rs('nat_1/T13')" onmouseout="rh()">NAT_1:13</a></span>;<br/>
<a NAME="E7:6"/><span class="kw">then </span>
 not  not <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp;  ...  &amp;  not <font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 2
 
;<br/>
<span class="kw">hence </span><a NAME="E8:6"/>
<font color="Maroon" title="c1">p</font> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 3 <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 2
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:6"><span class="lab"><font color="Green" title="E8">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>
