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

<span class="kw">let </span><font color="Maroon" title="c1">i</font>, <font color="Maroon" title="c2">j</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">  for <font color="Olive" title="b1">f</font> being   <a href="finseq_1.html#NM1" title="FINSEQ_1:NM.1">FinSequence</a>  st <font color="Maroon" title="c1">i</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="finseq_1.html#K4" title="FINSEQ_1:func.4">dom</a> <font color="Olive" title="b1">f</font> &amp; <font color="Maroon" title="c2">j</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="finseq_1.html#K4" title="FINSEQ_1:func.4">dom</a> <font color="Olive" title="b1">f</font> &amp; <font color="Maroon" title="c1">i</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c2">j</font> holds <br/> <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><a href="finseq_6.html#K2" title="FINSEQ_6:func.2">mid</a> (<font color="Olive" title="b1">f</font>,<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">j</font>)</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span><br/><span class="kw">let </span><font color="Maroon" title="c3">D</font> be   <a href="finseq_1.html#NM1" title="FINSEQ_1:NM.1">FinSequence</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">i</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="finseq_1.html#K4" title="FINSEQ_1:func.4">dom</a> <font color="Maroon" title="c3">D</font> &amp; <font color="Maroon" title="c2">j</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="finseq_1.html#K4" title="FINSEQ_1:func.4">dom</a> <font color="Maroon" title="c3">D</font> &amp; <font color="Maroon" title="c1">i</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c2">j</font> implies  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><a href="finseq_6.html#K2" title="FINSEQ_6:func.2">mid</a> (<font color="Maroon" title="c3">D</font>,<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">j</font>)</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1 )</span><br/>





<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:55"/><span class="lab"><font color="Green" title="E35">A1</font></span>: 
<font color="Maroon" title="c1">i</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="finseq_1.html#K4" title="FINSEQ_1:func.4">dom</a> <font color="Maroon" title="c3">D</font>
 <span class="kw">and </span><br/><a NAME="E2:55"/><span class="lab"><font color="Green" title="E36">A2</font></span>: 
<font color="Maroon" title="c2">j</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="finseq_1.html#K4" title="FINSEQ_1:func.4">dom</a> <font color="Maroon" title="c3">D</font>
 <span class="kw">and </span><br/><a NAME="E3:55"/><span class="lab"><font color="Green" title="E37">A3</font></span>: 
