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

<span class="kw">let </span><font color="Maroon" title="c1">S</font> be  non  <a href="struct_0.html#V11" title="STRUCT_0:attr.11">void</a>  <a href="catalg_1.html#NM1" title="CATALG_1:NM.1">Signature</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> for <font color="Olive" title="b1">f</font>, <font color="Olive" title="b2">g</font> being  <a href="funct_1.html#NM1" title="FUNCT_1:NM.1">Function</a>  st <font color="Olive" title="b1">f</font>,<font color="Olive" title="b2">g</font> <a href="algspec1.html#R1" title="ALGSPEC1:pred.1">form_a_replacement_in</a> <font color="Maroon" title="c1">S</font> holds <br/>for <font color="Olive" title="b3">f9</font> being  <a href="funct_2.html#NM1" title="FUNCT_2:NM.1">Function</a> of the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font>,the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Olive" title="b1">f</font>,<font color="Olive" title="b2">g</font></span>)</span>  st <font color="Olive" title="b3">f9</font> <a href="pboole.html#R6" title="PBOOLE:pred.6">=</a> the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Olive" title="b1">f</font> holds <br/>for <font color="Olive" title="b4">g9</font> being   <a href="algspec1.html#M1" title="ALGSPEC1:mode.1">rng-retract</a> of the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Olive" title="b2">g</font> holds  the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Olive" title="b1">f</font>,<font color="Olive" title="b2">g</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Olive" title="b3">f9</font> <a href="lang1.html#K12" title="LANG1:func.12">*</a> </span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <font color="Maroon" title="c1">S</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Olive" title="b4">g9</font></span><br/><span class="kw">let </span><font color="Maroon" title="c2">f</font>, <font color="Maroon" title="c3">g</font> be   <a href="funct_1.html#NM1" title="FUNCT_1:NM.1">Function</a>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> ( <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font> <a href="algspec1.html#R1" title="ALGSPEC1:pred.1">form_a_replacement_in</a> <font color="Maroon" title="c1">S</font> implies for <font color="Olive" title="b1">f9</font> being  <a href="funct_2.html#NM1" title="FUNCT_2:NM.1">Function</a> of the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font>,the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span>  st <font color="Olive" title="b1">f9</font> <a href="pboole.html#R6" title="PBOOLE:pred.6">=</a> the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c2">f</font> holds <br/>for <font color="Olive" title="b2">g9</font> being   <a href="algspec1.html#M1" title="ALGSPEC1:mode.1">rng-retract</a> of the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font> holds  the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Olive" title="b1">f9</font> <a href="lang1.html#K12" title="LANG1:func.12">*</a> </span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <font color="Maroon" title="c1">S</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Olive" title="b2">g9</font> )</span><br/>





<span class="kw">set </span><font color="Maroon" title="c4">ff</font> = the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c2">f</font>;<br/>
<span class="kw">set </span><font color="Maroon" title="c5">gg</font> = the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font>;<br/>
<span class="kw">set </span><font color="Maroon" title="c6">T</font> = <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font>;<br/>
<span class="kw">assume </span><a NAME="E1:41"/><span class="lab"><font color="Green" title="E32">A1</font></span>: 
<font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font> <a href="algspec1.html#R1" title="ALGSPEC1:pred.1">form_a_replacement_in</a> <font color="Maroon" title="c1">S</font>
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> for <font color="Olive" title="b1">f9</font> being  <a href="funct_2.html#NM1" title="FUNCT_2:NM.1">Function</a> of the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font>,the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span>  st <font color="Olive" title="b1">f9</font> <a href="pboole.html#R6" title="PBOOLE:pred.6">=</a> the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c2">f</font> holds <br/>for <font color="Olive" title="b2">g9</font> being   <a href="algspec1.html#M1" title="ALGSPEC1:mode.1">rng-retract</a> of the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font> holds  the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Olive" title="b1">f9</font> <a href="lang1.html#K12" title="LANG1:func.12">*</a> </span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <font color="Maroon" title="c1">S</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Olive" title="b2">g9</font></span><br/>

<a NAME="E2:41"/><span class="kw">then </span><span class="lab"><font color="Green" title="E33">A2</font></span>: 
the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c2">f</font>,the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font> <a href="pua2mss1.html#R3" title="PUA2MSS1:pred.3">form_morphism_between</a> <font color="Maroon" title="c1">S</font>,<font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font>
 
