YES
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http:/www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>H-Termination proof of ../tpdb/FP/full_haskell/FiniteMap_minFM_12.hs</title>
</head>
<body>
<BR><B>H-Termination</B> of the given <I>Haskell-Program with start terms</I> could successfully be <font color=#00ff00>proven</font>:<BR><BR><BR><BR><pre>&#8627 <B>HASKELL</B></pre><pre>  &#8627 CR</pre><BR><html>
<body>mainModule Main<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>
                   &nbsp;
                </td><td>((<FONT COLOR="#000088">FiniteMap.minFM</FONT> :: (<FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT>, <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">a</FONT>) =&gt; <FONT COLOR="#666600">FiniteMap.FiniteMap</FONT> (<FONT COLOR="#000088">a</FONT>,<FONT COLOR="#000088">b</FONT>) <FONT COLOR="#000088">c</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> (<FONT COLOR="#000088">a</FONT>,<FONT COLOR="#000088">b</FONT>)) :: (<FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">a</FONT>, <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT>) =&gt; <FONT COLOR="#666600">FiniteMap.FiniteMap</FONT> (<FONT COLOR="#000088">a</FONT>,<FONT COLOR="#000088">b</FONT>) <FONT COLOR="#000088">c</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> (<FONT COLOR="#000088">a</FONT>,<FONT COLOR="#000088">b</FONT>))</td>
</tr>
</table>
<br>module FiniteMap where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified Main<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">data <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT> = <FONT COLOR="#666600">EmptyFM&nbsp;</FONT>&nbsp;|&nbsp;<FONT COLOR="#666600">Branch&nbsp;</FONT><FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;<br>
<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top"><FONT COLOR="#000088">minFM</FONT> :: <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT> =&gt; <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">b</FONT> <FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> <FONT COLOR="#000088">b</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#666600">EmptyFM</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Nothing</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#666600">Branch</FONT> <FONT COLOR="#000088">key</FONT> _ _ <FONT COLOR="#000088">fm_l</FONT> _)&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top">case&nbsp;</td><td valign="top" colspan="3"><FONT COLOR="#000088">minFM</FONT> <FONT COLOR="#000088">fm_l</FONT> of</td>
</tr>
<tr>
<td>
    &nbsp;
    </td><td valign="top"><FONT COLOR="#666600">Nothing</FONT></td><td valign="top">-&gt;&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key</FONT></td>
</tr>
<tr>
<td>
    &nbsp;
    </td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT></td><td valign="top">-&gt;&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT></td>
</tr>
</table>
</td>
</tr>
</table>
<BR>
</td>
</tr>
</table>
<br>module Main where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>module Maybe where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Main<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>
</body>
</html>
<BR>Case Reductions:<BR>The following Case expression<BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top" >case&#160;</td><td valign="top" colspan="2"><font color=#000088>minFM</font>&#160;<font color=#000088>fm_l</font> of</td></tr><tr><td>&#160;</td><td valign="top"><font color=#666600>Nothing</font></td><td valign="top">&#160;&#8594;&#160;<font color=#666600>Just</font>&#160;<font color=#000088>key</font></td></tr>
<tr><td>&#160;</td><td valign="top"><font color=#666600>Just</font>&#160;<font color=#000088>key1</font></td><td valign="top">&#160;&#8594;&#160;<font color=#666600>Just</font>&#160;<font color=#000088>key1</font></td></tr>
</table></BLOCKQUOTE><BR>is transformed to<BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>minFM0</font>&#160;</td><td valign="top"><font color=#000088>key</font>&#160;<font color=#666600>Nothing</font></td><td valign="top">&#160;=&#160;<font color=#666600>Just</font>&#160;<font color=#000088>key</font></td></tr>
<tr><td valign="top"><font color=#000088>minFM0</font>&#160;</td><td valign="top"><font color=#000088>key</font>&#160;(<font color=#666600>Just</font>&#160;<font color=#000088>key1</font>)</td><td valign="top">&#160;=&#160;<font color=#666600>Just</font>&#160;<font color=#000088>key1</font></td></tr>
</table></BLOCKQUOTE><BR><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 CR</pre><pre>    &#8627 <B>HASKELL</B></pre><pre>      &#8627 BR</pre><BR><html>
<body>mainModule Main<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>
                   &nbsp;
                </td><td>((<FONT COLOR="#000088">FiniteMap.minFM</FONT> :: (<FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">c</FONT>, <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT>) =&gt; <FONT COLOR="#666600">FiniteMap.FiniteMap</FONT> (<FONT COLOR="#000088">c</FONT>,<FONT COLOR="#000088">b</FONT>) <FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> (<FONT COLOR="#000088">c</FONT>,<FONT COLOR="#000088">b</FONT>)) :: (<FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">c</FONT>, <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT>) =&gt; <FONT COLOR="#666600">FiniteMap.FiniteMap</FONT> (<FONT COLOR="#000088">c</FONT>,<FONT COLOR="#000088">b</FONT>) <FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> (<FONT COLOR="#000088">c</FONT>,<FONT COLOR="#000088">b</FONT>))</td>
</tr>
</table>
<br>module FiniteMap where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified Main<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">data <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT> = <FONT COLOR="#666600">EmptyFM&nbsp;</FONT>&nbsp;|&nbsp;<FONT COLOR="#666600">Branch&nbsp;</FONT><FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;<br>
<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top"><FONT COLOR="#000088">minFM</FONT> :: <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT> =&gt; <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">b</FONT> <FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> <FONT COLOR="#000088">b</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#666600">EmptyFM</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Nothing</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#666600">Branch</FONT> <FONT COLOR="#000088">key</FONT> _ _ <FONT COLOR="#000088">fm_l</FONT> _)&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">minFM0</FONT> <FONT COLOR="#000088">key</FONT> (<FONT COLOR="#000088">minFM</FONT> <FONT COLOR="#000088">fm_l</FONT>)</td>
</tr>
</table>
<BR>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">minFM0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">key</FONT>&nbsp;<FONT COLOR="#666600">Nothing</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">minFM0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">key</FONT>&nbsp;(<FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT>)&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT></td>
</tr>
</table>
<BR>
</td>
</tr>
</table>
<br>module Main where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>module Maybe where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Main<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>
</body>
</html>
<BR>Replaced joker patterns by fresh variables and removed binding patterns.<BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 CR</pre><pre>    &#8627 HASKELL</pre><pre>      &#8627 BR</pre><pre>        &#8627 <B>HASKELL</B></pre><pre>          &#8627 NumRed</pre><BR><html>
<body>mainModule Main<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>
                   &nbsp;
                </td><td>((<FONT COLOR="#000088">FiniteMap.minFM</FONT> :: (<FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT>, <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">c</FONT>) =&gt; <FONT COLOR="#666600">FiniteMap.FiniteMap</FONT> (<FONT COLOR="#000088">b</FONT>,<FONT COLOR="#000088">c</FONT>) <FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> (<FONT COLOR="#000088">b</FONT>,<FONT COLOR="#000088">c</FONT>)) :: (<FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT>, <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">c</FONT>) =&gt; <FONT COLOR="#666600">FiniteMap.FiniteMap</FONT> (<FONT COLOR="#000088">b</FONT>,<FONT COLOR="#000088">c</FONT>) <FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> (<FONT COLOR="#000088">b</FONT>,<FONT COLOR="#000088">c</FONT>))</td>
</tr>
</table>
<br>module FiniteMap where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified Main<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">data <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT> = <FONT COLOR="#666600">EmptyFM&nbsp;</FONT>&nbsp;|&nbsp;<FONT COLOR="#666600">Branch&nbsp;</FONT><FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;<br>
<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top"><FONT COLOR="#000088">minFM</FONT> :: <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT> =&gt; <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">b</FONT> <FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> <FONT COLOR="#000088">b</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#666600">EmptyFM</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Nothing</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#666600">Branch</FONT> <FONT COLOR="#000088">key</FONT> <FONT COLOR="#000088">vw</FONT> <FONT COLOR="#000088">vx</FONT> <FONT COLOR="#000088">fm_l</FONT> <FONT COLOR="#000088">vy</FONT>)&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">minFM0</FONT> <FONT COLOR="#000088">key</FONT> (<FONT COLOR="#000088">minFM</FONT> <FONT COLOR="#000088">fm_l</FONT>)</td>
</tr>
</table>
<BR>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">minFM0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">key</FONT>&nbsp;<FONT COLOR="#666600">Nothing</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">minFM0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">key</FONT>&nbsp;(<FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT>)&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT></td>
</tr>
</table>
<BR>
</td>
</tr>
</table>
<br>module Main where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>module Maybe where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Main<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>
</body>
</html>
<BR>Num Reduction:All numbers are transformed to thier corresponding representation with Succ, Pred and Zero.<BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 CR</pre><pre>    &#8627 HASKELL</pre><pre>      &#8627 BR</pre><pre>        &#8627 HASKELL</pre><pre>          &#8627 NumRed</pre><pre>            &#8627 <B>HASKELL</B></pre><pre>              &#8627 Narrow</pre><BR><html>
<body>mainModule Main<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>
                   &nbsp;
                </td><td>(<FONT COLOR="#000088">FiniteMap.minFM</FONT> :: (<FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">a</FONT>, <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">b</FONT>) =&gt; <FONT COLOR="#666600">FiniteMap.FiniteMap</FONT> (<FONT COLOR="#000088">b</FONT>,<FONT COLOR="#000088">a</FONT>) <FONT COLOR="#000088">c</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> (<FONT COLOR="#000088">b</FONT>,<FONT COLOR="#000088">a</FONT>))</td>
</tr>
</table>
<br>module FiniteMap where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified Main<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">data <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT> = <FONT COLOR="#666600">EmptyFM&nbsp;</FONT>&nbsp;|&nbsp;<FONT COLOR="#666600">Branch&nbsp;</FONT><FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;(<FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>)&nbsp;<br>
<br>
<br>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top"><FONT COLOR="#000088">minFM</FONT> :: <FONT COLOR="#666600">Ord</FONT> <FONT COLOR="#000088">a</FONT> =&gt; <FONT COLOR="#666600">FiniteMap</FONT> <FONT COLOR="#000088">a</FONT> <FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Maybe</FONT> <FONT COLOR="#000088">a</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#666600">EmptyFM</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Nothing</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">minFM</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#666600">Branch</FONT> <FONT COLOR="#000088">key</FONT> <FONT COLOR="#000088">vw</FONT> <FONT COLOR="#000088">vx</FONT> <FONT COLOR="#000088">fm_l</FONT> <FONT COLOR="#000088">vy</FONT>)&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">minFM0</FONT> <FONT COLOR="#000088">key</FONT> (<FONT COLOR="#000088">minFM</FONT> <FONT COLOR="#000088">fm_l</FONT>)</td>
</tr>
</table>
<BR>
</td>
</tr>
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">minFM0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">key</FONT>&nbsp;<FONT COLOR="#666600">Nothing</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">minFM0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">key</FONT>&nbsp;(<FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT>)&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#666600">Just</FONT> <FONT COLOR="#000088">key1</FONT></td>
</tr>
</table>
<BR>
</td>
</tr>
</table>
<br>module Main where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Maybe<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>module Maybe where<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>&nbsp;&nbsp;</td><td valign="top">import qualified FiniteMap<br>import qualified Main<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>
</body>
</html>
<BR>Haskell To QDPs<BR><textarea cols="80" rows="25">digraph dp_graph {
node [outthreshold=100, inthreshold=100];1[label="FiniteMap.minFM\n",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3];
3[label="FiniteMap.minFM wv3\n",fontsize=16,color="burlywood",shape="triangle"];15[label="wv3/FiniteMap.EmptyFM",fontsize=10,color="white",style="solid",shape="box"];3 -> 15[label="",style="solid", color="burlywood", weight=9];
15 -> 4[label="",style="solid", color="burlywood", weight=3];
16[label="wv3/FiniteMap.Branch wv30 wv31 wv32 wv33 wv34",fontsize=10,color="white",style="solid",shape="box"];3 -> 16[label="",style="solid", color="burlywood", weight=9];
16 -> 5[label="",style="solid", color="burlywood", weight=3];
4[label="FiniteMap.minFM FiniteMap.EmptyFM\n",fontsize=16,color="black",shape="box"];4 -> 6[label="",style="solid", color="black", weight=3];
5[label="FiniteMap.minFM (FiniteMap.Branch wv30 wv31 wv32 wv33 wv34)\n",fontsize=16,color="black",shape="box"];5 -> 7[label="",style="solid", color="black", weight=3];
6[label="Nothing\n",fontsize=16,color="green",shape="box"];7 -> 8[label="",style="dashed", color="red", weight=0];
7[label="FiniteMap.minFM0 wv30 (FiniteMap.minFM wv33)\n",fontsize=16,color="magenta"];7 -> 9[label="",style="dashed", color="magenta", weight=3];
9 -> 3[label="",style="dashed", color="red", weight=0];
9[label="FiniteMap.minFM wv33\n",fontsize=16,color="magenta"];9 -> 10[label="",style="dashed", color="magenta", weight=3];
8[label="FiniteMap.minFM0 wv30 wv4\n",fontsize=16,color="burlywood",shape="triangle"];19[label="wv4/Nothing",fontsize=10,color="white",style="solid",shape="box"];8 -> 19[label="",style="solid", color="burlywood", weight=9];
19 -> 11[label="",style="solid", color="burlywood", weight=3];
20[label="wv4/Just wv40",fontsize=10,color="white",style="solid",shape="box"];8 -> 20[label="",style="solid", color="burlywood", weight=9];
20 -> 12[label="",style="solid", color="burlywood", weight=3];
10[label="wv33\n",fontsize=16,color="green",shape="box"];11[label="FiniteMap.minFM0 wv30 Nothing\n",fontsize=16,color="black",shape="box"];11 -> 13[label="",style="solid", color="black", weight=3];
12[label="FiniteMap.minFM0 wv30 (Just wv40)\n",fontsize=16,color="black",shape="box"];12 -> 14[label="",style="solid", color="black", weight=3];
13[label="Just wv30\n",fontsize=16,color="green",shape="box"];14[label="Just wv40\n",fontsize=16,color="green",shape="box"];}
</textarea><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 CR</pre><pre>    &#8627 HASKELL</pre><pre>      &#8627 BR</pre><pre>        &#8627 HASKELL</pre><pre>          &#8627 NumRed</pre><pre>            &#8627 HASKELL</pre><pre>              &#8627 Narrow</pre><pre>                &#8627 <B>QDP</B></pre><pre>                  &#8627 QDPSizeChangeProof</pre><BR>Q DP problem:<BR>The TRS P consists of the following rules:<BR><BLOCKQUOTE><BR><FONT COLOR=#0000cc>new_minFM</font>(<FONT COLOR=#0000cc>Branch</font>(<FONT COLOR=#cc0000>wv30</font>, <FONT COLOR=#cc0000>wv31</font>, <FONT COLOR=#cc0000>wv32</font>, <FONT COLOR=#cc0000>wv33</font>, <FONT COLOR=#cc0000>wv34</font>), <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</font>, <FONT COLOR=#cc0000>bb</font>) &#8594; <FONT COLOR=#0000cc>new_minFM</font>(<FONT COLOR=#cc0000>wv33</font>, <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</font>, <FONT COLOR=#cc0000>bb</font>)</BLOCKQUOTE><BR>R is empty.<BR>Q is empty.<BR>We have to consider all minimal (P,Q,R)-chains.<BR>By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem. <P>From the DPs we obtained the following set of size-change graphs:
<UL><LI><FONT COLOR=#0000cc>new_minFM</font>(<FONT COLOR=#0000cc>Branch</font>(<FONT COLOR=#cc0000>wv30</font>, <FONT COLOR=#cc0000>wv31</font>, <FONT COLOR=#cc0000>wv32</font>, <FONT COLOR=#cc0000>wv33</font>, <FONT COLOR=#cc0000>wv34</font>), <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</font>, <FONT COLOR=#cc0000>bb</font>) &#8594; <FONT COLOR=#0000cc>new_minFM</font>(<FONT COLOR=#cc0000>wv33</font>, <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</font>, <FONT COLOR=#cc0000>bb</font>)<BR>The graph contains the following edges 1 > 1, 2 >= 2, 3 >= 3, 4 >= 4<P></LI></UL><BR><BR></body>


