<?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#M2" title="HIDDEN:mode.2">set</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#M2" title="FINSEQ_1:mode.2">FinSequence</a> of <font color="Maroon" title="c1">D</font><br/>  for <font color="Olive" title="b2">i</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a> holds   <a href="finseq_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Olive" title="b1">f</font>,<font color="Olive" title="b2">i</font>,<font color="Olive" title="b2">i</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Olive" title="b1">f</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" 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">i</font> being   <a href="ordinal1.html#NM6" title="ORDINAL1:NM.6">Nat</a> holds   <a href="finseq_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Olive" title="b1">i</font>,<font color="Olive" title="b1">i</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font></span><br/><span class="kw">let </span><font color="Maroon" title="c3">i</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">  <a href="finseq_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c3">i</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font></span><br/>





<span class="kw">reconsider </span><font color="Maroon" title="c4">i</font> = <font color="Maroon" title="c3">i</font> 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>  <span class="kw">by</span> <span class="lab"><a class="ref" href="ordinal1.html#D12" onmouseover="rs('ordinal1/D12')" onmouseout="rh()">ORDINAL1:def 12</a></span>;<br/>
<div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="23_1"><span class="kw">per </span></a><a class="txt" onmouseover="tooltip.show('hs',this)" onmouseout="tooltip.hide()" onclick="hs(this)" href="javascript:()"><span class="kw">cases </span></a><span class="hide"><a NAME="E1:23_1"/>
( ( 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>  <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">i</font> or  not <font color="Maroon" title="c4">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>;<br/><div class="add"><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="23_1_1"><span class="kw">suppose </span></a><a NAME="E1:23_1_1"/>
( 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>  <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">  <a href="finseq_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c3">i</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font></span><br/><div class="add"><span class="kw">then </span> <a href="finseq_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c4">i</font>,<font color="Maroon" title="c4">i</font>) = 
 <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="c4">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">i</font></span>)</span>)</span>)</span>,<font color="Maroon" title="c4">i</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="c4">i</font></span>)</span>)
<span class="kw">by</span> <span class="lab"><a class="ref" href="finseq_7.html#D2" target="_self" onmouseover="rs('finseq_7/D2')" onmouseout="rh()">Def2</a></span>
<br/>.= 
 <a href="finseq_7.html#K1" title="FINSEQ_7:func.1">Replace</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c4">i</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="c4">i</font></span>)</span>)
<span class="kw">by</span> <span class="lab"><a class="ref" href="funct_7.html#T38" onmouseover="rs('funct_7/T38')" onmouseout="rh()">FUNCT_7:38</a></span>
;<br/><span class="kw">hence </span><a NAME="E3:23_1_1"/>
 <a href="finseq_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c3">i</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#T38" onmouseover="rs('funct_7/T38')" onmouseout="rh()">FUNCT_7:38</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><div><a class="txt" onclick="hsNdiv(this)" href="javascript:()" title="23_1_2"><span class="kw">suppose </span></a><a NAME="E1:23_1_2"/>
(  not 1 <a href="xxreal_0.html#R1" title="XXREAL_0:pred.1">&lt;=</a> <font color="Maroon" title="c4">i</font> or  not <font color="Maroon" title="c4">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> )
 ; <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_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c3">i</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c2">f</font></span><br/><div class="add"><span class="kw">hence </span><a NAME="E2:23_1_2"/>
 <a href="finseq_7.html#K2" title="FINSEQ_7:func.2">Swap</a> (<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">i</font>,<font color="Maroon" title="c3">i</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="finseq_7.html#D2" target="_self" onmouseover="rs('finseq_7/D2')" onmouseout="rh()">Def2</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></div><span class="kw">end;</span></div>

</div>