<font color="Maroon" title="c1">i</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c2">j</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">  <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><a href="finseq_6.html#K2" title="FINSEQ_6:func.2">mid</a> (<font color="Maroon" title="c3">D</font>,<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">j</font>)</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1</span><br/>

<a NAME="E4:55"/>
<font color="Maroon" title="c2">j</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> <span class="p1">(<span class="default"><a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">D</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:55"><span class="lab"><font color="Green" title="E36">A2</font></span></a>, <a class="ref" href="finseq_1.html#D3" onmouseover="rs('finseq_1/D3')" onmouseout="rh()">FINSEQ_1:def 3</a></span>;<br/>
<a NAME="E5:55"/><span class="kw">then </span>
<font color="Maroon" title="c2">j</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="c3">D</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_1.html#T1" onmouseover="rs('finseq_1/T1')" onmouseout="rh()">FINSEQ_1:1</a></span>;<br/>
<a NAME="E6:55"/><span class="kw">then </span>
<font color="Maroon" title="c1">i</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="c3">D</font>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:55"><span class="lab"><font color="Green" title="E37">A3</font></span></a>, <a class="ref" href="xxreal_0.html#T2" onmouseover="rs('xxreal_0/T2')" onmouseout="rh()">XXREAL_0:2</a></span>;<br/>
<a NAME="E7:55"/><span class="kw">then </span>
<font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1 <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="c3">D</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T44" onmouseover="rs('nat_d/T44')" onmouseout="rh()">NAT_D:44</a></span>;<br/>
<a NAME="E8:55"/><span class="kw">then </span><span class="lab"><font color="Green" title="E38">A4</font></span>: 
 <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><font color="Maroon" title="c3">D</font> <a href="rfinseq.html#K1" title="RFINSEQ:func.1">/^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">D</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</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="ref" href="rfinseq.html#D1" onmouseover="rs('rfinseq/D1')" onmouseout="rh()">RFINSEQ:def 1</a></span>;<br/>
<span class="kw">reconsider </span><font color="Maroon" title="c4">D1</font> = <font color="Maroon" title="c3">D</font> <a href="rfinseq.html#K1" title="RFINSEQ:func.1">/^</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> as   <a href="finseq_1.html#NM1" title="FINSEQ_1:NM.1">FinSequence</a> ;<br/>
<span class="kw">reconsider </span><font color="Maroon" title="c5">k</font> = <span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 as    <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>  ;<br/>
<a NAME="E11:55"/>
<font color="Maroon" title="c1">i</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> <span class="p1">(<span class="default"><a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">D</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:55"><span class="lab"><font color="Green" title="E35">A1</font></span></a>, <a class="ref" href="finseq_1.html#D3" onmouseover="rs('finseq_1/D3')" onmouseout="rh()">FINSEQ_1:def 3</a></span>;<br/>
<a NAME="E12:55"/><span class="kw">then </span>
1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c1">i</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_1.html#T1" onmouseover="rs('finseq_1/T1')" onmouseout="rh()">FINSEQ_1:1</a></span>;<br/>
<a NAME="E13:55"/><span class="kw">then </span>
<font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> 1</span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="xreal_1.html#T233" onmouseover="rs('xreal_1/T233')" onmouseout="rh()">XREAL_1:233</a></span>;<br/>
<a NAME="E14:55"/><span class="kw">then </span><span class="lab"><font color="Green" title="E39">A5</font></span>: 
<font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1
 
;<br/>
<a NAME="E15:55"/>
<font color="Maroon" title="c2">j</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> <span class="p1">(<span class="default"><a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">D</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:55"><span class="lab"><font color="Green" title="E36">A2</font></span></a>, <a class="ref" href="finseq_1.html#D3" onmouseover="rs('finseq_1/D3')" onmouseout="rh()">FINSEQ_1:def 3</a></span>;<br/>
<a NAME="E16:55"/><span class="kw">then </span>
<font color="Maroon" title="c2">j</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="c3">D</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_1.html#T1" onmouseover="rs('finseq_1/T1')" onmouseout="rh()">FINSEQ_1:1</a></span>;<br/>
<a NAME="E17:55"/><span class="kw">then </span>
<font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <span class="p1">(<span class="default"><a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <font color="Maroon" title="c3">D</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p1">(<span class="default"><font color="Maroon" title="c1">i</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="ref" href="xreal_1.html#T9" onmouseover="rs('xreal_1/T9')" onmouseout="rh()">XREAL_1:9</a></span>;<br/>
<a NAME="E18:55"/><span class="kw">then </span><span class="lab"><font color="Green" title="E40">A6</font></span>: 
<span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1 <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="c3">D</font> <a href="rfinseq.html#K1" title="RFINSEQ:func.1">/^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:55"><span class="lab"><font color="Green" title="E37">A3</font></span></a>, <a class="txt" href="#E8:55"><span class="lab"><font color="Green" title="E38">A4</font></span></a>, <a class="txt" href="#E14:55"><span class="lab"><font color="Green" title="E39">A5</font></span></a>, <a class="ref" href="xreal_1.html#T233" onmouseover="rs('xreal_1/T233')" onmouseout="rh()">XREAL_1:233</a></span>;<br/>
 <a href="finseq_6.html#K2" title="FINSEQ_6:func.2">mid</a> (<font color="Maroon" title="c3">D</font>,<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">j</font>) = 
<span class="p1">(<span class="default"><font color="Maroon" title="c3">D</font> <a href="rfinseq.html#K1" title="RFINSEQ:func.1">/^</a> <span class="p2">(<span class="default"><font color="Maroon" title="c1">i</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> 1</span>)</span></span>)</span> <a href="finseq_1.html#K16" title="FINSEQ_1:func.16">|</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:55"><span class="lab"><font color="Green" title="E37">A3</font></span></a>, <a class="ref" href="finseq_6.html#D3" onmouseover="rs('finseq_6/D3')" onmouseout="rh()">FINSEQ_6:def 3</a></span>
<br/>.= 
<font color="Maroon" title="c4">D1</font> <a href="relat_1.html#K5" title="RELAT_1:func.5">|</a> <span class="p1">(<span class="default"><a href="finseq_1.html#K2" title="FINSEQ_1:func.2">Seg</a> <font color="Maroon" title="c5">k</font></span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_1.html#D15" onmouseover="rs('finseq_1/D15')" onmouseout="rh()">FINSEQ_1:def 15</a></span>
;<br/>
<a NAME="E20:55"/><span class="kw">then </span>
 <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><a href="finseq_6.html#K2" title="FINSEQ_6:func.2">mid</a> (<font color="Maroon" title="c3">D</font>,<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">j</font>)</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="nat_d.html#K7" title="NAT_D:func.7">-'</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E18:55"><span class="lab"><font color="Green" title="E40">A6</font></span></a>, <a class="ref" href="finseq_1.html#T17" onmouseover="rs('finseq_1/T17')" onmouseout="rh()">FINSEQ_1:17</a></span>;<br/>
<span class="kw">hence </span><a NAME="E21:55"/>
 <a href="finseq_1.html#K3" title="FINSEQ_1:func.3">len</a> <span class="p1">(<span class="default"><a href="finseq_6.html#K2" title="FINSEQ_6:func.2">mid</a> (<font color="Maroon" title="c3">D</font>,<font color="Maroon" title="c1">i</font>,<font color="Maroon" title="c2">j</font>)</span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c2">j</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Maroon" title="c1">i</font></span>)</span> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> 1
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E3:55"><span class="lab"><font color="Green" title="E37">A3</font></span></a>, <a class="ref" href="xreal_1.html#T233" onmouseover="rs('xreal_1/T233')" onmouseout="rh()">XREAL_1:233</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>
