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

<span class="kw">let </span><font color="Maroon" title="c1">x</font>, <font color="Maroon" title="c2">y</font> be    <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">A</font> being   <a href="exchsort.html#NM1" title="EXCHSORT:NM.1">array</a>  st <font color="Maroon" title="c1">x</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Olive" title="b1">A</font> &amp; <font color="Maroon" title="c2">y</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Olive" title="b1">A</font> holds <br/>(  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Olive" title="b1">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of <font color="Olive" title="b1">A</font> &amp; <font color="Olive" title="b1">A</font> is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Olive" title="b1">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) )</span><br/><span class="kw">let </span><font color="Maroon" title="c3">A</font> be   <a href="exchsort.html#NM1" title="EXCHSORT:NM.1">array</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">x</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Maroon" title="c3">A</font> &amp; <font color="Maroon" title="c2">y</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Maroon" title="c3">A</font> implies (  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of <font color="Maroon" title="c3">A</font> &amp; <font color="Maroon" title="c3">A</font> is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) ) )</span><br/>





<span class="kw">set </span><font color="Maroon" title="c4">X</font> =  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Maroon" title="c3">A</font>;<br/>
<span class="kw">assume </span><a NAME="E1:71"/><span class="lab"><font color="Green" title="E33">A1</font></span>: 
( <font color="Maroon" title="c1">x</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Maroon" title="c3">A</font> &amp; <font color="Maroon" title="c2">y</font> <a href="tarski.html#R2" title="TARSKI:pred.2">in</a>  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Maroon" title="c3">A</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="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of <font color="Maroon" title="c3">A</font> &amp; <font color="Maroon" title="c3">A</font> is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) )</span><br/>

<span class="kw">thus </span><a NAME="E2:71"/>
 <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of <font color="Maroon" title="c3">A</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="c3">A</font> is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>)</span><div><a class="txt" onmouseover="tooltip.show('hs2',this)" onmouseout="tooltip.hide()" onclick="hs2(this)" href="javascript:()" title="71_1"><span class="kw">proof </span></a><div class="add">

<span class="kw">reconsider </span><font color="Maroon" title="c5">X</font> =  <a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Maroon" title="c3">A</font> as   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>  <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:71"><span class="lab"><font color="Green" title="E33">A1</font></span></a></span>;<br/>
<span class="kw">reconsider </span><font color="Maroon" title="c6">x</font> = <font color="Maroon" title="c1">x</font>, <font color="Maroon" title="c7">y</font> = <font color="Maroon" title="c2">y</font> as    <a href="subset_1.html#M1" title="SUBSET_1:mode.1">Element</a> of <font color="Maroon" title="c5">X</font> <span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:71"><span class="lab"><font color="Green" title="E33">A1</font></span></a></span>;<br/>
<span class="kw">reconsider </span><font color="Maroon" title="c8">f</font> =  <a href="exchsort.html#K5" title="EXCHSORT:func.5">Swap</a> (<span class="p1">(<span class="default"><a href="partfun1.html#K6" title="PARTFUN1:func.6">id</a> <font color="Maroon" title="c5">X</font></span>)</span>,<font color="Maroon" title="c6">x</font>,<font color="Maroon" title="c7">y</font>) as   <a href="funct_2.html#NM2" title="FUNCT_2:NM.2">Permutation</a> of <span class="p1">(<span class="default"><a href="relat_1.html#NK1" title="RELAT_1:NK.1">dom</a> <font color="Maroon" title="c3">A</font></span>)</span> ;<br/>
<span class="kw">take </span>
<font color="Maroon" title="c8">f</font>
; <span class="comment"><font color="firebrick">:: according to </font></span><a class="ref" href="exchsort.html#D9" target="_self" onmouseover="rs('exchsort/D9')" onmouseout="rh()">EXCHSORT:def 9</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="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">A</font> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Maroon" title="c8">f</font></span><br/>

<span class="kw">thus </span><a NAME="E4:71_1"/>
 <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>) <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <font color="Maroon" title="c3">A</font> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Maroon" title="c8">f</font>
 <span class="kw">by</span> <span class="lab"><a class="ref" href="exchsort.html#T42" target="_self" onmouseover="rs('exchsort/T42')" onmouseout="rh()">Th42</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">hence </span><a NAME="E3:71"/>
<font color="Maroon" title="c3">A</font> is    <a href="exchsort.html#M1" title="EXCHSORT:mode.1">permutation</a> of  <a href="funct_7.html#K9" title="FUNCT_7:func.9">Swap</a> (<font color="Maroon" title="c3">A</font>,<font color="Maroon" title="c1">x</font>,<font color="Maroon" title="c2">y</font>)
 <span class="kw">by</span> <span class="lab"><a class="ref" href="exchsort.html#T39" target="_self" onmouseover="rs('exchsort/T39')" onmouseout="rh()">Th39</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>
