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/List_genericIndex_1.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 BR</pre><BR><html>
<body>mainModule Main<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>
                   &nbsp;
                </td><td>((<FONT COLOR="#000088">List.genericIndex</FONT> :: [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>) :: [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>)</td>
</tr>
</table>
<br>module List 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"><FONT COLOR="#000088">genericIndex</FONT> :: <FONT COLOR="#666600">Integral</FONT> <FONT COLOR="#000088">b</FONT> =&gt; [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;_)&nbsp;0&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">x</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(_&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>)&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;</td><td valign="top"></td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top">&nbsp;|&nbsp;</td><td valign="top"><FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">&gt;</FONT>&nbsp;0</td><td valign="top">&nbsp;=&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT> <FONT COLOR="#000088">xs</FONT> (<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">-</FONT>&nbsp;1)</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">&nbsp;|&nbsp;</td><td valign="top"><FONT COLOR="#000088">otherwise</FONT></td><td valign="top">&nbsp;=&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</FONT></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">_&nbsp;_&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</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 List<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 List<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 BR</pre><pre>    &#8627 <B>HASKELL</B></pre><pre>      &#8627 COR</pre><BR><html>
<body>mainModule Main<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>
                   &nbsp;
                </td><td>((<FONT COLOR="#000088">List.genericIndex</FONT> :: [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>) :: [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>)</td>
</tr>
</table>
<br>module List 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"><FONT COLOR="#000088">genericIndex</FONT> :: <FONT COLOR="#666600">Integral</FONT> <FONT COLOR="#000088">a</FONT> =&gt; [<FONT COLOR="#000088">b</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>)&nbsp;0&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">x</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>)&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;</td><td valign="top"></td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top">&nbsp;|&nbsp;</td><td valign="top"><FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">&gt;</FONT>&nbsp;0</td><td valign="top">&nbsp;=&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT> <FONT COLOR="#000088">xs</FONT> (<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">-</FONT>&nbsp;1)</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top">&nbsp;|&nbsp;</td><td valign="top"><FONT COLOR="#000088">otherwise</FONT></td><td valign="top">&nbsp;=&nbsp;</td><td valign="top">
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</FONT></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vy</FONT>&nbsp;<FONT COLOR="#000088">vz</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</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 List<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 List<br>import qualified Main<br>import qualified Prelude<br>
<br>
</td>
</tr>
</table>
<br>
</body>
</html>
<BR>Cond Reductions:<BR>The following Function with conditions<BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>genericIndex</font>&#160;</td><td valign="top">(<font color=#000088>x</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>vw</font>)&#160;0</td><td valign="top">&#160;=&#160;<font color=#000088>x</font></td></tr>
<tr><td valign="top"><font color=#000088>genericIndex</font>&#160;</td><td valign="top">(<font color=#000088>vx</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>xs</font>)&#160;<font color=#000088>n</font></td><td valign="top"><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top">&#160;|&#160;</td><td valign="top"><font color=#000088>n</font>&#160;<font color=#000088>></font>&#160;0</td><td valign="bottom"><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top">&#160;=&#160;</td><td valign="top"><font color=#000088>genericIndex</font>&#160;<font color=#000088>xs</font>&#160;(<font color=#000088>n</font>&#160;<font color=#000088>-</font>&#160;1)</td></tr>
</table></td></tr>
<tr><td valign="top">&#160;|&#160;</td><td valign="top"><font color=#000088>otherwise</font></td><td valign="bottom"><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top">&#160;=&#160;</td><td valign="top"><font color=#000088>error</font>&#160;<font color=#666600>[]</font></td></tr>
</table></td></tr>
</table></td></tr>
<tr><td valign="top"><font color=#000088>genericIndex</font>&#160;</td><td valign="top"><font color=#000088>vy</font>&#160;<font color=#000088>vz</font></td><td valign="top">&#160;=&#160;<font color=#000088>error</font>&#160;<font color=#666600>[]</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>genericIndex</font>&#160;</td><td valign="top">(<font color=#000088>x</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>vw</font>)&#160;<font color=#000088>xw</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex5</font>&#160;(<font color=#000088>x</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>vw</font>)&#160;<font color=#000088>xw</font></td></tr>
<tr><td valign="top"><font color=#000088>genericIndex</font>&#160;</td><td valign="top">(<font color=#000088>vx</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>xs</font>)&#160;<font color=#000088>n</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex3</font>&#160;(<font color=#000088>vx</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>xs</font>)&#160;<font color=#000088>n</font></td></tr>
<tr><td valign="top"><font color=#000088>genericIndex</font>&#160;</td><td valign="top"><font color=#000088>vy</font>&#160;<font color=#000088>vz</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex0</font>&#160;<font color=#000088>vy</font>&#160;<font color=#000088>vz</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>genericIndex0</font>&#160;</td><td valign="top"><font color=#000088>vy</font>&#160;<font color=#000088>vz</font></td><td valign="top">&#160;=&#160;<font color=#000088>error</font>&#160;<font color=#666600>[]</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>genericIndex2</font>&#160;</td><td valign="top"><font color=#000088>vx</font>&#160;<font color=#000088>xs</font>&#160;<font color=#000088>n</font>&#160;<font color=#666600>True</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex</font>&#160;<font color=#000088>xs</font>&#160;(<font color=#000088>n</font>&#160;<font color=#000088>-</font>&#160;1)</td></tr>
<tr><td valign="top"><font color=#000088>genericIndex2</font>&#160;</td><td valign="top"><font color=#000088>vx</font>&#160;<font color=#000088>xs</font>&#160;<font color=#000088>n</font>&#160;<font color=#666600>False</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex1</font>&#160;<font color=#000088>vx</font>&#160;<font color=#000088>xs</font>&#160;<font color=#000088>n</font>&#160;<font color=#000088>otherwise</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>genericIndex1</font>&#160;</td><td valign="top"><font color=#000088>vx</font>&#160;<font color=#000088>xs</font>&#160;<font color=#000088>n</font>&#160;<font color=#666600>True</font></td><td valign="top">&#160;=&#160;<font color=#000088>error</font>&#160;<font color=#666600>[]</font></td></tr>
<tr><td valign="top"><font color=#000088>genericIndex1</font>&#160;</td><td valign="top"><font color=#000088>vx</font>&#160;<font color=#000088>xs</font>&#160;<font color=#000088>n</font>&#160;<font color=#666600>False</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex0</font>&#160;(<font color=#000088>vx</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>xs</font>)&#160;<font color=#000088>n</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>genericIndex3</font>&#160;</td><td valign="top">(<font color=#000088>vx</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>xs</font>)&#160;<font color=#000088>n</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex2</font>&#160;<font color=#000088>vx</font>&#160;<font color=#000088>xs</font>&#160;<font color=#000088>n</font>&#160;(<font color=#000088>n</font>&#160;<font color=#000088>></font>&#160;0)</td></tr>
<tr><td valign="top"><font color=#000088>genericIndex3</font>&#160;</td><td valign="top"><font color=#000088>wz</font>&#160;<font color=#000088>xu</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex0</font>&#160;<font color=#000088>wz</font>&#160;<font color=#000088>xu</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>genericIndex4</font>&#160;</td><td valign="top"><font color=#666600>True</font>&#160;(<font color=#000088>x</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>vw</font>)&#160;<font color=#000088>xw</font></td><td valign="top">&#160;=&#160;<font color=#000088>x</font></td></tr>
<tr><td valign="top"><font color=#000088>genericIndex4</font>&#160;</td><td valign="top"><font color=#000088>xx</font>&#160;<font color=#000088>xy</font>&#160;<font color=#000088>xz</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex3</font>&#160;<font color=#000088>xy</font>&#160;<font color=#000088>xz</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>genericIndex5</font>&#160;</td><td valign="top">(<font color=#000088>x</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>vw</font>)&#160;<font color=#000088>xw</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex4</font>&#160;(<font color=#000088>xw</font>&#160;<font color=#000088>==</font>&#160;0)&#160;(<font color=#000088>x</font>&#160;<font color=#666600>:</font>&#160;<font color=#000088>vw</font>)&#160;<font color=#000088>xw</font></td></tr>
<tr><td valign="top"><font color=#000088>genericIndex5</font>&#160;</td><td valign="top"><font color=#000088>yu</font>&#160;<font color=#000088>yv</font></td><td valign="top">&#160;=&#160;<font color=#000088>genericIndex3</font>&#160;<font color=#000088>yu</font>&#160;<font color=#000088>yv</font></td></tr>
</table></BLOCKQUOTE><BR>The following Function with conditions<BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>undefined</font>&#160;</td><td valign="top"></td><td valign="top"><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top">&#160;|&#160;</td><td valign="top"><font color=#666600>False</font></td><td valign="bottom"><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top">&#160;=&#160;</td><td valign="top"><font color=#000088>undefined</font></td></tr>
</table></td></tr>
</table></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>undefined</font>&#160;</td><td valign="top"></td><td valign="top">&#160;=&#160;<font color=#000088>undefined1</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>undefined0</font>&#160;</td><td valign="top"><font color=#666600>True</font></td><td valign="top">&#160;=&#160;<font color=#000088>undefined</font></td></tr>
</table></BLOCKQUOTE><BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>undefined1</font>&#160;</td><td valign="top"></td><td valign="top">&#160;=&#160;<font color=#000088>undefined0</font>&#160;<font color=#666600>False</font></td></tr>
</table></BLOCKQUOTE><BR><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 BR</pre><pre>    &#8627 HASKELL</pre><pre>      &#8627 COR</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">List.genericIndex</FONT> :: [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>) :: [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>)</td>
</tr>
</table>
<br>module List 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"><FONT COLOR="#000088">genericIndex</FONT> :: <FONT COLOR="#666600">Integral</FONT> <FONT COLOR="#000088">b</FONT> =&gt; [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>)&nbsp;<FONT COLOR="#000088">xw</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex5</FONT> (<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>) <FONT COLOR="#000088">xw</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>)&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex3</FONT> (<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>) <FONT COLOR="#000088">n</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vy</FONT>&nbsp;<FONT COLOR="#000088">vz</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex0</FONT> <FONT COLOR="#000088">vy</FONT> <FONT COLOR="#000088">vz</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">genericIndex0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vy</FONT>&nbsp;<FONT COLOR="#000088">vz</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</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">genericIndex1</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">True</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex1</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">False</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex0</FONT> (<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>) <FONT COLOR="#000088">n</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">genericIndex2</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">True</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex</FONT> <FONT COLOR="#000088">xs</FONT> (<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">-</FONT>&nbsp;1)</td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex2</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">False</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex1</FONT> <FONT COLOR="#000088">vx</FONT> <FONT COLOR="#000088">xs</FONT> <FONT COLOR="#000088">n</FONT> <FONT COLOR="#000088">otherwise</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">genericIndex3</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>)&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex2</FONT> <FONT COLOR="#000088">vx</FONT> <FONT COLOR="#000088">xs</FONT> <FONT COLOR="#000088">n</FONT> (<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">&gt;</FONT>&nbsp;0)</td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex3</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">wz</FONT>&nbsp;<FONT COLOR="#000088">xu</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex0</FONT> <FONT COLOR="#000088">wz</FONT> <FONT COLOR="#000088">xu</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">genericIndex4</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#666600">True</FONT>&nbsp;(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>)&nbsp;<FONT COLOR="#000088">xw</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">x</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex4</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">xx</FONT>&nbsp;<FONT COLOR="#000088">xy</FONT>&nbsp;<FONT COLOR="#000088">xz</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex3</FONT> <FONT COLOR="#000088">xy</FONT> <FONT COLOR="#000088">xz</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">genericIndex5</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>)&nbsp;<FONT COLOR="#000088">xw</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex4</FONT> (<FONT COLOR="#000088">xw</FONT>&nbsp;<FONT COLOR="#000088">==</FONT>&nbsp;0) (<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>) <FONT COLOR="#000088">xw</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex5</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">yu</FONT>&nbsp;<FONT COLOR="#000088">yv</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex3</FONT> <FONT COLOR="#000088">yu</FONT> <FONT COLOR="#000088">yv</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 List<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 List<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 BR</pre><pre>    &#8627 HASKELL</pre><pre>      &#8627 COR</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">List.genericIndex</FONT> :: [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#666600">Int</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>)</td>
</tr>
</table>
<br>module List 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"><FONT COLOR="#000088">genericIndex</FONT> :: <FONT COLOR="#666600">Integral</FONT> <FONT COLOR="#000088">b</FONT> =&gt; [<FONT COLOR="#000088">a</FONT>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">b</FONT>&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;<FONT COLOR="#000088">a</FONT>
<br>
<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>)&nbsp;<FONT COLOR="#000088">xw</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex5</FONT> (<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>) <FONT COLOR="#000088">xw</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>)&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex3</FONT> (<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>) <FONT COLOR="#000088">n</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vy</FONT>&nbsp;<FONT COLOR="#000088">vz</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex0</FONT> <FONT COLOR="#000088">vy</FONT> <FONT COLOR="#000088">vz</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">genericIndex0</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vy</FONT>&nbsp;<FONT COLOR="#000088">vz</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</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">genericIndex1</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">True</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">error</FONT> <FONT COLOR="#666600">[]</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex1</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">False</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex0</FONT> (<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>) <FONT COLOR="#000088">n</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">genericIndex2</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">True</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex</FONT> <FONT COLOR="#000088">xs</FONT> (<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">-</FONT>&nbsp;<FONT COLOR="#000088">fromInt</FONT> (<FONT COLOR="#666600">Pos</FONT> (<FONT COLOR="#666600">Succ</FONT> <FONT COLOR="#666600">Zero</FONT>)))</td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex2</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#666600">False</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex1</FONT> <FONT COLOR="#000088">vx</FONT> <FONT COLOR="#000088">xs</FONT> <FONT COLOR="#000088">n</FONT> <FONT COLOR="#000088">otherwise</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">genericIndex3</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">vx</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">xs</FONT>)&nbsp;<FONT COLOR="#000088">n</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex2</FONT> <FONT COLOR="#000088">vx</FONT> <FONT COLOR="#000088">xs</FONT> <FONT COLOR="#000088">n</FONT> (<FONT COLOR="#000088">n</FONT>&nbsp;<FONT COLOR="#000088">&gt;</FONT>&nbsp;<FONT COLOR="#000088">fromInt</FONT> (<FONT COLOR="#666600">Pos</FONT> <FONT COLOR="#666600">Zero</FONT>))</td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex3</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">wz</FONT>&nbsp;<FONT COLOR="#000088">xu</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex0</FONT> <FONT COLOR="#000088">wz</FONT> <FONT COLOR="#000088">xu</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">genericIndex4</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#666600">True</FONT>&nbsp;(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>)&nbsp;<FONT COLOR="#000088">xw</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">x</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex4</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">xx</FONT>&nbsp;<FONT COLOR="#000088">xy</FONT>&nbsp;<FONT COLOR="#000088">xz</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex3</FONT> <FONT COLOR="#000088">xy</FONT> <FONT COLOR="#000088">xz</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">genericIndex5</FONT>&nbsp;</td><td valign="top">(<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>)&nbsp;<FONT COLOR="#000088">xw</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex4</FONT> (<FONT COLOR="#000088">xw</FONT>&nbsp;<FONT COLOR="#000088">==</FONT>&nbsp;<FONT COLOR="#000088">fromInt</FONT> (<FONT COLOR="#666600">Pos</FONT> <FONT COLOR="#666600">Zero</FONT>)) (<FONT COLOR="#000088">x</FONT>&nbsp;<FONT COLOR="#666600">:</FONT>&nbsp;<FONT COLOR="#000088">vw</FONT>) <FONT COLOR="#000088">xw</FONT></td>
</tr>
<tr>
<td valign="top"><FONT COLOR="#000088">genericIndex5</FONT>&nbsp;</td><td valign="top"><FONT COLOR="#000088">yu</FONT>&nbsp;<FONT COLOR="#000088">yv</FONT>&nbsp;</td><td valign="top">=&nbsp;</td><td valign="top"><FONT COLOR="#000088">genericIndex3</FONT> <FONT COLOR="#000088">yu</FONT> <FONT COLOR="#000088">yv</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 List<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 List<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="List.genericIndex\n",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3];
3[label="List.genericIndex yw3\n",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3];
4[label="List.genericIndex yw3 yw4\n",fontsize=16,color="burlywood",shape="triangle"];58[label="yw3/yw30 : yw31",fontsize=10,color="white",style="solid",shape="box"];4 -> 58[label="",style="solid", color="burlywood", weight=9];
58 -> 5[label="",style="solid", color="burlywood", weight=3];
59[label="yw3/[]",fontsize=10,color="white",style="solid",shape="box"];4 -> 59[label="",style="solid", color="burlywood", weight=9];
59 -> 6[label="",style="solid", color="burlywood", weight=3];
5[label="List.genericIndex (yw30 : yw31) yw4\n",fontsize=16,color="black",shape="box"];5 -> 7[label="",style="solid", color="black", weight=3];
6[label="List.genericIndex [] yw4\n",fontsize=16,color="black",shape="box"];6 -> 8[label="",style="solid", color="black", weight=3];
7[label="List.genericIndex5 (yw30 : yw31) yw4\n",fontsize=16,color="black",shape="box"];7 -> 9[label="",style="solid", color="black", weight=3];
8[label="List.genericIndex0 [] yw4\n",fontsize=16,color="black",shape="box"];8 -> 10[label="",style="solid", color="black", weight=3];
9[label="List.genericIndex4 (yw4 == fromInt (Pos Zero)) (yw30 : yw31) yw4\n",fontsize=16,color="black",shape="box"];9 -> 11[label="",style="solid", color="black", weight=3];
10[label="error []\n",fontsize=16,color="black",shape="triangle"];10 -> 12[label="",style="solid", color="black", weight=3];
11[label="List.genericIndex4 (primEqInt yw4 (fromInt (Pos Zero))) (yw30 : yw31) yw4\n",fontsize=16,color="burlywood",shape="box"];60[label="yw4/Pos yw40",fontsize=10,color="white",style="solid",shape="box"];11 -> 60[label="",style="solid", color="burlywood", weight=9];
60 -> 13[label="",style="solid", color="burlywood", weight=3];
61[label="yw4/Neg yw40",fontsize=10,color="white",style="solid",shape="box"];11 -> 61[label="",style="solid", color="burlywood", weight=9];
61 -> 14[label="",style="solid", color="burlywood", weight=3];
12[label="error []\n",fontsize=16,color="red",shape="box"];13[label="List.genericIndex4 (primEqInt (Pos yw40) (fromInt (Pos Zero))) (yw30 : yw31) (Pos yw40)\n",fontsize=16,color="burlywood",shape="box"];62[label="yw40/Succ yw400",fontsize=10,color="white",style="solid",shape="box"];13 -> 62[label="",style="solid", color="burlywood", weight=9];
62 -> 15[label="",style="solid", color="burlywood", weight=3];
63[label="yw40/Zero",fontsize=10,color="white",style="solid",shape="box"];13 -> 63[label="",style="solid", color="burlywood", weight=9];
63 -> 16[label="",style="solid", color="burlywood", weight=3];
14[label="List.genericIndex4 (primEqInt (Neg yw40) (fromInt (Pos Zero))) (yw30 : yw31) (Neg yw40)\n",fontsize=16,color="burlywood",shape="box"];64[label="yw40/Succ yw400",fontsize=10,color="white",style="solid",shape="box"];14 -> 64[label="",style="solid", color="burlywood", weight=9];
64 -> 17[label="",style="solid", color="burlywood", weight=3];
65[label="yw40/Zero",fontsize=10,color="white",style="solid",shape="box"];14 -> 65[label="",style="solid", color="burlywood", weight=9];
65 -> 18[label="",style="solid", color="burlywood", weight=3];
15[label="List.genericIndex4 (primEqInt (Pos (Succ yw400)) (fromInt (Pos Zero))) (yw30 : yw31) (Pos (Succ yw400))\n",fontsize=16,color="black",shape="box"];15 -> 19[label="",style="solid", color="black", weight=3];
16[label="List.genericIndex4 (primEqInt (Pos Zero) (fromInt (Pos Zero))) (yw30 : yw31) (Pos Zero)\n",fontsize=16,color="black",shape="box"];16 -> 20[label="",style="solid", color="black", weight=3];
17[label="List.genericIndex4 (primEqInt (Neg (Succ yw400)) (fromInt (Pos Zero))) (yw30 : yw31) (Neg (Succ yw400))\n",fontsize=16,color="black",shape="box"];17 -> 21[label="",style="solid", color="black", weight=3];
18[label="List.genericIndex4 (primEqInt (Neg Zero) (fromInt (Pos Zero))) (yw30 : yw31) (Neg Zero)\n",fontsize=16,color="black",shape="box"];18 -> 22[label="",style="solid", color="black", weight=3];
19[label="List.genericIndex4 (primEqInt (Pos (Succ yw400)) (Pos Zero)) (yw30 : yw31) (Pos (Succ yw400))\n",fontsize=16,color="black",shape="box"];19 -> 23[label="",style="solid", color="black", weight=3];
20[label="List.genericIndex4 (primEqInt (Pos Zero) (Pos Zero)) (yw30 : yw31) (Pos Zero)\n",fontsize=16,color="black",shape="box"];20 -> 24[label="",style="solid", color="black", weight=3];
21[label="List.genericIndex4 (primEqInt (Neg (Succ yw400)) (Pos Zero)) (yw30 : yw31) (Neg (Succ yw400))\n",fontsize=16,color="black",shape="box"];21 -> 25[label="",style="solid", color="black", weight=3];
22[label="List.genericIndex4 (primEqInt (Neg Zero) (Pos Zero)) (yw30 : yw31) (Neg Zero)\n",fontsize=16,color="black",shape="box"];22 -> 26[label="",style="solid", color="black", weight=3];
23[label="List.genericIndex4 False (yw30 : yw31) (Pos (Succ yw400))\n",fontsize=16,color="black",shape="box"];23 -> 27[label="",style="solid", color="black", weight=3];
24[label="List.genericIndex4 True (yw30 : yw31) (Pos Zero)\n",fontsize=16,color="black",shape="box"];24 -> 28[label="",style="solid", color="black", weight=3];
25[label="List.genericIndex4 False (yw30 : yw31) (Neg (Succ yw400))\n",fontsize=16,color="black",shape="box"];25 -> 29[label="",style="solid", color="black", weight=3];
26[label="List.genericIndex4 True (yw30 : yw31) (Neg Zero)\n",fontsize=16,color="black",shape="box"];26 -> 30[label="",style="solid", color="black", weight=3];
27[label="List.genericIndex3 (yw30 : yw31) (Pos (Succ yw400))\n",fontsize=16,color="black",shape="box"];27 -> 31[label="",style="solid", color="black", weight=3];
28[label="yw30\n",fontsize=16,color="green",shape="box"];29[label="List.genericIndex3 (yw30 : yw31) (Neg (Succ yw400))\n",fontsize=16,color="black",shape="box"];29 -> 32[label="",style="solid", color="black", weight=3];
30[label="yw30\n",fontsize=16,color="green",shape="box"];31[label="List.genericIndex2 yw30 yw31 (Pos (Succ yw400)) (Pos (Succ yw400) > fromInt (Pos Zero))\n",fontsize=16,color="black",shape="box"];31 -> 33[label="",style="solid", color="black", weight=3];
32[label="List.genericIndex2 yw30 yw31 (Neg (Succ yw400)) (Neg (Succ yw400) > fromInt (Pos Zero))\n",fontsize=16,color="black",shape="box"];32 -> 34[label="",style="solid", color="black", weight=3];
33[label="List.genericIndex2 yw30 yw31 (Pos (Succ yw400)) (compare (Pos (Succ yw400)) (fromInt (Pos Zero)) == GT)\n",fontsize=16,color="black",shape="box"];33 -> 35[label="",style="solid", color="black", weight=3];
34[label="List.genericIndex2 yw30 yw31 (Neg (Succ yw400)) (compare (Neg (Succ yw400)) (fromInt (Pos Zero)) == GT)\n",fontsize=16,color="black",shape="box"];34 -> 36[label="",style="solid", color="black", weight=3];
35[label="List.genericIndex2 yw30 yw31 (Pos (Succ yw400)) (primCmpInt (Pos (Succ yw400)) (fromInt (Pos Zero)) == GT)\n",fontsize=16,color="black",shape="box"];35 -> 37[label="",style="solid", color="black", weight=3];
36[label="List.genericIndex2 yw30 yw31 (Neg (Succ yw400)) (primCmpInt (Neg (Succ yw400)) (fromInt (Pos Zero)) == GT)\n",fontsize=16,color="black",shape="box"];36 -> 38[label="",style="solid", color="black", weight=3];
37[label="List.genericIndex2 yw30 yw31 (Pos (Succ yw400)) (primCmpInt (Pos (Succ yw400)) (Pos Zero) == GT)\n",fontsize=16,color="black",shape="box"];37 -> 39[label="",style="solid", color="black", weight=3];
38[label="List.genericIndex2 yw30 yw31 (Neg (Succ yw400)) (primCmpInt (Neg (Succ yw400)) (Pos Zero) == GT)\n",fontsize=16,color="black",shape="box"];38 -> 40[label="",style="solid", color="black", weight=3];
39[label="List.genericIndex2 yw30 yw31 (Pos (Succ yw400)) (primCmpNat (Succ yw400) Zero == GT)\n",fontsize=16,color="black",shape="box"];39 -> 41[label="",style="solid", color="black", weight=3];
40[label="List.genericIndex2 yw30 yw31 (Neg (Succ yw400)) (LT == GT)\n",fontsize=16,color="black",shape="box"];40 -> 42[label="",style="solid", color="black", weight=3];
41[label="List.genericIndex2 yw30 yw31 (Pos (Succ yw400)) (GT == GT)\n",fontsize=16,color="black",shape="box"];41 -> 43[label="",style="solid", color="black", weight=3];
42[label="List.genericIndex2 yw30 yw31 (Neg (Succ yw400)) False\n",fontsize=16,color="black",shape="box"];42 -> 44[label="",style="solid", color="black", weight=3];
43[label="List.genericIndex2 yw30 yw31 (Pos (Succ yw400)) True\n",fontsize=16,color="black",shape="box"];43 -> 45[label="",style="solid", color="black", weight=3];
44[label="List.genericIndex1 yw30 yw31 (Neg (Succ yw400)) otherwise\n",fontsize=16,color="black",shape="box"];44 -> 46[label="",style="solid", color="black", weight=3];
45 -> 4[label="",style="dashed", color="red", weight=0];
45[label="List.genericIndex yw31 (Pos (Succ yw400) - fromInt (Pos (Succ Zero)))\n",fontsize=16,color="magenta"];45 -> 47[label="",style="dashed", color="magenta", weight=3];
45 -> 48[label="",style="dashed", color="magenta", weight=3];
46[label="List.genericIndex1 yw30 yw31 (Neg (Succ yw400)) True\n",fontsize=16,color="black",shape="box"];46 -> 49[label="",style="solid", color="black", weight=3];
47[label="yw31\n",fontsize=16,color="green",shape="box"];48[label="Pos (Succ yw400) - fromInt (Pos (Succ Zero))\n",fontsize=16,color="black",shape="box"];48 -> 50[label="",style="solid", color="black", weight=3];
49 -> 10[label="",style="dashed", color="red", weight=0];
49[label="error []\n",fontsize=16,color="magenta"];50[label="primMinusInt (Pos (Succ yw400)) (fromInt (Pos (Succ Zero)))\n",fontsize=16,color="black",shape="box"];50 -> 51[label="",style="solid", color="black", weight=3];
51[label="primMinusInt (Pos (Succ yw400)) (Pos (Succ Zero))\n",fontsize=16,color="black",shape="box"];51 -> 52[label="",style="solid", color="black", weight=3];
52[label="primMinusNat (Succ yw400) (Succ Zero)\n",fontsize=16,color="black",shape="box"];52 -> 53[label="",style="solid", color="black", weight=3];
53[label="primMinusNat yw400 Zero\n",fontsize=16,color="burlywood",shape="box"];68[label="yw400/Succ yw4000",fontsize=10,color="white",style="solid",shape="box"];53 -> 68[label="",style="solid", color="burlywood", weight=9];
68 -> 54[label="",style="solid", color="burlywood", weight=3];
69[label="yw400/Zero",fontsize=10,color="white",style="solid",shape="box"];53 -> 69[label="",style="solid", color="burlywood", weight=9];
69 -> 55[label="",style="solid", color="burlywood", weight=3];
54[label="primMinusNat (Succ yw4000) Zero\n",fontsize=16,color="black",shape="box"];54 -> 56[label="",style="solid", color="black", weight=3];
55[label="primMinusNat Zero Zero\n",fontsize=16,color="black",shape="box"];55 -> 57[label="",style="solid", color="black", weight=3];
56[label="Pos (Succ yw4000)\n",fontsize=16,color="green",shape="box"];57[label="Pos Zero\n",fontsize=16,color="green",shape="box"];}
</textarea><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 BR</pre><pre>    &#8627 HASKELL</pre><pre>      &#8627 COR</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_genericIndex</font>(<FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>yw30</font>, <FONT COLOR=#cc0000>yw31</font>), <FONT COLOR=#0000cc>Pos</font>(<FONT COLOR=#0000cc>Succ</font>(<FONT COLOR=#cc0000>yw400</font>)), <FONT COLOR=#cc0000>ba</font>) &#8594; <FONT COLOR=#0000cc>new_genericIndex</font>(<FONT COLOR=#cc0000>yw31</font>, <FONT COLOR=#0000cc>new_primMinusNat</font>(<FONT COLOR=#cc0000>yw400</font>), <FONT COLOR=#cc0000>ba</font>)</BLOCKQUOTE><BR>The TRS R consists of the following rules:<BR><BLOCKQUOTE><BR><FONT COLOR=#0000cc>new_primMinusNat</font>(<FONT COLOR=#0000cc>Succ</font>(<FONT COLOR=#cc0000>yw4000</font>)) &#8594; <FONT COLOR=#0000cc>Pos</font>(<FONT COLOR=#0000cc>Succ</font>(<FONT COLOR=#cc0000>yw4000</font>))
<BR><FONT COLOR=#0000cc>new_primMinusNat</font>(<FONT COLOR=#0000cc>Zero</font>) &#8594; <FONT COLOR=#0000cc>Pos</font>(<FONT COLOR=#0000cc>Zero</font>)</BLOCKQUOTE><BR>The set Q consists of the following terms:<BR><BLOCKQUOTE><BR><FONT COLOR=#0000cc>new_primMinusNat</font>(<FONT COLOR=#0000cc>Zero</font>)
<BR><FONT COLOR=#0000cc>new_primMinusNat</font>(<FONT COLOR=#0000cc>Succ</font>(<FONT COLOR=#cc0000>x0</font>))</BLOCKQUOTE><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_genericIndex</font>(<FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>yw30</font>, <FONT COLOR=#cc0000>yw31</font>), <FONT COLOR=#0000cc>Pos</font>(<FONT COLOR=#0000cc>Succ</font>(<FONT COLOR=#cc0000>yw400</font>)), <FONT COLOR=#cc0000>ba</font>) &#8594; <FONT COLOR=#0000cc>new_genericIndex</font>(<FONT COLOR=#cc0000>yw31</font>, <FONT COLOR=#0000cc>new_primMinusNat</font>(<FONT COLOR=#cc0000>yw400</font>), <FONT COLOR=#cc0000>ba</font>)<BR>The graph contains the following edges 1 > 1, 3 >= 3<P></LI></UL><BR><BR></body>


