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

<span class="kw">let </span><font color="Maroon" title="c1">D</font> be   non  <a href="xboole_0.html#V1" title="XBOOLE_0:attr.1">empty</a>   <a href="hidden.html#M1" title="HIDDEN:mode.1">set</a> ; <a class="txt" 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#M2" title="FINSEQ_1:mode.2">FinSequence</a> of <font color="Maroon" title="c1">D</font><br/>  for <font color="Olive" title="b2">k</font>, <font color="Olive" title="b3">i</font> being   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>  st 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Olive" title="b3">i</font> &amp; <font color="Olive" title="b3">i</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Olive" title="b2">k</font> &amp; <font color="Olive" title="b2">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="Olive" title="b1">f</font> holds <br/><span class="p1">(<span class="default"><a href="finseq_6.html#K3" title="FINSEQ_6:func.3">mid</a> (<font color="Olive" title="b1">f</font>,1,<font color="Olive" title="b2">k</font>)</span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b3">i</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Olive" title="b1">f</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b3">i</font></span><br/><span class="kw">let </span><font color="Maroon" title="c2">f</font> be    <a href="finseq_1.html#M2" title="FINSEQ_1:mode.2">FinSequence</a> of <font color="Maroon" title="c1">D</font>; <a class="txt" 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>, <font color="Olive" title="b2">i</font> being   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>  st 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Olive" title="b2">i</font> &amp; <font color="Olive" title="b2">i</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#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">f</font> holds <br/><span class="p1">(<span class="default"><a href="finseq_6.html#K3" title="FINSEQ_6:func.3">mid</a> (<font color="Maroon" title="c2">f</font>,1,<font color="Olive" title="b1">k</font>)</span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b2">i</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Olive" title="b2">i</font></span><br/><span class="kw">let </span><font color="Maroon" title="c3">k</font>, <font color="Maroon" title="c4">i</font> be   <a href="nat_1.html#NM1" title="NAT_1:NM.1">Nat</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> ( 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">i</font> &amp; <font color="Maroon" title="c4">i</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">k</font> &amp; <font color="Maroon" title="c3">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">f</font> implies <span class="p1">(<span class="default"><a href="finseq_6.html#K3" title="FINSEQ_6:func.3">mid</a> (<font color="Maroon" title="c2">f</font>,1,<font color="Maroon" title="c3">k</font>)</span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">i</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">i</font> )</span><br/>





<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:133"/><span class="lab"><font color="Green" title="E103">A1</font></span>: 
1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">i</font>
 <span class="kw">and </span><br/><a NAME="E2:133"/><span class="lab"><font color="Green" title="E104">A2</font></span>: 
<font color="Maroon" title="c4">i</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">k</font>
 <span class="kw">and </span><br/><a NAME="E3:133"/><span class="lab"><font color="Green" title="E105">A3</font></span>: 
<font color="Maroon" title="c3">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">f</font>
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> <span class="p1">(<span class="default"><a href="finseq_6.html#K3" title="FINSEQ_6:func.3">mid</a> (<font color="Maroon" title="c2">f</font>,1,<font color="Maroon" title="c3">k</font>)</span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">i</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">i</font></span><br/>

<a NAME="E4:133"/><span class="lab"><font color="Green" title="E106">A4</font></span>: 
<font color="Maroon" title="c4">i</font> <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <span class="p1">(<span class="default"><font color="Maroon" title="c3">k</font> <a href="real_1.html#K5" title="REAL_1:func.5">-</a> 1</span>)</span> <a href="real_1.html#K7" title="REAL_1:func.7">+</a> 1
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:133"><span class="lab"><font color="Green" title="E104">A2</font></span></a></span>;<br/>
<a NAME="E5:133"/><span class="lab"><font color="Green" title="E107">A5</font></span>: 
<font color="Maroon" title="c3">k</font> <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">NAT</a> 
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="ordinal1.html#D12" title="ORDINAL1:def.12">ORDINAL1:def 12</a></span>;<br/>
<a NAME="E6:133"/><span class="lab"><font color="Green" title="E108">A6</font></span>: 
<font color="Maroon" title="c4">i</font> <a href="hidden.html#R2" title="HIDDEN:pred.2">in</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">NAT</a> 
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="ordinal1.html#D12" title="ORDINAL1:def.12">ORDINAL1:def 12</a></span>;<br/>
<a NAME="E7:133"/>
1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">k</font>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:133"><span class="lab"><font color="Green" title="E103">A1</font></span></a>, <a class="txt" href="#E2:133"><span class="lab"><font color="Green" title="E104">A2</font></span></a>, <a class="ref" href="xxreal_0.html#T2" title="XXREAL_0:th.2">XXREAL_0:2</a></span>;<br/>
<a NAME="E8:133"/><span class="kw">then </span>
<span class="p1">(<span class="default"><a href="finseq_6.html#K3" title="FINSEQ_6:func.3">mid</a> (<font color="Maroon" title="c2">f</font>,1,<font color="Maroon" title="c3">k</font>)</span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">i</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c4">i</font> <a href="nat_1.html#K1" title="NAT_1:func.1">+</a> 1</span>)</span> <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:133"><span class="lab"><font color="Green" title="E103">A1</font></span></a>, <a class="txt" href="#E3:133"><span class="lab"><font color="Green" title="E105">A3</font></span></a>, <a class="txt" href="#E6:133"><span class="lab"><font color="Green" title="E108">A6</font></span></a>, <a class="txt" href="#E5:133"><span class="lab"><font color="Green" title="E107">A5</font></span></a>, <a class="txt" href="#E4:133"><span class="lab"><font color="Green" title="E106">A4</font></span></a>, <a class="ref" href="finseq_6.html#T122" target="_self" title="FINSEQ_6:th.122">Th128</a></span>;<br/>
<span class="kw">hence </span><a NAME="E9:133"/>
<span class="p1">(<span class="default"><a href="finseq_6.html#K3" title="FINSEQ_6:func.3">mid</a> (<font color="Maroon" title="c2">f</font>,1,<font color="Maroon" title="c3">k</font>)</span>)</span> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">i</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> <a href="funct_1.html#K1" title="FUNCT_1:func.1">.</a> <font color="Maroon" title="c4">i</font>
 <span class="kw">by</span> <span class="lab"><a class="ref" href="nat_d.html#T34" title="NAT_D:th.34">NAT_D:34</a></span>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="firebrick">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div>
