<?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">x</font>, <font color="Olive" title="b2">y</font> being   <a href="finseq_2.html#NM3" title="FINSEQ_2:NM.3">Tuple</a> of <font color="Maroon" title="c1">n</font>, <a href="margrel1.html#K5" title="MARGREL1:func.5">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/><span class="kw">let </span><font color="Maroon" title="c2">x</font>, <font color="Maroon" title="c3">y</font> be   <a href="finseq_2.html#NM3" title="FINSEQ_2:NM.3">Tuple</a> of <font color="Maroon" title="c1">n</font>, <a href="margrel1.html#K5" title="MARGREL1:func.5">BOOLEAN</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">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/>



<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:6"/><span class="lab"><font color="Green" title="E5">A1</font></span>: 
<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>
 <span class="kw">and </span><br/><a NAME="E2:6"/><span class="lab"><font color="Green" title="E6">A2</font></span>: 
<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" 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">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="E3:6"/>
 for <font color="Olive" title="b1">k</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a>  st <font color="Olive" title="b1">k</font> <a href="tarski.html#R2" title="TARSKI: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" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="6_1"><span class="kw">proof </span></a><div class="add">

<span class="kw">let </span><font color="Maroon" title="c4">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"> ( <font color="Maroon" title="c4">k</font> <a href="tarski.html#R2" title="TARSKI: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/>

<span class="kw">assume </span><a NAME="E1:6_1"/><span class="lab"><font color="Green" title="E7">A3</font></span>: 
<font color="Maroon" title="c4">k</font> <a href="tarski.html#R2" title="TARSKI: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" 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"><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/>

<span class="kw">reconsider </span><font color="Maroon" title="c5">k</font> = <font color="Maroon" title="c4">k</font> as   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a> ;<br/>
<a NAME="E3:6_1"/><span class="lab"><font color="Green" title="E8">A4</font></span>: 
<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#K6" title="MARGREL1:func.6">FALSE</a> 
 
;<br/>
<a NAME="E4:6_1"/><span class="lab"><font color="Green" title="E9">A5</font></span>: 
1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c5">k</font>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6_1"><span class="lab"><font color="Green" title="E7">A3</font></span></a>, <a class="ref" href="finseq_1.html#T1" onmouseover="rs('finseq_1/T1')" onmouseout="rh()">FINSEQ_1:1</a></span>;<br/>
<a NAME="E5: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>
 
<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="E6:6_1"/><span class="kw">then </span>
<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>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6_1"><span class="lab"><font color="Green" title="E7">A3</font></span></a>, <a class="ref" href="finseq_1.html#T1" onmouseover="rs('finseq_1/T1')" onmouseout="rh()">FINSEQ_1:1</a></span>;<br/>
<a NAME="E7:6_1"/><span class="kw">then </span><span class="lab"><font color="Green" title="E10">A6</font></span>: 
<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#K6" title="MARGREL1:func.6">FALSE</a> 
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6"><span class="lab"><font color="Green" title="E5">A1</font></span></a>, <a class="txt" href="#E2:6"><span class="lab"><font color="Green" title="E6">A2</font></span></a>, <a class="txt" href="#E3:6_1"><span class="lab"><font color="Green" title="E8">A4</font></span></a>, <a class="txt" href="#E4:6_1"><span class="lab"><font color="Green" title="E9">A5</font></span></a>, <a class="ref" href="finseq_4.html#T15" onmouseover="rs('finseq_4/T15')" onmouseout="rh()">FINSEQ_4:15</a></span>;<br/>
<a NAME="E8:6_1"/>
 <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>
 
<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="E9:6_1"/><span class="kw">then </span>
<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>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6_1"><span class="lab"><font color="Green" title="E7">A3</font></span></a>, <a class="ref" href="finseq_1.html#T1" onmouseover="rs('finseq_1/T1')" onmouseout="rh()">FINSEQ_1:1</a></span>;<br/>
<span class="kw">then </span><span class="lab"><font color="Green" title="E11">A7</font></span>: <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>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:6_1"><span class="lab"><font color="Green" title="E9">A5</font></span></a>, <a class="ref" href="finseq_4.html#T15" onmouseover="rs('finseq_4/T15')" onmouseout="rh()">FINSEQ_4:15</a></span>
<br/>.= 
 <a href="margrel1.html#K6" title="MARGREL1:func.6">FALSE</a> 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6"><span class="lab"><font color="Green" title="E5">A1</font></span></a>, <a class="txt" href="#E2:6"><span class="lab"><font color="Green" title="E6">A2</font></span></a>, <a class="txt" href="#E3:6_1"><span class="lab"><font color="Green" title="E8">A4</font></span></a>, <a class="ref" href="binari_4.html#T5" target="_self" onmouseover="rs('binari_4/T5')" onmouseout="rh()">Th5</a></span>
;<br/>
<a NAME="E11:6_1"/>
 <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>
 
<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="E12:6_1"/><span class="kw">then </span>
<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>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6_1"><span class="lab"><font color="Green" title="E7">A3</font></span></a>, <a class="ref" href="finseq_1.html#T1" onmouseover="rs('finseq_1/T1')" onmouseout="rh()">FINSEQ_1:1</a></span>;<br/>
<span class="kw">then </span><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>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E4:6_1"><span class="lab"><font color="Green" title="E9">A5</font></span></a>, <a class="ref" href="finseq_4.html#T15" onmouseover="rs('finseq_4/T15')" onmouseout="rh()">FINSEQ_4:15</a></span>
<br/>.= 
<a href="margrel1.html#K6" title="MARGREL1:func.6">FALSE</a> <a href="binarith.html#K2" title="BINARITH:func.2">'xor'</a> <a href="margrel1.html#K6" title="MARGREL1:func.6">FALSE</a>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6"><span class="lab"><font color="Green" title="E5">A1</font></span></a>, <a class="txt" href="#E2:6"><span class="lab"><font color="Green" title="E6">A2</font></span></a>, <a class="txt" href="#E1:6_1"><span class="lab"><font color="Green" title="E7">A3</font></span></a>, <a class="txt" href="#E7:6_1"><span class="lab"><font color="Green" title="E10">A6</font></span></a>, <a class="txt" href="#E10:6_1"><span class="lab"><font color="Green" title="E11">A7</font></span></a>, <a class="ref" href="binarith.html#D5" onmouseover="rs('binarith/D5')" onmouseout="rh()">BINARITH:def 5</a></span>
<br/>.= 
 <a href="margrel1.html#K6" title="MARGREL1:func.6">FALSE</a> 

;<br/>
<span class="kw">hence </span><a NAME="E14: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>
 ; <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>
<span class="kw">hence </span><a NAME="E4: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>
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:6"><span class="lab"><font color="Green" title="E5">A1</font></span></a>, <a class="ref" href="finseq_2.html#T119" onmouseover="rs('finseq_2/T119')" onmouseout="rh()">FINSEQ_2:119</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>
