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

<span class="kw">let </span><font color="Maroon" title="c1">i</font>, <font color="Maroon" title="c2">n</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">fn</font> being    <a href="finseq_1.html#M2" title="FINSEQ_1:mode.2">FinSequence</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>   st <font color="Maroon" title="c2">n</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 1 &amp; <font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  &amp;  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Olive" title="b1">fn</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>) &amp; (  for <font color="Olive" title="b2">d</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>   st <font color="Olive" title="b2">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Olive" title="b1">fn</font> holds <br/><font color="Olive" title="b1">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b2">d</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <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="Olive" title="b2">d</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> ) holds <br/> for <font color="Olive" title="b2">d</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>   st <font color="Olive" title="b2">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Olive" title="b1">fn</font> holds <br/><span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Olive" title="b1">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b2">d</font></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/><span class="kw">let </span><font color="Maroon" title="c3">fn</font> be    <a href="finseq_1.html#M2" title="FINSEQ_1:mode.2">FinSequence</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">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"> ( <font color="Maroon" title="c2">n</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 1 &amp; <font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  &amp;  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">fn</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>) &amp; (  for <font color="Olive" title="b1">d</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>   st <font color="Olive" title="b1">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Maroon" title="c3">fn</font> holds <br/><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b1">d</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <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="Olive" title="b1">d</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> ) implies  for <font color="Olive" title="b1">d</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>   st <font color="Olive" title="b1">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Maroon" title="c3">fn</font> holds <br/><span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b1">d</font></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 )</span><br/>





<span class="kw">assume </span><a NAME="E1:17"/><span class="lab"><font color="Green" title="E11">A1</font></span>: 
( <font color="Maroon" title="c2">n</font> <a href="xxreal_0.html#NR4" title="XXREAL_0:NR.4">&gt;</a> 1 &amp; <font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  &amp;  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">fn</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>) &amp; (  for <font color="Olive" title="b1">d</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>   st <font color="Olive" title="b1">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Maroon" title="c3">fn</font> holds <br/><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b1">d</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <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="Olive" title="b1">d</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</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">d</font> being    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">NAT</a>   st <font color="Olive" title="b1">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Maroon" title="c3">fn</font> holds <br/><span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b1">d</font></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/>

<span class="kw">set </span><font color="Maroon" title="c4">K</font> =  <a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>);<br/>
<span class="kw">let </span><font color="Maroon" title="c5">d</font> be    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of  <a href="numbers.html#NK1" title="NUMBERS:NK.1">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"> ( <font color="Maroon" title="c5">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Maroon" title="c3">fn</font> implies <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">d</font></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1 )</span><br/>

<span class="kw">assume </span><a NAME="E2:17"/>
<font color="Maroon" title="c5">d</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relset_1.html#K1" title="RELSET_1:func.1">dom</a> <font color="Maroon" title="c3">fn</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"> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">d</font></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1</span><br/>

<a NAME="E3:17"/><span class="kw">then </span><span class="lab"><font color="Green" title="E12">A2</font></span>: 
<font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">d</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <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="c5">d</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:17"><span class="lab"><font color="Green" title="E11">A1</font></span></a></span>;<br/>
<span class="lab"><font color="Green" title="E13">A3</font></span>: <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">d</font></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> = 
<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"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span> <a href="nat_1.html#K2" title="NAT_1:func.2">*</a> <span class="p3">(<span class="default"><font color="Maroon" title="c5">d</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</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>, <a class="txt" href="#E3:17"><span class="lab"><font color="Green" title="E12">A2</font></span></a></span>
<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"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c5">d</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">n</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"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> = 
1
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:17"><span class="lab"><font color="Green" title="E11">A1</font></span></a>, <a class="ref" href="pepin.html#D2" onmouseover="rs('pepin/D2')" onmouseout="rh()">PEPIN:def 2</a></span>
<br/>.= 
1 <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:17"><span class="lab"><font color="Green" title="E11">A1</font></span></a>, <a class="ref" href="pepin.html#T5" onmouseover="rs('pepin/T5')" onmouseout="rh()">PEPIN:5</a></span>
;<br/>
<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"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c5">d</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">n</font> = 
<span class="p1">(<span class="default">1 <a href="newton.html#K11" title="NEWTON:func.11">|^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c5">d</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">n</font>
<span class="kw">by</span> <span class="lab"><a class="ref" href="int_4.html#T8" onmouseover="rs('int_4/T8')" onmouseout="rh()">INT_4:8</a></span>
<br/>.= 
1 <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font>

<br/>.= 
1
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:17"><span class="lab"><font color="Green" title="E11">A1</font></span></a>, <a class="ref" href="pepin.html#T5" onmouseover="rs('pepin/T5')" onmouseout="rh()">PEPIN:5</a></span>
;<br/>
<span class="kw">hence </span><a NAME="E7:17"/>
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c3">fn</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">d</font></span>)</span> <a href="newton.html#K1" title="NEWTON:func.1">|^</a> <span class="p2">(<span class="default"><a href="pepin.html#K3" title="PEPIN:func.3">order</a> (<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">n</font>)</span>)</span></span>)</span> <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> <font color="Maroon" title="c2">n</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> 1
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:17"><span class="lab"><font color="Green" title="E13">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>
