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

<b>let </b><font color="Maroon" title="c1">n</font> be  non <a href="xboole_0.html#V1" title="XBOOLE_0:attr.1">empty</a> <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> for <font color="Olive" title="b1">x</font>, <font color="Olive" title="b2">y</font> being  <a href="binarith.html#NM1" title="BINARITH:NM.1">Tuple</a> of <font color="Maroon" title="c1">n</font>,<a href="margrel1.html#K6" title="MARGREL1:func.6">BOOLEAN</a>   st <font color="Olive" title="b1">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font> &amp; <font color="Olive" title="b2">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font> holds <br/><font color="Olive" title="b1">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Olive" title="b2">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font></span><br/><b>let </b><font color="Maroon" title="c2">x</font>, <font color="Maroon" title="c3">y</font> be   <a href="binarith.html#NM1" title="BINARITH:NM.1">Tuple</a> of <font color="Maroon" title="c1">n</font>,<a href="margrel1.html#K6" title="MARGREL1:func.6">BOOLEAN</a> ; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> ( <font color="Maroon" title="c2">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font> &amp; <font color="Maroon" title="c3">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font> implies <font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font> )</span><br/>



<b>assume </b><a NAME="E1:6"/><i><font color="Green" title="E5">A1</font></i>: 
( <font color="Maroon" title="c2">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font> &amp; <font color="Maroon" title="c3">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font> )
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> <font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font></span><br/>

<a NAME="E2:6"/>
for <font color="Olive" title="b1">k</font> being  <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>  st <font color="Olive" title="b1">k</font> <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="finseq_1.html#K2" title="FINSEQ_1:func.2">Seg</a> <font color="Maroon" title="c1">n</font> holds <br/><span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b1">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b1">k</font>
 
<div><a class="txt" onclick="hs2(this)" href="javascript:()" title="6_1"><b>proof </b></a><div class="add">

