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

<span class="kw">let </span><font color="Maroon" title="c5">IT</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" 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"> ( ( 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">i</font> &amp; <font color="Maroon" title="c3">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="c2">f</font> &amp; 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">j</font> &amp; <font color="Maroon" title="c4">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="c2">f</font> implies ( <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<span class="p1">(<span class="default"><a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c4">j</font></span>)</span>)</span>)</span>,<font color="Maroon" title="c4">j</font>,<span class="p1">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c3">i</font></span>)</span>) ) ) &amp; ( (  not 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">i</font> or  not <font color="Maroon" title="c3">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="c2">f</font> or  not 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">j</font> or  not <font color="Maroon" title="c4">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="c2">f</font> ) implies ( <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> ) ) )</span><br/>

<span class="kw">thus </span><a NAME="E1:20_1_2"/>
( 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">i</font> &amp; <font color="Maroon" title="c3">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="c2">f</font> &amp; 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">j</font> &amp; <font color="Maroon" title="c4">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="c2">f</font> implies ( <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<span class="p1">(<span class="default"><a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c4">j</font></span>)</span>)</span>)</span>,<font color="Maroon" title="c4">j</font>,<span class="p1">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c3">i</font></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"> ( (  not 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">i</font> or  not <font color="Maroon" title="c3">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="c2">f</font> or  not 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">j</font> or  not <font color="Maroon" title="c4">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="c2">f</font> ) implies ( <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> ) )</span><div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="20_1_2_1"><span class="kw">proof </span></a><div class="add">

<span class="kw">assume </span><span class="kw">that </span><br/><a NAME="E1:20_1_2_1"/><span class="lab"><font color="Green" title="E11">A1</font></span>: 
( 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">i</font> &amp; <font color="Maroon" title="c3">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="c2">f</font> )
 <span class="kw">and </span><br/><a NAME="E2:20_1_2_1"/><span class="lab"><font color="Green" title="E12">A2</font></span>: 
( 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">j</font> &amp; <font color="Maroon" title="c4">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="c2">f</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="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<span class="p1">(<span class="default"><a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c4">j</font></span>)</span>)</span>)</span>,<font color="Maroon" title="c4">j</font>,<span class="p1">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c3">i</font></span>)</span>) )</span><br/>

<a NAME="E3:20_1_2_1"/><span class="lab"><font color="Green" title="E13">A3</font></span>: 
<font color="Maroon" title="c4">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="c2">f</font>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:20_1_2_1"><span class="lab"><font color="Green" title="E12">A2</font></span></a>, <a class="ref" href="finseq_3.html#T25" onmouseover="rs('finseq_3/T25')" onmouseout="rh()">FINSEQ_3:25</a></span>;<br/>
<a NAME="E4:20_1_2_1"/><span class="kw">then </span><span class="lab"><font color="Green" title="E14">A4</font></span>: 
<font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c4">j</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">j</font>
 
<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 NAME="E5:20_1_2_1"/><span class="lab"><font color="Green" title="E15">A5</font></span>: 
<font color="Maroon" title="c3">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="c2">f</font>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:20_1_2_1"><span class="lab"><font color="Green" title="E11">A1</font></span></a>, <a class="ref" href="finseq_3.html#T25" onmouseover="rs('finseq_3/T25')" onmouseout="rh()">FINSEQ_3:25</a></span>;<br/>
<a NAME="E6:20_1_2_1"/><span class="kw">then </span>
<font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c3">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="c3">i</font>
 
<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/>
<span class="kw">hence </span><a NAME="E7:20_1_2_1"/>
( <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<span class="p1">(<span class="default"><a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<span class="p2">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c4">j</font></span>)</span>)</span>)</span>,<font color="Maroon" title="c4">j</font>,<span class="p1">(<span class="default"><font color="Maroon" title="c2">f</font> <a href="partfun1.html#K7" title="PARTFUN1:func.7">/.</a> <font color="Maroon" title="c3">i</font></span>)</span>) )
 <span class="kw">by</span> <span class="lab"><a class="txt" href="#E5:20_1_2_1"><span class="lab"><font color="Green" title="E15">A5</font></span></a>, <a class="txt" href="#E3:20_1_2_1"><span class="lab"><font color="Green" title="E13">A3</font></span></a>, <a class="txt" href="#E4:20_1_2_1"><span class="lab"><font color="Green" title="E14">A4</font></span></a>, <a class="ref" href="funct_7.html#D12" onmouseover="rs('funct_7/D12')" onmouseout="rh()">FUNCT_7:def 12</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><span class="kw">end;</span></div>

<span class="kw">assume </span><a NAME="E2:20_1_2"/>
(  not 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c3">i</font> or  not <font color="Maroon" title="c3">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="c2">f</font> or  not 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">j</font> or  not <font color="Maroon" title="c4">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="c2">f</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="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> )</span><br/>

<a NAME="E3:20_1_2"/><span class="kw">then </span>
(  not <font color="Maroon" title="c3">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="c2">f</font> or  not <font color="Maroon" title="c4">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="c2">f</font> )
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_3.html#T25" onmouseover="rs('finseq_3/T25')" onmouseout="rh()">FINSEQ_3:25</a></span>;<br/>
<span class="kw">hence </span><a NAME="E4:20_1_2"/>
( <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c4">j</font>) iff <font color="Maroon" title="c5">IT</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font> )
 <span class="kw">by</span> <span class="lab"><a class="ref" href="funct_7.html#D12" onmouseover="rs('funct_7/D12')" onmouseout="rh()">FUNCT_7:def 12</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>