<span class="kw">by</span> <span class="lab"><a class="ref" href="algspec1.html#D4" target="_self" title="ALGSPEC1:def.4">Def4</a></span>;<br/>
<span class="kw">let </span><font color="Maroon" title="c7">f9</font> be   <a href="funct_2.html#NM1" title="FUNCT_2:NM.1">Function</a> of the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font>,the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> ( <font color="Maroon" title="c7">f9</font> <a href="pboole.html#R6" title="PBOOLE:pred.6">=</a> the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c2">f</font> implies for <font color="Olive" title="b1">g9</font> being   <a href="algspec1.html#M1" title="ALGSPEC1:mode.1">rng-retract</a> of the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font> holds  the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c7">f9</font> <a href="lang1.html#K12" title="LANG1:func.12">*</a> </span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <font color="Maroon" title="c1">S</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Olive" title="b1">g9</font> )</span><br/>

<span class="kw">assume </span><a NAME="E3:41"/><span class="lab"><font color="Green" title="E34">A3</font></span>: 
<font color="Maroon" title="c7">f9</font> <a href="pboole.html#R6" title="PBOOLE:pred.6">=</a> the <a href="struct_0.html#U1" title="STRUCT_0:sel.1">carrier</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c2">f</font>
 ; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> for <font color="Olive" title="b1">g9</font> being   <a href="algspec1.html#M1" title="ALGSPEC1:mode.1">rng-retract</a> of the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font> holds  the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c7">f9</font> <a href="lang1.html#K12" title="LANG1:func.12">*</a> </span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <font color="Maroon" title="c1">S</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Olive" title="b1">g9</font></span><br/>

<span class="kw">let </span><font color="Maroon" title="c8">g9</font> be    <a href="algspec1.html#M1" title="ALGSPEC1:mode.1">rng-retract</a> of the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font>; <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c7">f9</font> <a href="lang1.html#K12" title="LANG1:func.12">*</a> </span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <font color="Maroon" title="c1">S</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Maroon" title="c8">g9</font></span><br/>

<a NAME="E4:41"/>
the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="relat_1.html#K2" title="RELAT_1:func.2">rng</a> <span class="p1">(<span class="default">the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font></span>)</span>
 
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E1:41"><span class="lab"><font color="Green" title="E32">A1</font></span></a>, <a class="ref" href="algspec1.html#D4" target="_self" title="ALGSPEC1:def.4">Def4</a></span>;<br/>
<span class="kw">hence </span>the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> = 
the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> <span class="p1">(<span class="default"><a href="partfun1.html#K6" title="PARTFUN1:func.6">id</a> <span class="p2">(<span class="default"><a href="relat_1.html#K2" title="RELAT_1:func.2">rng</a> <span class="p3">(<span class="default">the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font></span>)</span></span>)</span></span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="funct_2.html#T23" title="FUNCT_2:th.23">FUNCT_2:23</a></span>
<br/>.= 
the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p1">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default">the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Maroon" title="c8">g9</font></span>)</span>
<span class="kw">by</span> <span class="lab"><a class="ref" href="algspec1.html#D2" target="_self" title="ALGSPEC1:def.2">Def2</a></span>
<br/>.= 
<span class="p1">(<span class="default">the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <span class="p2">(<span class="default"><font color="Maroon" title="c1">S</font> <a href="algspec1.html#K2" title="ALGSPEC1:func.2">with-replacement</a> <font color="Maroon" title="c2">f</font>,<font color="Maroon" title="c3">g</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <span class="p2">(<span class="default">the <a href="struct_0.html#U4" title="STRUCT_0:sel.4">carrier'</a> of <font color="Maroon" title="c1">S</font> <a href="algspec1.html#K1" title="ALGSPEC1:func.1">-indexing</a> <font color="Maroon" title="c3">g</font></span>)</span></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Maroon" title="c8">g9</font>
<span class="kw">by</span> <span class="lab"><a class="ref" href="relat_1.html#T55" title="RELAT_1:th.55">RELAT_1:55</a></span>
<br/>.= 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Maroon" title="c7">f9</font> <a href="lang1.html#K12" title="LANG1:func.12">*</a> </span>)</span> <a href="partfun1.html#K1" title="PARTFUN1:func.1">*</a> the <a href="msualg_1.html#U1" title="MSUALG_1:sel.1">Arity</a> of <font color="Maroon" title="c1">S</font></span>)</span> <a href="funct_1.html#NK3" title="FUNCT_1:NK.3">*</a> <font color="Maroon" title="c8">g9</font>
<span class="kw">by</span> <span class="lab"><a class="txt" href="#E2:41"><span class="lab"><font color="Green" title="E33">A2</font></span></a>, <a class="txt" href="#E3:41"><span class="lab"><font color="Green" title="E34">A3</font></span></a>, <a class="ref" href="algspec1.html#T36" target="_self" title="ALGSPEC1:th.36">Th36</a></span>
;<br/> <a class="txt" onclick="hs(this)" href="javascript:()"><span class="comment"><font color="Red">::  thesis: </font></span></a><span class="hide"> verum</span><br/>


</div>