<b>let </b><font color="Maroon" title="c4">k</font> be   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> ( <font color="Maroon" title="c4">k</font> <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="finseq_1.html#K2" title="FINSEQ_1:func.2">Seg</a> <font color="Maroon" title="c1">n</font> implies <span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">k</font> )</span><br/>

<b>assume </b><a NAME="E1:6_1"/><i><font color="Green" title="E6">A2</font></i>: 
<font color="Maroon" title="c4">k</font> <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="finseq_1.html#K2" title="FINSEQ_1:func.2">Seg</a> <font color="Maroon" title="c1">n</font>
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> <span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">k</font></span><br/>

<b>reconsider </b><font color="Maroon" title="c5">k</font> = <font color="Maroon" title="c4">k</font> as   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a> ;<br/>
<a NAME="E3:6_1"/><i><font color="Green" title="E7">A3</font></i>: 
<span class="p1">(<span class="default"><a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="margrel1.html#K7" title="MARGREL1:func.7">FALSE</a> 
 
<b>by </b><i><a class="txt" href="#E1:6_1"><i><font color="Green" title="E6">A2</font></i></a>, <a class="ref" href="funcop_1.html#T13" title="FUNCOP_1:th.13">FUNCOP_1:13</a></i>;<br/>
<a NAME="E4:6_1"/>
(  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c2">x</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">n</font> &amp;  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">n</font> &amp;  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><a href="binarith.html#K4" title="BINARITH:func.4">carry</a> <font color="Maroon" title="c2">x</font>,<font color="Maroon" title="c3">y</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">n</font> &amp;  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c1">n</font> )
 
<b>by </b><i><a class="ref" href="finseq_2.html#T109" title="FINSEQ_2:th.109">FINSEQ_2:109</a></i>;<br/>
<a NAME="E5:6_1"/><b>then </b><i><font color="Green" title="E8">A4</font></i>: 
( 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c5">k</font> &amp; <font color="Maroon" title="c5">k</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a>  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c2">x</font> &amp; <font color="Maroon" title="c5">k</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a>  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><a href="binarith.html#K4" title="BINARITH:func.4">carry</a> <font color="Maroon" title="c2">x</font>,<font color="Maroon" title="c3">y</font></span>)</span> &amp; <font color="Maroon" title="c5">k</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a>  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> )
 
<b>by </b><i><a class="txt" href="#E1:6_1"><i><font color="Green" title="E6">A2</font></i></a>, <a class="ref" href="finseq_1.html#T3" title="FINSEQ_1:th.3">FINSEQ_1:3</a></i>;<br/>
<a NAME="E6:6_1"/><b>then </b><i><font color="Green" title="E9">A5</font></i>: 
<font color="Maroon" title="c3">y</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c5">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="margrel1.html#K7" title="MARGREL1:func.7">FALSE</a> 
 
<b>by </b><i><a class="txt" href="#E1:6"><i><font color="Green" title="E5">A1</font></i></a>, <a class="txt" href="#E3:6_1"><i><font color="Green" title="E7">A3</font></i></a>, <a class="ref" href="finseq_4.html#T24" title="FINSEQ_4:th.24">FINSEQ_4:24</a></i>;<br/>
<i><font color="Green" title="E10">A6</font></i>: <span class="p1">(<span class="default"><a href="binarith.html#K4" title="BINARITH:func.4">carry</a> <font color="Maroon" title="c2">x</font>,<font color="Maroon" title="c3">y</font></span>)</span> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c5">k</font> = 
<span class="p1">(<span class="default"><a href="binarith.html#K4" title="BINARITH:func.4">carry</a> <font color="Maroon" title="c2">x</font>,<font color="Maroon" title="c3">y</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">k</font>
<b>by </b><i><a class="txt" href="#E5:6_1"><i><font color="Green" title="E8">A4</font></i></a>, <a class="ref" href="finseq_4.html#T24" title="FINSEQ_4:th.24">FINSEQ_4:24</a></i>
<br/>.= 
 <a href="margrel1.html#K7" title="MARGREL1:func.7">FALSE</a> 
<b>by </b><i><a class="txt" href="#E1:6"><i><font color="Green" title="E5">A1</font></i></a>, <a class="txt" href="#E3:6_1"><i><font color="Green" title="E7">A3</font></i></a>, <a class="ref" href="binari_4.html#T5" target="_self" title="BINARI_4:th.5">Th5</a></i>
;<br/>
<span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c5">k</font> = 
<span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c5">k</font>
<b>by </b><i><a class="txt" href="#E5:6_1"><i><font color="Green" title="E8">A4</font></i></a>, <a class="ref" href="finseq_4.html#T24" title="FINSEQ_4:th.24">FINSEQ_4:24</a></i>
<br/>.= 
<a href="margrel1.html#K7" title="MARGREL1:func.7">FALSE</a>  <a href="binarith.html#K2" title="BINARITH:func.2">'xor'</a> <a href="margrel1.html#K7" title="MARGREL1:func.7">FALSE</a> 
<b>by </b><i><a class="txt" href="#E1:6"><i><font color="Green" title="E5">A1</font></i></a>, <a class="txt" href="#E1:6_1"><i><font color="Green" title="E6">A2</font></i></a>, <a class="txt" href="#E6:6_1"><i><font color="Green" title="E9">A5</font></i></a>, <a class="txt" href="#E7:6_1"><i><font color="Green" title="E10">A6</font></i></a>, <a class="ref" href="binarith.html#D8" title="BINARITH:def.8">BINARITH:def 8</a></i>
<br/>.= 
 <a href="margrel1.html#K7" title="MARGREL1:func.7">FALSE</a> 

;<br/>
<b>hence </b><a NAME="E9:6_1"/>
<span class="p1">(<span class="default"><font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">k</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font></span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">k</font>
 <b>by </b><i><a class="txt" href="#E1:6_1"><i><font color="Green" title="E6">A2</font></i></a>, <a class="ref" href="funcop_1.html#T13" title="FUNCOP_1:th.13">FUNCOP_1:13</a></i>; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> verum</span><br/>


</div><b>end;</b></div>
<b>hence </b><a NAME="E3:6"/>
<font color="Maroon" title="c2">x</font> <a href="binarith.html#K7" title="BINARITH:func.7">+</a> <font color="Maroon" title="c3">y</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="euclid.html#K5" title="EUCLID:func.5">0*</a> <font color="Maroon" title="c1">n</font>
 <b>by </b><i><a class="txt" href="#E1:6"><i><font color="Green" title="E5">A1</font></i></a>, <a class="ref" href="finseq_2.html#T139" title="FINSEQ_2:th.139">FINSEQ_2:139</a></i>; <a class="txt" onclick="hs(this)" href="javascript:()"><i><font color="Red">::  thesis: </font></i></a><span class="hide"> verum</span><br/>


</div>
