7.76/3.56 YES 9.72/4.07 proof of /export/starexec/sandbox2/benchmark/theBenchmark.hs 9.72/4.07 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 9.72/4.07 9.72/4.07 9.72/4.07 H-Termination with start terms of the given HASKELL could be proven: 9.72/4.07 9.72/4.07 (0) HASKELL 9.72/4.07 (1) LR [EQUIVALENT, 0 ms] 9.72/4.07 (2) HASKELL 9.72/4.07 (3) BR [EQUIVALENT, 0 ms] 9.72/4.07 (4) HASKELL 9.72/4.07 (5) COR [EQUIVALENT, 0 ms] 9.72/4.07 (6) HASKELL 9.72/4.07 (7) Narrow [SOUND, 0 ms] 9.72/4.07 (8) AND 9.72/4.07 (9) QDP 9.72/4.07 (10) QDPSizeChangeProof [EQUIVALENT, 0 ms] 9.72/4.07 (11) YES 9.72/4.07 (12) QDP 9.72/4.07 (13) QDPSizeChangeProof [EQUIVALENT, 0 ms] 9.72/4.07 (14) YES 9.72/4.07 (15) QDP 9.72/4.07 (16) QDPSizeChangeProof [EQUIVALENT, 0 ms] 9.72/4.07 (17) YES 9.72/4.07 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (0) 9.72/4.07 Obligation: 9.72/4.07 mainModule Main 9.72/4.07 module Main where { 9.72/4.07 import qualified Prelude; 9.72/4.07 } 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (1) LR (EQUIVALENT) 9.72/4.07 Lambda Reductions: 9.72/4.07 The following Lambda expression 9.72/4.07 "\xs->return (x : xs)" 9.72/4.07 is transformed to 9.72/4.07 "sequence0 x xs = return (x : xs); 9.72/4.07 " 9.72/4.07 The following Lambda expression 9.72/4.07 "\x->sequence cs >>= sequence0 x" 9.72/4.07 is transformed to 9.72/4.07 "sequence1 cs x = sequence cs >>= sequence0 x; 9.72/4.07 " 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (2) 9.72/4.07 Obligation: 9.72/4.07 mainModule Main 9.72/4.07 module Main where { 9.72/4.07 import qualified Prelude; 9.72/4.07 } 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (3) BR (EQUIVALENT) 9.72/4.07 Replaced joker patterns by fresh variables and removed binding patterns. 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (4) 9.72/4.07 Obligation: 9.72/4.07 mainModule Main 9.72/4.07 module Main where { 9.72/4.07 import qualified Prelude; 9.72/4.07 } 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (5) COR (EQUIVALENT) 9.72/4.07 Cond Reductions: 9.72/4.07 The following Function with conditions 9.72/4.07 "undefined |Falseundefined; 9.72/4.07 " 9.72/4.07 is transformed to 9.72/4.07 "undefined = undefined1; 9.72/4.07 " 9.72/4.07 "undefined0 True = undefined; 9.72/4.07 " 9.72/4.07 "undefined1 = undefined0 False; 9.72/4.07 " 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (6) 9.72/4.07 Obligation: 9.72/4.07 mainModule Main 9.72/4.07 module Main where { 9.72/4.07 import qualified Prelude; 9.72/4.07 } 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (7) Narrow (SOUND) 9.72/4.07 Haskell To QDPs 9.72/4.07 9.72/4.07 digraph dp_graph { 9.72/4.07 node [outthreshold=100, inthreshold=100];1[label="sequence",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 9.72/4.07 3[label="sequence vx3",fontsize=16,color="burlywood",shape="triangle"];48[label="vx3/vx30 : vx31",fontsize=10,color="white",style="solid",shape="box"];3 -> 48[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 48 -> 4[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 49[label="vx3/[]",fontsize=10,color="white",style="solid",shape="box"];3 -> 49[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 49 -> 5[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 4[label="sequence (vx30 : vx31)",fontsize=16,color="black",shape="box"];4 -> 6[label="",style="solid", color="black", weight=3]; 9.72/4.07 5[label="sequence []",fontsize=16,color="black",shape="box"];5 -> 7[label="",style="solid", color="black", weight=3]; 9.72/4.07 6[label="vx30 >>= sequence1 vx31",fontsize=16,color="burlywood",shape="triangle"];50[label="vx30/vx300 : vx301",fontsize=10,color="white",style="solid",shape="box"];6 -> 50[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 50 -> 8[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 51[label="vx30/[]",fontsize=10,color="white",style="solid",shape="box"];6 -> 51[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 51 -> 9[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 7[label="return []",fontsize=16,color="black",shape="box"];7 -> 10[label="",style="solid", color="black", weight=3]; 9.72/4.07 8[label="vx300 : vx301 >>= sequence1 vx31",fontsize=16,color="black",shape="box"];8 -> 11[label="",style="solid", color="black", weight=3]; 9.72/4.07 9[label="[] >>= sequence1 vx31",fontsize=16,color="black",shape="box"];9 -> 12[label="",style="solid", color="black", weight=3]; 9.72/4.07 10[label="[] : []",fontsize=16,color="green",shape="box"];11 -> 13[label="",style="dashed", color="red", weight=0]; 9.72/4.07 11[label="sequence1 vx31 vx300 ++ (vx301 >>= sequence1 vx31)",fontsize=16,color="magenta"];11 -> 14[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 12[label="[]",fontsize=16,color="green",shape="box"];14 -> 6[label="",style="dashed", color="red", weight=0]; 9.72/4.07 14[label="vx301 >>= sequence1 vx31",fontsize=16,color="magenta"];14 -> 15[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 13[label="sequence1 vx31 vx300 ++ vx4",fontsize=16,color="black",shape="triangle"];13 -> 16[label="",style="solid", color="black", weight=3]; 9.72/4.07 15[label="vx301",fontsize=16,color="green",shape="box"];16 -> 17[label="",style="dashed", color="red", weight=0]; 9.72/4.07 16[label="(sequence vx31 >>= sequence0 vx300) ++ vx4",fontsize=16,color="magenta"];16 -> 18[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 18 -> 3[label="",style="dashed", color="red", weight=0]; 9.72/4.07 18[label="sequence vx31",fontsize=16,color="magenta"];18 -> 19[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 17[label="(vx5 >>= sequence0 vx300) ++ vx4",fontsize=16,color="burlywood",shape="triangle"];52[label="vx5/vx50 : vx51",fontsize=10,color="white",style="solid",shape="box"];17 -> 52[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 52 -> 20[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 53[label="vx5/[]",fontsize=10,color="white",style="solid",shape="box"];17 -> 53[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 53 -> 21[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 19[label="vx31",fontsize=16,color="green",shape="box"];20[label="(vx50 : vx51 >>= sequence0 vx300) ++ vx4",fontsize=16,color="black",shape="box"];20 -> 22[label="",style="solid", color="black", weight=3]; 9.72/4.07 21[label="([] >>= sequence0 vx300) ++ vx4",fontsize=16,color="black",shape="box"];21 -> 23[label="",style="solid", color="black", weight=3]; 9.72/4.07 22[label="(sequence0 vx300 vx50 ++ (vx51 >>= sequence0 vx300)) ++ vx4",fontsize=16,color="black",shape="box"];22 -> 24[label="",style="solid", color="black", weight=3]; 9.72/4.07 23[label="[] ++ vx4",fontsize=16,color="black",shape="triangle"];23 -> 25[label="",style="solid", color="black", weight=3]; 9.72/4.07 24[label="(return (vx300 : vx50) ++ (vx51 >>= sequence0 vx300)) ++ vx4",fontsize=16,color="black",shape="box"];24 -> 26[label="",style="solid", color="black", weight=3]; 9.72/4.07 25[label="vx4",fontsize=16,color="green",shape="box"];26[label="(((vx300 : vx50) : []) ++ (vx51 >>= sequence0 vx300)) ++ vx4",fontsize=16,color="black",shape="box"];26 -> 27[label="",style="solid", color="black", weight=3]; 9.72/4.07 27 -> 28[label="",style="dashed", color="red", weight=0]; 9.72/4.07 27[label="((vx300 : vx50) : [] ++ (vx51 >>= sequence0 vx300)) ++ vx4",fontsize=16,color="magenta"];27 -> 29[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 29 -> 23[label="",style="dashed", color="red", weight=0]; 9.72/4.07 29[label="[] ++ (vx51 >>= sequence0 vx300)",fontsize=16,color="magenta"];29 -> 30[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 28[label="((vx300 : vx50) : vx6) ++ vx4",fontsize=16,color="black",shape="triangle"];28 -> 31[label="",style="solid", color="black", weight=3]; 9.72/4.07 30[label="vx51 >>= sequence0 vx300",fontsize=16,color="burlywood",shape="triangle"];54[label="vx51/vx510 : vx511",fontsize=10,color="white",style="solid",shape="box"];30 -> 54[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 54 -> 32[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 55[label="vx51/[]",fontsize=10,color="white",style="solid",shape="box"];30 -> 55[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 55 -> 33[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 31[label="(vx300 : vx50) : vx6 ++ vx4",fontsize=16,color="green",shape="box"];31 -> 34[label="",style="dashed", color="green", weight=3]; 9.72/4.07 32[label="vx510 : vx511 >>= sequence0 vx300",fontsize=16,color="black",shape="box"];32 -> 35[label="",style="solid", color="black", weight=3]; 9.72/4.07 33[label="[] >>= sequence0 vx300",fontsize=16,color="black",shape="box"];33 -> 36[label="",style="solid", color="black", weight=3]; 9.72/4.07 34[label="vx6 ++ vx4",fontsize=16,color="burlywood",shape="triangle"];56[label="vx6/vx60 : vx61",fontsize=10,color="white",style="solid",shape="box"];34 -> 56[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 56 -> 37[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 57[label="vx6/[]",fontsize=10,color="white",style="solid",shape="box"];34 -> 57[label="",style="solid", color="burlywood", weight=9]; 9.72/4.07 57 -> 38[label="",style="solid", color="burlywood", weight=3]; 9.72/4.07 35 -> 34[label="",style="dashed", color="red", weight=0]; 9.72/4.07 35[label="sequence0 vx300 vx510 ++ (vx511 >>= sequence0 vx300)",fontsize=16,color="magenta"];35 -> 39[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 35 -> 40[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 36[label="[]",fontsize=16,color="green",shape="box"];37[label="(vx60 : vx61) ++ vx4",fontsize=16,color="black",shape="box"];37 -> 41[label="",style="solid", color="black", weight=3]; 9.72/4.07 38[label="[] ++ vx4",fontsize=16,color="black",shape="box"];38 -> 42[label="",style="solid", color="black", weight=3]; 9.72/4.07 39[label="sequence0 vx300 vx510",fontsize=16,color="black",shape="box"];39 -> 43[label="",style="solid", color="black", weight=3]; 9.72/4.07 40 -> 30[label="",style="dashed", color="red", weight=0]; 9.72/4.07 40[label="vx511 >>= sequence0 vx300",fontsize=16,color="magenta"];40 -> 44[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 41[label="vx60 : vx61 ++ vx4",fontsize=16,color="green",shape="box"];41 -> 45[label="",style="dashed", color="green", weight=3]; 9.72/4.07 42[label="vx4",fontsize=16,color="green",shape="box"];43[label="return (vx300 : vx510)",fontsize=16,color="black",shape="box"];43 -> 46[label="",style="solid", color="black", weight=3]; 9.72/4.07 44[label="vx511",fontsize=16,color="green",shape="box"];45 -> 34[label="",style="dashed", color="red", weight=0]; 9.72/4.07 45[label="vx61 ++ vx4",fontsize=16,color="magenta"];45 -> 47[label="",style="dashed", color="magenta", weight=3]; 9.72/4.07 46[label="(vx300 : vx510) : []",fontsize=16,color="green",shape="box"];47[label="vx61",fontsize=16,color="green",shape="box"];} 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (8) 9.72/4.07 Complex Obligation (AND) 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (9) 9.72/4.07 Obligation: 9.72/4.07 Q DP problem: 9.72/4.07 The TRS P consists of the following rules: 9.72/4.07 9.72/4.07 new_gtGtEs(:(vx510, vx511), vx300, h) -> new_gtGtEs(vx511, vx300, h) 9.72/4.07 9.72/4.07 R is empty. 9.72/4.07 Q is empty. 9.72/4.07 We have to consider all minimal (P,Q,R)-chains. 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (10) QDPSizeChangeProof (EQUIVALENT) 9.72/4.07 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.72/4.07 9.72/4.07 From the DPs we obtained the following set of size-change graphs: 9.72/4.07 *new_gtGtEs(:(vx510, vx511), vx300, h) -> new_gtGtEs(vx511, vx300, h) 9.72/4.07 The graph contains the following edges 1 > 1, 2 >= 2, 3 >= 3 9.72/4.07 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (11) 9.72/4.07 YES 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (12) 9.72/4.07 Obligation: 9.72/4.07 Q DP problem: 9.72/4.07 The TRS P consists of the following rules: 9.72/4.07 9.72/4.07 new_sequence(:(:(vx300, vx301), vx31), h) -> new_gtGtEs0(vx301, vx31, h) 9.72/4.07 new_gtGtEs0(:(vx300, vx301), vx31, h) -> new_gtGtEs0(vx301, vx31, h) 9.72/4.07 new_sequence(:(:(vx300, vx301), vx31), h) -> new_psPs0(vx31, vx300, new_gtGtEs1(vx301, vx31, h), h) 9.72/4.07 new_gtGtEs0(:(vx300, vx301), vx31, h) -> new_psPs0(vx31, vx300, new_gtGtEs1(vx301, vx31, h), h) 9.72/4.07 new_psPs0(vx31, vx300, vx4, h) -> new_sequence(vx31, h) 9.72/4.07 9.72/4.07 The TRS R consists of the following rules: 9.72/4.07 9.72/4.07 new_psPs4(vx300, vx50, vx6, vx4, h) -> :(:(vx300, vx50), new_psPs5(vx6, vx4, h)) 9.72/4.07 new_gtGtEs1([], vx31, h) -> [] 9.72/4.07 new_gtGtEs2(:(vx510, vx511), vx300, h) -> new_psPs5(:(:(vx300, vx510), []), new_gtGtEs2(vx511, vx300, h), h) 9.72/4.07 new_psPs5(:(vx60, vx61), vx4, h) -> :(vx60, new_psPs5(vx61, vx4, h)) 9.72/4.07 new_psPs3(:(vx50, vx51), vx300, vx4, h) -> new_psPs4(vx300, vx50, new_psPs1(new_gtGtEs2(vx51, vx300, h), h), vx4, h) 9.72/4.07 new_sequence0(:(vx30, vx31), h) -> new_gtGtEs1(vx30, vx31, h) 9.72/4.07 new_gtGtEs1(:(vx300, vx301), vx31, h) -> new_psPs2(vx31, vx300, new_gtGtEs1(vx301, vx31, h), h) 9.72/4.07 new_psPs3([], vx300, vx4, h) -> new_psPs1(vx4, h) 9.72/4.07 new_psPs1(vx4, h) -> vx4 9.72/4.07 new_psPs2(vx31, vx300, vx4, h) -> new_psPs3(new_sequence0(vx31, h), vx300, vx4, h) 9.72/4.07 new_gtGtEs2([], vx300, h) -> [] 9.72/4.07 new_psPs5([], vx4, h) -> vx4 9.72/4.07 new_sequence0([], h) -> :([], []) 9.72/4.07 9.72/4.07 The set Q consists of the following terms: 9.72/4.07 9.72/4.07 new_gtGtEs2(:(x0, x1), x2, x3) 9.72/4.07 new_sequence0(:(x0, x1), x2) 9.72/4.07 new_gtGtEs1(:(x0, x1), x2, x3) 9.72/4.07 new_sequence0([], x0) 9.72/4.07 new_psPs3([], x0, x1, x2) 9.72/4.07 new_psPs3(:(x0, x1), x2, x3, x4) 9.72/4.07 new_psPs1(x0, x1) 9.72/4.07 new_psPs2(x0, x1, x2, x3) 9.72/4.07 new_gtGtEs2([], x0, x1) 9.72/4.07 new_psPs4(x0, x1, x2, x3, x4) 9.72/4.07 new_gtGtEs1([], x0, x1) 9.72/4.07 new_psPs5([], x0, x1) 9.72/4.07 new_psPs5(:(x0, x1), x2, x3) 9.72/4.07 9.72/4.07 We have to consider all minimal (P,Q,R)-chains. 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (13) QDPSizeChangeProof (EQUIVALENT) 9.72/4.07 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.72/4.07 9.72/4.07 From the DPs we obtained the following set of size-change graphs: 9.72/4.07 *new_psPs0(vx31, vx300, vx4, h) -> new_sequence(vx31, h) 9.72/4.07 The graph contains the following edges 1 >= 1, 4 >= 2 9.72/4.07 9.72/4.07 9.72/4.07 *new_gtGtEs0(:(vx300, vx301), vx31, h) -> new_gtGtEs0(vx301, vx31, h) 9.72/4.07 The graph contains the following edges 1 > 1, 2 >= 2, 3 >= 3 9.72/4.07 9.72/4.07 9.72/4.07 *new_gtGtEs0(:(vx300, vx301), vx31, h) -> new_psPs0(vx31, vx300, new_gtGtEs1(vx301, vx31, h), h) 9.72/4.07 The graph contains the following edges 2 >= 1, 1 > 2, 3 >= 4 9.72/4.07 9.72/4.07 9.72/4.07 *new_sequence(:(:(vx300, vx301), vx31), h) -> new_gtGtEs0(vx301, vx31, h) 9.72/4.07 The graph contains the following edges 1 > 1, 1 > 2, 2 >= 3 9.72/4.07 9.72/4.07 9.72/4.07 *new_sequence(:(:(vx300, vx301), vx31), h) -> new_psPs0(vx31, vx300, new_gtGtEs1(vx301, vx31, h), h) 9.72/4.07 The graph contains the following edges 1 > 1, 1 > 2, 2 >= 4 9.72/4.07 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (14) 9.72/4.07 YES 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (15) 9.72/4.07 Obligation: 9.72/4.07 Q DP problem: 9.72/4.07 The TRS P consists of the following rules: 9.72/4.07 9.72/4.07 new_psPs(:(vx60, vx61), vx4, h) -> new_psPs(vx61, vx4, h) 9.72/4.07 9.72/4.07 R is empty. 9.72/4.07 Q is empty. 9.72/4.07 We have to consider all minimal (P,Q,R)-chains. 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (16) QDPSizeChangeProof (EQUIVALENT) 9.72/4.07 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.72/4.07 9.72/4.07 From the DPs we obtained the following set of size-change graphs: 9.72/4.07 *new_psPs(:(vx60, vx61), vx4, h) -> new_psPs(vx61, vx4, h) 9.72/4.07 The graph contains the following edges 1 > 1, 2 >= 2, 3 >= 3 9.72/4.07 9.72/4.07 9.72/4.07 ---------------------------------------- 9.72/4.07 9.72/4.07 (17) 9.72/4.07 YES 9.91/4.10 EOF