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

<span class="kw">let </span><font color="Maroon" title="c1">n</font> be   non  <a href="ordinal1.html#V8" title="ORDINAL1:attr.8">zero</a>  <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">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a>  st 2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <font color="Maroon" title="c1">n</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Olive" title="b1">k</font> &amp; <font color="Olive" title="b1">k</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> 2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> holds <br/><span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="binari_3.html#K1" title="BINARI_3:func.1">-BinarySequence</a> <font color="Olive" title="b1">k</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="margrel1.html#K7" title="MARGREL1:func.7">TRUE</a> </span><br/><span class="kw">let </span><font color="Maroon" title="c2">k</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"> ( 2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <font color="Maroon" title="c1">n</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c2">k</font> &amp; <font color="Maroon" title="c2">k</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> 2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> implies <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="binari_3.html#K1" title="BINARI_3:func.1">-BinarySequence</a> <font color="Maroon" title="c2">k</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="margrel1.html#K7" title="MARGREL1:func.7">TRUE</a>  )</span><br/>



<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:31"/><span class="lab"><font color="Green" title="E24">A1</font></span>: 
2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <font color="Maroon" title="c1">n</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c2">k</font>
 <span class="kw">and </span><br/><a NAME="E2:31"/><span class="lab"><font color="Green" title="E25">A2</font></span>: 
<font color="Maroon" title="c2">k</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> 2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</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"> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="binari_3.html#K1" title="BINARI_3:func.1">-BinarySequence</a> <font color="Maroon" title="c2">k</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="margrel1.html#K7" title="MARGREL1:func.7">TRUE</a> </span><br/>

<a NAME="E3:31"/>
<font color="Maroon" title="c2">k</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <span class="p1">(<span class="default">2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <font color="Maroon" title="c1">n</font></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default">2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> 1</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:31"><span class="lab"><font color="Green" title="E25">A2</font></span></a>, <a class="ref" href="power.html#T27" onmouseover="rs('power/T27')" onmouseout="rh()">POWER:27</a></span>;<br/>
<a NAME="E4:31"/><span class="kw">then </span>
<font color="Maroon" title="c2">k</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> 2 <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default">2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <font color="Maroon" title="c1">n</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="power.html#T25" onmouseover="rs('power/T25')" onmouseout="rh()">POWER:25</a></span>;<br/>
<a NAME="E5:31"/><span class="kw">then </span><span class="lab"><font color="Green" title="E26">A3</font></span>: 
<font color="Maroon" title="c2">k</font> <a href="xxreal_0.html#NR3" title="XXREAL_0:NR.3">&lt;</a> <span class="p1">(<span class="default">2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <font color="Maroon" title="c1">n</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p1">(<span class="default">2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <font color="Maroon" title="c1">n</font></span>)</span>
 
;<br/>
<span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1 = 
<span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</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/>.= 
<font color="Maroon" title="c1">n</font>

;<br/>
<span class="kw">then </span><span class="lab"><font color="Green" title="E27">A4</font></span>: <span class="p1">(<span class="default"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> <span class="p2">(<span class="default">2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <span class="p3">(<span class="default"><span class="p4">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <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> 2 = 
1 <a href="nat_d.html#K4" title="NAT_D:func.4">mod</a> 2
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:31"><span class="lab"><font color="Green" title="E24">A1</font></span></a>, <a class="txt" href="#E5:31"><span class="lab"><font color="Green" title="E26">A3</font></span></a>, <a class="ref" href="nat_2.html#T20" onmouseover="rs('nat_2/T20')" onmouseout="rh()">NAT_2:20</a></span>
<br/>.= 
1
<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="E8:31"/><span class="lab"><font color="Green" title="E28">A5</font></span>: 
<font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1 <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="finseq_1.html#K2" title="FINSEQ_1:func.2">Seg</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_1.html#T4" onmouseover="rs('finseq_1/T4')" onmouseout="rh()">FINSEQ_1:4</a></span>;<br/>
<a NAME="E9:31"/><span class="kw">then </span>
<font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1 <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="finseq_1.html#K2" title="FINSEQ_1:func.2">Seg</a> <span class="p1">(<span class="default"><a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="binari_3.html#K1" title="BINARI_3:func.1">-BinarySequence</a> <font color="Maroon" title="c2">k</font></span>)</span></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="card_1.html#D7" onmouseover="rs('card_1/D7')" onmouseout="rh()">CARD_1:def 7</a></span>;<br/>
<a NAME="E10:31"/><span class="kw">then </span>
<font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1 <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="finseq_1.html#K4" title="FINSEQ_1:func.4">dom</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="binari_3.html#K1" title="BINARI_3:func.1">-BinarySequence</a> <font color="Maroon" title="c2">k</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_1.html#D3" onmouseover="rs('finseq_1/D3')" onmouseout="rh()">FINSEQ_1:def 3</a></span>;<br/>
<span class="kw">hence </span><span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="binari_3.html#K1" title="BINARI_3:func.1">-BinarySequence</a> <font color="Maroon" title="c2">k</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> = 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <a href="binari_3.html#K1" title="BINARI_3:func.1">-BinarySequence</a> <font color="Maroon" title="c2">k</font></span>)</span> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="partfun1.html#D6" onmouseover="rs('partfun1/D6')" onmouseout="rh()">PARTFUN1:def 6</a></span>
<br/>.= 
 <a href="funcop_1.html#K16" title="FUNCOP_1:func.16">IFEQ</a> (<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">k</font> <a href="nat_d.html#K3" title="NAT_D:func.3">div</a> <span class="p3">(<span class="default">2 <a href="series_1.html#K5" title="SERIES_1:func.5">to_power</a> <span class="p4">(<span class="default"><span class="p5">(<span class="default"><font color="Maroon" title="c1">n</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span>)</span> <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> 2</span>)</span>,<a href="numbers.html#K5" title="NUMBERS:func.5">0</a>,<a href="margrel1.html#K6" title="MARGREL1:func.6">FALSE</a>,<a href="margrel1.html#K7" title="MARGREL1:func.7">TRUE</a>)
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E8:31"><span class="lab"><font color="Green" title="E28">A5</font></span></a>, <a class="ref" href="binari_3.html#D1" target="_self" onmouseover="rs('binari_3/D1')" onmouseout="rh()">Def1</a></span>
<br/>.= 
 <a href="margrel1.html#K7" title="MARGREL1:func.7">TRUE</a> 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E7:31"><span class="lab"><font color="Green" title="E27">A4</font></span></a>, <a class="ref" href="funcop_1.html#D8" onmouseover="rs('funcop_1/D8')" onmouseout="rh()">FUNCOP_1:def 8</a></span>
;<br/> <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>
