7.69/3.52 YES 9.26/3.99 proof of /export/starexec/sandbox/benchmark/theBenchmark.hs 9.26/3.99 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 9.26/3.99 9.26/3.99 9.26/3.99 H-Termination with start terms of the given HASKELL could be proven: 9.26/3.99 9.26/3.99 (0) HASKELL 9.26/3.99 (1) BR [EQUIVALENT, 0 ms] 9.26/3.99 (2) HASKELL 9.26/3.99 (3) COR [EQUIVALENT, 0 ms] 9.26/3.99 (4) HASKELL 9.26/3.99 (5) Narrow [SOUND, 0 ms] 9.26/3.99 (6) QDP 9.26/3.99 (7) QDPSizeChangeProof [EQUIVALENT, 0 ms] 9.26/3.99 (8) YES 9.26/3.99 9.26/3.99 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (0) 9.26/3.99 Obligation: 9.26/3.99 mainModule Main 9.26/3.99 module Main where { 9.26/3.99 import qualified Prelude; 9.26/3.99 } 9.26/3.99 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (1) BR (EQUIVALENT) 9.26/3.99 Replaced joker patterns by fresh variables and removed binding patterns. 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (2) 9.26/3.99 Obligation: 9.26/3.99 mainModule Main 9.26/3.99 module Main where { 9.26/3.99 import qualified Prelude; 9.26/3.99 } 9.26/3.99 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (3) COR (EQUIVALENT) 9.26/3.99 Cond Reductions: 9.26/3.99 The following Function with conditions 9.26/3.99 "undefined |Falseundefined; 9.26/3.99 " 9.26/3.99 is transformed to 9.26/3.99 "undefined = undefined1; 9.26/3.99 " 9.26/3.99 "undefined0 True = undefined; 9.26/3.99 " 9.26/3.99 "undefined1 = undefined0 False; 9.26/3.99 " 9.26/3.99 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (4) 9.26/3.99 Obligation: 9.26/3.99 mainModule Main 9.26/3.99 module Main where { 9.26/3.99 import qualified Prelude; 9.26/3.99 } 9.26/3.99 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (5) Narrow (SOUND) 9.26/3.99 Haskell To QDPs 9.26/3.99 9.26/3.99 digraph dp_graph { 9.26/3.99 node [outthreshold=100, inthreshold=100];1[label="(>=)",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 9.26/3.99 3[label="(>=) vx3",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3]; 9.26/3.99 4[label="(>=) vx3 vx4",fontsize=16,color="black",shape="triangle"];4 -> 5[label="",style="solid", color="black", weight=3]; 9.26/3.99 5[label="compare vx3 vx4 /= LT",fontsize=16,color="black",shape="box"];5 -> 6[label="",style="solid", color="black", weight=3]; 9.26/3.99 6[label="not (compare vx3 vx4 == LT)",fontsize=16,color="black",shape="box"];6 -> 7[label="",style="solid", color="black", weight=3]; 9.26/3.99 7[label="not (primCmpInt vx3 vx4 == LT)",fontsize=16,color="burlywood",shape="box"];73[label="vx3/Pos vx30",fontsize=10,color="white",style="solid",shape="box"];7 -> 73[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 73 -> 8[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 74[label="vx3/Neg vx30",fontsize=10,color="white",style="solid",shape="box"];7 -> 74[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 74 -> 9[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 8[label="not (primCmpInt (Pos vx30) vx4 == LT)",fontsize=16,color="burlywood",shape="box"];75[label="vx30/Succ vx300",fontsize=10,color="white",style="solid",shape="box"];8 -> 75[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 75 -> 10[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 76[label="vx30/Zero",fontsize=10,color="white",style="solid",shape="box"];8 -> 76[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 76 -> 11[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 9[label="not (primCmpInt (Neg vx30) vx4 == LT)",fontsize=16,color="burlywood",shape="box"];77[label="vx30/Succ vx300",fontsize=10,color="white",style="solid",shape="box"];9 -> 77[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 77 -> 12[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 78[label="vx30/Zero",fontsize=10,color="white",style="solid",shape="box"];9 -> 78[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 78 -> 13[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 10[label="not (primCmpInt (Pos (Succ vx300)) vx4 == LT)",fontsize=16,color="burlywood",shape="box"];79[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];10 -> 79[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 79 -> 14[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 80[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];10 -> 80[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 80 -> 15[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 11[label="not (primCmpInt (Pos Zero) vx4 == LT)",fontsize=16,color="burlywood",shape="box"];81[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];11 -> 81[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 81 -> 16[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 82[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];11 -> 82[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 82 -> 17[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 12[label="not (primCmpInt (Neg (Succ vx300)) vx4 == LT)",fontsize=16,color="burlywood",shape="box"];83[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];12 -> 83[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 83 -> 18[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 84[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];12 -> 84[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 84 -> 19[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 13[label="not (primCmpInt (Neg Zero) vx4 == LT)",fontsize=16,color="burlywood",shape="box"];85[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];13 -> 85[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 85 -> 20[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 86[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];13 -> 86[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 86 -> 21[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 14[label="not (primCmpInt (Pos (Succ vx300)) (Pos vx40) == LT)",fontsize=16,color="black",shape="box"];14 -> 22[label="",style="solid", color="black", weight=3]; 9.26/3.99 15[label="not (primCmpInt (Pos (Succ vx300)) (Neg vx40) == LT)",fontsize=16,color="black",shape="box"];15 -> 23[label="",style="solid", color="black", weight=3]; 9.26/3.99 16[label="not (primCmpInt (Pos Zero) (Pos vx40) == LT)",fontsize=16,color="burlywood",shape="box"];87[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];16 -> 87[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 87 -> 24[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 88[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];16 -> 88[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 88 -> 25[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 17[label="not (primCmpInt (Pos Zero) (Neg vx40) == LT)",fontsize=16,color="burlywood",shape="box"];89[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];17 -> 89[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 89 -> 26[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 90[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];17 -> 90[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 90 -> 27[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 18[label="not (primCmpInt (Neg (Succ vx300)) (Pos vx40) == LT)",fontsize=16,color="black",shape="box"];18 -> 28[label="",style="solid", color="black", weight=3]; 9.26/3.99 19[label="not (primCmpInt (Neg (Succ vx300)) (Neg vx40) == LT)",fontsize=16,color="black",shape="box"];19 -> 29[label="",style="solid", color="black", weight=3]; 9.26/3.99 20[label="not (primCmpInt (Neg Zero) (Pos vx40) == LT)",fontsize=16,color="burlywood",shape="box"];91[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];20 -> 91[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 91 -> 30[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 92[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];20 -> 92[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 92 -> 31[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 21[label="not (primCmpInt (Neg Zero) (Neg vx40) == LT)",fontsize=16,color="burlywood",shape="box"];93[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];21 -> 93[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 93 -> 32[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 94[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];21 -> 94[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 94 -> 33[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 22[label="not (primCmpNat (Succ vx300) vx40 == LT)",fontsize=16,color="burlywood",shape="triangle"];95[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];22 -> 95[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 95 -> 34[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 96[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];22 -> 96[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 96 -> 35[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 23[label="not (GT == LT)",fontsize=16,color="black",shape="triangle"];23 -> 36[label="",style="solid", color="black", weight=3]; 9.26/3.99 24[label="not (primCmpInt (Pos Zero) (Pos (Succ vx400)) == LT)",fontsize=16,color="black",shape="box"];24 -> 37[label="",style="solid", color="black", weight=3]; 9.26/3.99 25[label="not (primCmpInt (Pos Zero) (Pos Zero) == LT)",fontsize=16,color="black",shape="box"];25 -> 38[label="",style="solid", color="black", weight=3]; 9.26/3.99 26[label="not (primCmpInt (Pos Zero) (Neg (Succ vx400)) == LT)",fontsize=16,color="black",shape="box"];26 -> 39[label="",style="solid", color="black", weight=3]; 9.26/3.99 27[label="not (primCmpInt (Pos Zero) (Neg Zero) == LT)",fontsize=16,color="black",shape="box"];27 -> 40[label="",style="solid", color="black", weight=3]; 9.26/3.99 28[label="not (LT == LT)",fontsize=16,color="black",shape="triangle"];28 -> 41[label="",style="solid", color="black", weight=3]; 9.26/3.99 29[label="not (primCmpNat vx40 (Succ vx300) == LT)",fontsize=16,color="burlywood",shape="triangle"];97[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];29 -> 97[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 97 -> 42[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 98[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];29 -> 98[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 98 -> 43[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 30[label="not (primCmpInt (Neg Zero) (Pos (Succ vx400)) == LT)",fontsize=16,color="black",shape="box"];30 -> 44[label="",style="solid", color="black", weight=3]; 9.26/3.99 31[label="not (primCmpInt (Neg Zero) (Pos Zero) == LT)",fontsize=16,color="black",shape="box"];31 -> 45[label="",style="solid", color="black", weight=3]; 9.26/3.99 32[label="not (primCmpInt (Neg Zero) (Neg (Succ vx400)) == LT)",fontsize=16,color="black",shape="box"];32 -> 46[label="",style="solid", color="black", weight=3]; 9.26/3.99 33[label="not (primCmpInt (Neg Zero) (Neg Zero) == LT)",fontsize=16,color="black",shape="box"];33 -> 47[label="",style="solid", color="black", weight=3]; 9.26/3.99 34[label="not (primCmpNat (Succ vx300) (Succ vx400) == LT)",fontsize=16,color="black",shape="box"];34 -> 48[label="",style="solid", color="black", weight=3]; 9.26/3.99 35[label="not (primCmpNat (Succ vx300) Zero == LT)",fontsize=16,color="black",shape="box"];35 -> 49[label="",style="solid", color="black", weight=3]; 9.26/3.99 36[label="not False",fontsize=16,color="black",shape="triangle"];36 -> 50[label="",style="solid", color="black", weight=3]; 9.26/3.99 37 -> 29[label="",style="dashed", color="red", weight=0]; 9.26/3.99 37[label="not (primCmpNat Zero (Succ vx400) == LT)",fontsize=16,color="magenta"];37 -> 51[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 37 -> 52[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 38[label="not (EQ == LT)",fontsize=16,color="black",shape="triangle"];38 -> 53[label="",style="solid", color="black", weight=3]; 9.26/3.99 39 -> 23[label="",style="dashed", color="red", weight=0]; 9.26/3.99 39[label="not (GT == LT)",fontsize=16,color="magenta"];40 -> 38[label="",style="dashed", color="red", weight=0]; 9.26/3.99 40[label="not (EQ == LT)",fontsize=16,color="magenta"];41[label="not True",fontsize=16,color="black",shape="box"];41 -> 54[label="",style="solid", color="black", weight=3]; 9.26/3.99 42[label="not (primCmpNat (Succ vx400) (Succ vx300) == LT)",fontsize=16,color="black",shape="box"];42 -> 55[label="",style="solid", color="black", weight=3]; 9.26/3.99 43[label="not (primCmpNat Zero (Succ vx300) == LT)",fontsize=16,color="black",shape="box"];43 -> 56[label="",style="solid", color="black", weight=3]; 9.26/3.99 44 -> 28[label="",style="dashed", color="red", weight=0]; 9.26/3.99 44[label="not (LT == LT)",fontsize=16,color="magenta"];45 -> 38[label="",style="dashed", color="red", weight=0]; 9.26/3.99 45[label="not (EQ == LT)",fontsize=16,color="magenta"];46 -> 22[label="",style="dashed", color="red", weight=0]; 9.26/3.99 46[label="not (primCmpNat (Succ vx400) Zero == LT)",fontsize=16,color="magenta"];46 -> 57[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 46 -> 58[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 47 -> 38[label="",style="dashed", color="red", weight=0]; 9.26/3.99 47[label="not (EQ == LT)",fontsize=16,color="magenta"];48[label="not (primCmpNat vx300 vx400 == LT)",fontsize=16,color="burlywood",shape="triangle"];99[label="vx300/Succ vx3000",fontsize=10,color="white",style="solid",shape="box"];48 -> 99[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 99 -> 59[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 100[label="vx300/Zero",fontsize=10,color="white",style="solid",shape="box"];48 -> 100[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 100 -> 60[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 49 -> 23[label="",style="dashed", color="red", weight=0]; 9.26/3.99 49[label="not (GT == LT)",fontsize=16,color="magenta"];50[label="True",fontsize=16,color="green",shape="box"];51[label="vx400",fontsize=16,color="green",shape="box"];52[label="Zero",fontsize=16,color="green",shape="box"];53 -> 36[label="",style="dashed", color="red", weight=0]; 9.26/3.99 53[label="not False",fontsize=16,color="magenta"];54[label="False",fontsize=16,color="green",shape="box"];55 -> 48[label="",style="dashed", color="red", weight=0]; 9.26/3.99 55[label="not (primCmpNat vx400 vx300 == LT)",fontsize=16,color="magenta"];55 -> 61[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 55 -> 62[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 56 -> 28[label="",style="dashed", color="red", weight=0]; 9.26/3.99 56[label="not (LT == LT)",fontsize=16,color="magenta"];57[label="vx400",fontsize=16,color="green",shape="box"];58[label="Zero",fontsize=16,color="green",shape="box"];59[label="not (primCmpNat (Succ vx3000) vx400 == LT)",fontsize=16,color="burlywood",shape="box"];101[label="vx400/Succ vx4000",fontsize=10,color="white",style="solid",shape="box"];59 -> 101[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 101 -> 63[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 102[label="vx400/Zero",fontsize=10,color="white",style="solid",shape="box"];59 -> 102[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 102 -> 64[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 60[label="not (primCmpNat Zero vx400 == LT)",fontsize=16,color="burlywood",shape="box"];103[label="vx400/Succ vx4000",fontsize=10,color="white",style="solid",shape="box"];60 -> 103[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 103 -> 65[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 104[label="vx400/Zero",fontsize=10,color="white",style="solid",shape="box"];60 -> 104[label="",style="solid", color="burlywood", weight=9]; 9.26/3.99 104 -> 66[label="",style="solid", color="burlywood", weight=3]; 9.26/3.99 61[label="vx300",fontsize=16,color="green",shape="box"];62[label="vx400",fontsize=16,color="green",shape="box"];63[label="not (primCmpNat (Succ vx3000) (Succ vx4000) == LT)",fontsize=16,color="black",shape="box"];63 -> 67[label="",style="solid", color="black", weight=3]; 9.26/3.99 64[label="not (primCmpNat (Succ vx3000) Zero == LT)",fontsize=16,color="black",shape="box"];64 -> 68[label="",style="solid", color="black", weight=3]; 9.26/3.99 65[label="not (primCmpNat Zero (Succ vx4000) == LT)",fontsize=16,color="black",shape="box"];65 -> 69[label="",style="solid", color="black", weight=3]; 9.26/3.99 66[label="not (primCmpNat Zero Zero == LT)",fontsize=16,color="black",shape="box"];66 -> 70[label="",style="solid", color="black", weight=3]; 9.26/3.99 67 -> 48[label="",style="dashed", color="red", weight=0]; 9.26/3.99 67[label="not (primCmpNat vx3000 vx4000 == LT)",fontsize=16,color="magenta"];67 -> 71[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 67 -> 72[label="",style="dashed", color="magenta", weight=3]; 9.26/3.99 68 -> 23[label="",style="dashed", color="red", weight=0]; 9.26/3.99 68[label="not (GT == LT)",fontsize=16,color="magenta"];69 -> 28[label="",style="dashed", color="red", weight=0]; 9.26/3.99 69[label="not (LT == LT)",fontsize=16,color="magenta"];70 -> 38[label="",style="dashed", color="red", weight=0]; 9.26/3.99 70[label="not (EQ == LT)",fontsize=16,color="magenta"];71[label="vx4000",fontsize=16,color="green",shape="box"];72[label="vx3000",fontsize=16,color="green",shape="box"];} 9.26/3.99 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (6) 9.26/3.99 Obligation: 9.26/3.99 Q DP problem: 9.26/3.99 The TRS P consists of the following rules: 9.26/3.99 9.26/3.99 new_not(Succ(vx3000), Succ(vx4000)) -> new_not(vx3000, vx4000) 9.26/3.99 9.26/3.99 R is empty. 9.26/3.99 Q is empty. 9.26/3.99 We have to consider all minimal (P,Q,R)-chains. 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (7) QDPSizeChangeProof (EQUIVALENT) 9.26/3.99 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 9.26/3.99 9.26/3.99 From the DPs we obtained the following set of size-change graphs: 9.26/3.99 *new_not(Succ(vx3000), Succ(vx4000)) -> new_not(vx3000, vx4000) 9.26/3.99 The graph contains the following edges 1 > 1, 2 > 2 9.26/3.99 9.26/3.99 9.26/3.99 ---------------------------------------- 9.26/3.99 9.26/3.99 (8) 9.26/3.99 YES 9.52/4.03 EOF