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/Prelude_mapM__2.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 LR</pre><BR><html>
<body>mainModule Main<table cellspacing="0" cellpadding="0" border="0" frame="void">
<tr>
<td>
                   &nbsp;
                </td><td>((<FONT COLOR="#000088">mapM_</FONT> :: (<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>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;[<FONT COLOR="#666600">()</FONT>]) :: (<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>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;[<FONT COLOR="#666600">()</FONT>])</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 Prelude<br>
<br>
</td>
</tr>
</table>
<br>
</body>
</html>
<BR>Lambda Reductions:<BR>The following Lambda expression<BR><BLOCKQUOTE>\_&#8594;<font color=#000088>q</font></BLOCKQUOTE><BR>is transformed to<BR><BLOCKQUOTE><table cellspacing="0" cellpadding="0" border="0" frame="void" >
<tr><td valign="top"><font color=#000088>gtGt0</font>&#160;</td><td valign="top"><font color=#000088>q</font>&#160;_</td><td valign="top">&#160;=&#160;<font color=#000088>q</font></td></tr>
</table></BLOCKQUOTE><BR><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 LR</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">mapM_</FONT> :: (<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>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;[<FONT COLOR="#666600">()</FONT>]) :: (<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>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;[<FONT COLOR="#666600">()</FONT>])</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 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 LR</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">mapM_</FONT> :: (<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>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;[<FONT COLOR="#666600">()</FONT>]) :: (<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>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;[<FONT COLOR="#666600">()</FONT>])</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 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 LR</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">mapM_</FONT> :: (<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>]&nbsp;<FONT COLOR="#666600">&nbsp;-&gt;&nbsp;</FONT>&nbsp;[<FONT COLOR="#666600">()</FONT>])</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 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="mapM_\n",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3];
3[label="mapM_ vy3\n",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3];
4[label="mapM_ vy3 vy4\n",fontsize=16,color="black",shape="triangle"];4 -> 5[label="",style="solid", color="black", weight=3];
5[label="sequence_ . map vy3\n",fontsize=16,color="black",shape="box"];5 -> 6[label="",style="solid", color="black", weight=3];
6[label="sequence_ (map vy3 vy4)\n",fontsize=16,color="black",shape="box"];6 -> 7[label="",style="solid", color="black", weight=3];
7[label="foldr (>>) (return ()) (map vy3 vy4)\n",fontsize=16,color="burlywood",shape="triangle"];37[label="vy4/vy40 : vy41",fontsize=10,color="white",style="solid",shape="box"];7 -> 37[label="",style="solid", color="burlywood", weight=9];
37 -> 8[label="",style="solid", color="burlywood", weight=3];
38[label="vy4/[]",fontsize=10,color="white",style="solid",shape="box"];7 -> 38[label="",style="solid", color="burlywood", weight=9];
38 -> 9[label="",style="solid", color="burlywood", weight=3];
8[label="foldr (>>) (return ()) (map vy3 (vy40 : vy41))\n",fontsize=16,color="black",shape="box"];8 -> 10[label="",style="solid", color="black", weight=3];
9[label="foldr (>>) (return ()) (map vy3 [])\n",fontsize=16,color="black",shape="box"];9 -> 11[label="",style="solid", color="black", weight=3];
10[label="foldr (>>) (return ()) (vy3 vy40 : map vy3 vy41)\n",fontsize=16,color="black",shape="box"];10 -> 12[label="",style="solid", color="black", weight=3];
11[label="foldr (>>) (return ()) []\n",fontsize=16,color="black",shape="box"];11 -> 13[label="",style="solid", color="black", weight=3];
12 -> 14[label="",style="dashed", color="red", weight=0];
12[label="(>>) vy3 vy40 foldr (>>) (return ()) (map vy3 vy41)\n",fontsize=16,color="magenta"];12 -> 15[label="",style="dashed", color="magenta", weight=3];
13[label="return ()\n",fontsize=16,color="black",shape="box"];13 -> 16[label="",style="solid", color="black", weight=3];
15 -> 7[label="",style="dashed", color="red", weight=0];
15[label="foldr (>>) (return ()) (map vy3 vy41)\n",fontsize=16,color="magenta"];15 -> 17[label="",style="dashed", color="magenta", weight=3];
14[label="(>>) vy3 vy40 vy5\n",fontsize=16,color="black",shape="triangle"];14 -> 18[label="",style="solid", color="black", weight=3];
16[label="() : []\n",fontsize=16,color="green",shape="box"];17[label="vy41\n",fontsize=16,color="green",shape="box"];18 -> 19[label="",style="dashed", color="red", weight=0];
18[label="vy3 vy40 >>= gtGt0 vy5\n",fontsize=16,color="magenta"];18 -> 20[label="",style="dashed", color="magenta", weight=3];
20[label="vy3 vy40\n",fontsize=16,color="green",shape="box"];20 -> 24[label="",style="dashed", color="green", weight=3];
19[label="vy6 >>= gtGt0 vy5\n",fontsize=16,color="burlywood",shape="triangle"];42[label="vy6/vy60 : vy61",fontsize=10,color="white",style="solid",shape="box"];19 -> 42[label="",style="solid", color="burlywood", weight=9];
42 -> 22[label="",style="solid", color="burlywood", weight=3];
43[label="vy6/[]",fontsize=10,color="white",style="solid",shape="box"];19 -> 43[label="",style="solid", color="burlywood", weight=9];
43 -> 23[label="",style="solid", color="burlywood", weight=3];
24[label="vy40\n",fontsize=16,color="green",shape="box"];22[label="vy60 : vy61 >>= gtGt0 vy5\n",fontsize=16,color="black",shape="box"];22 -> 25[label="",style="solid", color="black", weight=3];
23[label="[] >>= gtGt0 vy5\n",fontsize=16,color="black",shape="box"];23 -> 26[label="",style="solid", color="black", weight=3];
25 -> 27[label="",style="dashed", color="red", weight=0];
25[label="gtGt0 vy5 vy60 ++ (vy61 >>= gtGt0 vy5)\n",fontsize=16,color="magenta"];25 -> 28[label="",style="dashed", color="magenta", weight=3];
26[label="[]\n",fontsize=16,color="green",shape="box"];28 -> 19[label="",style="dashed", color="red", weight=0];
28[label="vy61 >>= gtGt0 vy5\n",fontsize=16,color="magenta"];28 -> 29[label="",style="dashed", color="magenta", weight=3];
27[label="gtGt0 vy5 vy60 ++ vy7\n",fontsize=16,color="black",shape="triangle"];27 -> 30[label="",style="solid", color="black", weight=3];
29[label="vy61\n",fontsize=16,color="green",shape="box"];30[label="vy5 ++ vy7\n",fontsize=16,color="burlywood",shape="triangle"];46[label="vy5/vy50 : vy51",fontsize=10,color="white",style="solid",shape="box"];30 -> 46[label="",style="solid", color="burlywood", weight=9];
46 -> 31[label="",style="solid", color="burlywood", weight=3];
47[label="vy5/[]",fontsize=10,color="white",style="solid",shape="box"];30 -> 47[label="",style="solid", color="burlywood", weight=9];
47 -> 32[label="",style="solid", color="burlywood", weight=3];
31[label="(vy50 : vy51) ++ vy7\n",fontsize=16,color="black",shape="box"];31 -> 33[label="",style="solid", color="black", weight=3];
32[label="[] ++ vy7\n",fontsize=16,color="black",shape="box"];32 -> 34[label="",style="solid", color="black", weight=3];
33[label="vy50 : vy51 ++ vy7\n",fontsize=16,color="green",shape="box"];33 -> 35[label="",style="dashed", color="green", weight=3];
34[label="vy7\n",fontsize=16,color="green",shape="box"];35 -> 30[label="",style="dashed", color="red", weight=0];
35[label="vy51 ++ vy7\n",fontsize=16,color="magenta"];35 -> 36[label="",style="dashed", color="magenta", weight=3];
36[label="vy51\n",fontsize=16,color="green",shape="box"];}
</textarea><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 LR</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 AND</pre><pre>                  &#8627 <B>QDP</B></pre><pre>                    &#8627 QDPSizeChangeProof</pre><pre>                  &#8627 QDP</pre><pre>                  &#8627 QDP</pre><BR>Q DP problem:<BR>The TRS P consists of the following rules:<BR><BLOCKQUOTE><BR><FONT COLOR=#0000cc>new_foldr</font>(<FONT COLOR=#cc0000>vy3</font>, <FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>vy40</font>, <FONT COLOR=#cc0000>vy41</font>), <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</font>) &#8594; <FONT COLOR=#0000cc>new_foldr</font>(<FONT COLOR=#cc0000>vy3</font>, <FONT COLOR=#cc0000>vy41</font>, <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</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_foldr</font>(<FONT COLOR=#cc0000>vy3</font>, <FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>vy40</font>, <FONT COLOR=#cc0000>vy41</font>), <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</font>) &#8594; <FONT COLOR=#0000cc>new_foldr</font>(<FONT COLOR=#cc0000>vy3</font>, <FONT COLOR=#cc0000>vy41</font>, <FONT COLOR=#cc0000>h</font>, <FONT COLOR=#cc0000>ba</font>)<BR>The graph contains the following edges 1 >= 1, 2 > 2, 3 >= 3, 4 >= 4<P></LI></UL><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 LR</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 AND</pre><pre>                  &#8627 QDP</pre><pre>                  &#8627 <B>QDP</B></pre><pre>                    &#8627 QDPSizeChangeProof</pre><pre>                  &#8627 QDP</pre><BR>Q DP problem:<BR>The TRS P consists of the following rules:<BR><BLOCKQUOTE><BR><FONT COLOR=#0000cc>new_gtGtEs</font>(<FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>vy60</font>, <FONT COLOR=#cc0000>vy61</font>), <FONT COLOR=#cc0000>vy5</font>, <FONT COLOR=#cc0000>h</font>) &#8594; <FONT COLOR=#0000cc>new_gtGtEs</font>(<FONT COLOR=#cc0000>vy61</font>, <FONT COLOR=#cc0000>vy5</font>, <FONT COLOR=#cc0000>h</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_gtGtEs</font>(<FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>vy60</font>, <FONT COLOR=#cc0000>vy61</font>), <FONT COLOR=#cc0000>vy5</font>, <FONT COLOR=#cc0000>h</font>) &#8594; <FONT COLOR=#0000cc>new_gtGtEs</font>(<FONT COLOR=#cc0000>vy61</font>, <FONT COLOR=#cc0000>vy5</font>, <FONT COLOR=#cc0000>h</font>)<BR>The graph contains the following edges 1 > 1, 2 >= 2, 3 >= 3<P></LI></UL><BR><BR><pre>&#8627 HASKELL</pre><pre>  &#8627 LR</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 AND</pre><pre>                  &#8627 QDP</pre><pre>                  &#8627 QDP</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_psPs</font>(<FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>vy50</font>, <FONT COLOR=#cc0000>vy51</font>), <FONT COLOR=#cc0000>vy7</font>) &#8594; <FONT COLOR=#0000cc>new_psPs</font>(<FONT COLOR=#cc0000>vy51</font>, <FONT COLOR=#cc0000>vy7</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_psPs</font>(<FONT COLOR=#0000cc>:</font>(<FONT COLOR=#cc0000>vy50</font>, <FONT COLOR=#cc0000>vy51</font>), <FONT COLOR=#cc0000>vy7</font>) &#8594; <FONT COLOR=#0000cc>new_psPs</font>(<FONT COLOR=#cc0000>vy51</font>, <FONT COLOR=#cc0000>vy7</font>)<BR>The graph contains the following edges 1 > 1, 2 >= 2<P></LI></UL><BR><BR></body>


