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

<b>let </b><font color="Maroon">i1</font> be   <a href="int_1.html#NM1">Integer</a>, <font color="Maroon">i2</font> be   <a href="int_1.html#NM1">Integer</a>;<br/><b>let </b><font color="Maroon">s</font> be    <a href="scm_1.html#M1" target="_self">State-consisting</a> of 0,0,0,<span class="p1"><a href="finseq_1.html#K12">&lt;*</a><span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><a href="ami_3.html#K15">dl.</a> 0</span>)</span> <a href="ami_3.html#K9">=0_goto</a> <span class="p3">(<span class="default"><a href="ami_3.html#K16">il.</a> 1</span>)</span></span>)</span></span><a href="finseq_1.html#K12">*&gt;</a></span> <a href="finseq_1.html#K8">^</a> <span class="p1"><a href="finseq_1.html#K12">&lt;*</a><span class="default"><span class="p2">(<span class="default"><a href="ami_1.html#K5">halt</a> <a href="ami_3.html#K1">SCM</a> </span>)</span></span><a href="finseq_1.html#K12">*&gt;</a></span>,<span class="p1"><a href="scm_1.html#K1" target="_self">&lt;*</a><span class="default"><font color="Maroon">i1</font></span><a href="scm_1.html#K1" target="_self">*&gt;</a></span> <a href="finseq_1.html#K8">^</a> <span class="p1"><a href="scm_1.html#K1" target="_self">&lt;*</a><span class="default"><font color="Maroon">i2</font></span><a href="scm_1.html#K1" target="_self">*&gt;</a></span>;<br/>



<a NAME="E1:36"/><i><font color="Green">E23</font></i>: 
(  <a href="ami_1.html#K6">IC</a> <font color="Maroon">s</font> <a href="hidden.html#R1">=</a>  <a href="ami_3.html#K16">il.</a> 0 &amp; <font color="Maroon">s</font> <a href="ami_1.html#K13">.</a> <span class="p1">(<span class="default"><a href="ami_3.html#K16">il.</a> 0</span>)</span> <a href="hidden.html#R1">=</a> <span class="p1">(<span class="default"><a href="ami_3.html#K15">dl.</a> 0</span>)</span> <a href="ami_3.html#K9">=0_goto</a> <span class="p1">(<span class="default"><a href="ami_3.html#K16">il.</a> 1</span>)</span> &amp; <font color="Maroon">s</font> <a href="ami_1.html#K13">.</a> <span class="p1">(<span class="default"><a href="ami_3.html#K16">il.</a> 1</span>)</span> <a href="hidden.html#R1">=</a>  <a href="ami_1.html#K5">halt</a> <a href="ami_3.html#K1">SCM</a>  &amp; <font color="Maroon">s</font> <a href="ami_3.html#K2">.</a> <span class="p1">(<span class="default"><a href="ami_3.html#K15">dl.</a> 0</span>)</span> <a href="hidden.html#R1">=</a> <font color="Maroon">i1</font> &amp; <font color="Maroon">s</font> <a href="ami_3.html#K2">.</a> <span class="p1">(<span class="default"><a href="ami_3.html#K15">dl.</a> 1</span>)</span> <a href="hidden.html#R1">=</a> <font color="Maroon">i2</font> )
 
<b>by </b><i/>;<br/>
<b>set </b><font color="Maroon">s1</font> = <span class="p1">(<span class="default"><a href="ami_1.html#K10">Computation</a> <font color="Maroon">s</font></span>)</span> <a href="ami_1.html#K11">.</a> <span class="p1">(<span class="default">0 <a href="nat_1.html#K1">+</a> 1</span>)</span>;<br/>
<a NAME="E2:36"/><i><font color="Green">E25</font></i>: 
<font color="Maroon">s</font> <a href="hidden.html#R1">=</a> <span class="p1">(<span class="default"><a href="ami_1.html#K10">Computation</a> <font color="Maroon">s</font></span>)</span> <a href="ami_1.html#K11">.</a> 0
 
<b>by </b><i><a class="ref" href="ami_1.html#D19">AMI_1:def 19</a></i>;<br/>
<a NAME="E3:36"/>
( <font color="Maroon">s</font> <a href="ami_3.html#K2">.</a> <span class="p1">(<span class="default"><a href="ami_3.html#K15">dl.</a> 0</span>)</span> <a href="hidden.html#R1">=</a> 0 or <font color="Maroon">s</font> <a href="ami_3.html#K2">.</a> <span class="p1">(<span class="default"><a href="ami_3.html#K15">dl.</a> 0</span>)</span> <a href="hidden.html#NR2" target="_self">&lt;&gt;</a> 0 )
 
;<br/>
<a NAME="E4:36"/><b>then </b><i><font color="Green">E41</font></i>: 
 <a href="ami_1.html#K6">IC</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="ami_1.html#K10">Computation</a> <font color="Maroon">s</font></span>)</span> <a href="ami_1.html#K11">.</a> <span class="p2">(<span class="default">0 <a href="nat_1.html#K1">+</a> 1</span>)</span></span>)</span> <a href="hidden.html#R1">=</a>  <a href="ami_3.html#K16">il.</a> <span class="p1">(<span class="default">0 <a href="nat_1.html#K1">+</a> 1</span>)</span>
 
<b>by </b><i><a class="ref" href="scm_1.html#T7" target="_self">Th7</a>, , <a class="ref" href="scm_1.html#T3" target="_self">Th3</a></i>;<br/>
<b>hence </b><a NAME="E5:36"/>
<font color="Maroon">s</font> is <a href="ami_1.html#V9">halting</a>
 <b>by </b><i><a class="ref" href="scm_1.html#T7" target="_self">Th7</a>, </i>;<br/>

<a NAME="E6:36"/>
 <a href="ami_3.html#K16">il.</a> 0 <a href="hidden.html#NR2" target="_self">&lt;&gt;</a>  <a href="ami_3.html#K16">il.</a> 1
 
<b>by </b><i><a class="ref" href="ami_3.html#T53">AMI_3:53</a></i>;<br/>
<b>hence </b><a NAME="E7:36"/>
 <a href="scm_1.html#K2" target="_self">Complexity</a> <font color="Maroon">s</font> <a href="hidden.html#R1">=</a> 1
 <b>by </b><i><a class="ref" href="scm_1.html#T7" target="_self">Th7</a>, , , </i>;<br/>

<b>let </b><font color="Maroon">d</font> be    <a href="ami_3.html#M1">Data-Location</a> ;<br/>

<b>thus </b><span class="p1">(<span class="default"><a href="ami_1.html#K12">Result</a> <font color="Maroon">s</font></span>)</span> <a href="ami_3.html#K2">.</a> <font color="Maroon">d</font> = 
<span class="p1">(<span class="default"><span class="p2">(<span class="default"><a href="ami_1.html#K10">Computation</a> <font color="Maroon">s</font></span>)</span> <a href="ami_1.html#K11">.</a> <span class="p2">(<span class="default">0 <a href="nat_1.html#K1">+</a> 1</span>)</span></span>)</span> <a href="ami_3.html#K2">.</a> <font color="Maroon">d</font>
<b>by </b><i><a class="ref" href="scm_1.html#T7" target="_self">Th7</a>, , </i>
<br/>.= 
<font color="Maroon">s</font> <a href="ami_3.html#K2">.</a> <font color="Maroon">d</font>
<b>by </b><i><a class="ref" href="scm_1.html#T7" target="_self">Th7</a>, , <a class="ref" href="scm_1.html#T3" target="_self">Th3</a></i>
;<br/>


</div>
