/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.hs /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox/benchmark/theBenchmark.hs # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty H-Termination with start terms of the given HASKELL could be proven: (0) HASKELL (1) LR [EQUIVALENT, 0 ms] (2) HASKELL (3) BR [EQUIVALENT, 0 ms] (4) HASKELL (5) COR [EQUIVALENT, 0 ms] (6) HASKELL (7) Narrow [SOUND, 0 ms] (8) QDP (9) QDPSizeChangeProof [EQUIVALENT, 0 ms] (10) YES ---------------------------------------- (0) Obligation: mainModule Main module Maybe where { import qualified Main; import qualified Monad; import qualified Prelude; } module Main where { import qualified Maybe; import qualified Monad; import qualified Prelude; } module Monad where { import qualified Main; import qualified Maybe; import qualified Prelude; zipWithM :: Monad d => (a -> b -> d c) -> [a] -> [b] -> d [c]; zipWithM f xs ys = sequence (zipWith f xs ys); } ---------------------------------------- (1) LR (EQUIVALENT) Lambda Reductions: The following Lambda expression "\xs->return (x : xs)" is transformed to "sequence0 x xs = return (x : xs); " The following Lambda expression "\x->sequence cs >>= sequence0 x" is transformed to "sequence1 cs x = sequence cs >>= sequence0 x; " ---------------------------------------- (2) Obligation: mainModule Main module Maybe where { import qualified Main; import qualified Monad; import qualified Prelude; } module Main where { import qualified Maybe; import qualified Monad; import qualified Prelude; } module Monad where { import qualified Main; import qualified Maybe; import qualified Prelude; zipWithM :: Monad a => (b -> c -> a d) -> [b] -> [c] -> a [d]; zipWithM f xs ys = sequence (zipWith f xs ys); } ---------------------------------------- (3) BR (EQUIVALENT) Replaced joker patterns by fresh variables and removed binding patterns. ---------------------------------------- (4) Obligation: mainModule Main module Maybe where { import qualified Main; import qualified Monad; import qualified Prelude; } module Main where { import qualified Maybe; import qualified Monad; import qualified Prelude; } module Monad where { import qualified Main; import qualified Maybe; import qualified Prelude; zipWithM :: Monad c => (a -> b -> c d) -> [a] -> [b] -> c [d]; zipWithM f xs ys = sequence (zipWith f xs ys); } ---------------------------------------- (5) COR (EQUIVALENT) Cond Reductions: The following Function with conditions "undefined |Falseundefined; " is transformed to "undefined = undefined1; " "undefined0 True = undefined; " "undefined1 = undefined0 False; " ---------------------------------------- (6) Obligation: mainModule Main module Maybe where { import qualified Main; import qualified Monad; import qualified Prelude; } module Main where { import qualified Maybe; import qualified Monad; import qualified Prelude; } module Monad where { import qualified Main; import qualified Maybe; import qualified Prelude; zipWithM :: Monad a => (b -> c -> a d) -> [b] -> [c] -> a [d]; zipWithM f xs ys = sequence (zipWith f xs ys); } ---------------------------------------- (7) Narrow (SOUND) Haskell To QDPs digraph dp_graph { node [outthreshold=100, inthreshold=100];1[label="Monad.zipWithM",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 3[label="Monad.zipWithM wv3",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3]; 4[label="Monad.zipWithM wv3 wv4",fontsize=16,color="grey",shape="box"];4 -> 5[label="",style="dashed", color="grey", weight=3]; 5[label="Monad.zipWithM wv3 wv4 wv5",fontsize=16,color="black",shape="triangle"];5 -> 6[label="",style="solid", color="black", weight=3]; 6[label="sequence (zipWith wv3 wv4 wv5)",fontsize=16,color="burlywood",shape="triangle"];50[label="wv4/wv40 : wv41",fontsize=10,color="white",style="solid",shape="box"];6 -> 50[label="",style="solid", color="burlywood", weight=9]; 50 -> 7[label="",style="solid", color="burlywood", weight=3]; 51[label="wv4/[]",fontsize=10,color="white",style="solid",shape="box"];6 -> 51[label="",style="solid", color="burlywood", weight=9]; 51 -> 8[label="",style="solid", color="burlywood", weight=3]; 7[label="sequence (zipWith wv3 (wv40 : wv41) wv5)",fontsize=16,color="burlywood",shape="box"];52[label="wv5/wv50 : wv51",fontsize=10,color="white",style="solid",shape="box"];7 -> 52[label="",style="solid", color="burlywood", weight=9]; 52 -> 9[label="",style="solid", color="burlywood", weight=3]; 53[label="wv5/[]",fontsize=10,color="white",style="solid",shape="box"];7 -> 53[label="",style="solid", color="burlywood", weight=9]; 53 -> 10[label="",style="solid", color="burlywood", weight=3]; 8[label="sequence (zipWith wv3 [] wv5)",fontsize=16,color="black",shape="box"];8 -> 11[label="",style="solid", color="black", weight=3]; 9[label="sequence (zipWith wv3 (wv40 : wv41) (wv50 : wv51))",fontsize=16,color="black",shape="box"];9 -> 12[label="",style="solid", color="black", weight=3]; 10[label="sequence (zipWith wv3 (wv40 : wv41) [])",fontsize=16,color="black",shape="box"];10 -> 13[label="",style="solid", color="black", weight=3]; 11[label="sequence []",fontsize=16,color="black",shape="triangle"];11 -> 14[label="",style="solid", color="black", weight=3]; 12[label="sequence (wv3 wv40 wv50 : zipWith wv3 wv41 wv51)",fontsize=16,color="black",shape="box"];12 -> 15[label="",style="solid", color="black", weight=3]; 13 -> 11[label="",style="dashed", color="red", weight=0]; 13[label="sequence []",fontsize=16,color="magenta"];14[label="return []",fontsize=16,color="black",shape="box"];14 -> 16[label="",style="solid", color="black", weight=3]; 15[label="wv3 wv40 wv50 >>= sequence1 (zipWith wv3 wv41 wv51)",fontsize=16,color="black",shape="box"];15 -> 17[label="",style="solid", color="black", weight=3]; 16[label="primretIO []",fontsize=16,color="black",shape="box"];16 -> 18[label="",style="solid", color="black", weight=3]; 17 -> 19[label="",style="dashed", color="red", weight=0]; 17[label="primbindIO (wv3 wv40 wv50) (sequence1 (zipWith wv3 wv41 wv51))",fontsize=16,color="magenta"];17 -> 20[label="",style="dashed", color="magenta", weight=3]; 18[label="AProVE_IO []",fontsize=16,color="green",shape="box"];20[label="wv3 wv40 wv50",fontsize=16,color="green",shape="box"];20 -> 27[label="",style="dashed", color="green", weight=3]; 20 -> 28[label="",style="dashed", color="green", weight=3]; 19[label="primbindIO wv6 (sequence1 (zipWith wv3 wv41 wv51))",fontsize=16,color="burlywood",shape="triangle"];54[label="wv6/IO wv60",fontsize=10,color="white",style="solid",shape="box"];19 -> 54[label="",style="solid", color="burlywood", weight=9]; 54 -> 23[label="",style="solid", color="burlywood", weight=3]; 55[label="wv6/AProVE_IO wv60",fontsize=10,color="white",style="solid",shape="box"];19 -> 55[label="",style="solid", color="burlywood", weight=9]; 55 -> 24[label="",style="solid", color="burlywood", weight=3]; 56[label="wv6/AProVE_Exception wv60",fontsize=10,color="white",style="solid",shape="box"];19 -> 56[label="",style="solid", color="burlywood", weight=9]; 56 -> 25[label="",style="solid", color="burlywood", weight=3]; 57[label="wv6/AProVE_Error wv60",fontsize=10,color="white",style="solid",shape="box"];19 -> 57[label="",style="solid", color="burlywood", weight=9]; 57 -> 26[label="",style="solid", color="burlywood", weight=3]; 27[label="wv40",fontsize=16,color="green",shape="box"];28[label="wv50",fontsize=16,color="green",shape="box"];23[label="primbindIO (IO wv60) (sequence1 (zipWith wv3 wv41 wv51))",fontsize=16,color="black",shape="box"];23 -> 29[label="",style="solid", color="black", weight=3]; 24[label="primbindIO (AProVE_IO wv60) (sequence1 (zipWith wv3 wv41 wv51))",fontsize=16,color="black",shape="box"];24 -> 30[label="",style="solid", color="black", weight=3]; 25[label="primbindIO (AProVE_Exception wv60) (sequence1 (zipWith wv3 wv41 wv51))",fontsize=16,color="black",shape="box"];25 -> 31[label="",style="solid", color="black", weight=3]; 26[label="primbindIO (AProVE_Error wv60) (sequence1 (zipWith wv3 wv41 wv51))",fontsize=16,color="black",shape="box"];26 -> 32[label="",style="solid", color="black", weight=3]; 29[label="error []",fontsize=16,color="red",shape="box"];30[label="sequence1 (zipWith wv3 wv41 wv51) wv60",fontsize=16,color="black",shape="box"];30 -> 33[label="",style="solid", color="black", weight=3]; 31[label="AProVE_Exception wv60",fontsize=16,color="green",shape="box"];32[label="AProVE_Error wv60",fontsize=16,color="green",shape="box"];33 -> 34[label="",style="dashed", color="red", weight=0]; 33[label="sequence (zipWith wv3 wv41 wv51) >>= sequence0 wv60",fontsize=16,color="magenta"];33 -> 35[label="",style="dashed", color="magenta", weight=3]; 35 -> 6[label="",style="dashed", color="red", weight=0]; 35[label="sequence (zipWith wv3 wv41 wv51)",fontsize=16,color="magenta"];35 -> 36[label="",style="dashed", color="magenta", weight=3]; 35 -> 37[label="",style="dashed", color="magenta", weight=3]; 34[label="wv7 >>= sequence0 wv60",fontsize=16,color="black",shape="triangle"];34 -> 38[label="",style="solid", color="black", weight=3]; 36[label="wv41",fontsize=16,color="green",shape="box"];37[label="wv51",fontsize=16,color="green",shape="box"];38[label="primbindIO wv7 (sequence0 wv60)",fontsize=16,color="burlywood",shape="box"];58[label="wv7/IO wv70",fontsize=10,color="white",style="solid",shape="box"];38 -> 58[label="",style="solid", color="burlywood", weight=9]; 58 -> 39[label="",style="solid", color="burlywood", weight=3]; 59[label="wv7/AProVE_IO wv70",fontsize=10,color="white",style="solid",shape="box"];38 -> 59[label="",style="solid", color="burlywood", weight=9]; 59 -> 40[label="",style="solid", color="burlywood", weight=3]; 60[label="wv7/AProVE_Exception wv70",fontsize=10,color="white",style="solid",shape="box"];38 -> 60[label="",style="solid", color="burlywood", weight=9]; 60 -> 41[label="",style="solid", color="burlywood", weight=3]; 61[label="wv7/AProVE_Error wv70",fontsize=10,color="white",style="solid",shape="box"];38 -> 61[label="",style="solid", color="burlywood", weight=9]; 61 -> 42[label="",style="solid", color="burlywood", weight=3]; 39[label="primbindIO (IO wv70) (sequence0 wv60)",fontsize=16,color="black",shape="box"];39 -> 43[label="",style="solid", color="black", weight=3]; 40[label="primbindIO (AProVE_IO wv70) (sequence0 wv60)",fontsize=16,color="black",shape="box"];40 -> 44[label="",style="solid", color="black", weight=3]; 41[label="primbindIO (AProVE_Exception wv70) (sequence0 wv60)",fontsize=16,color="black",shape="box"];41 -> 45[label="",style="solid", color="black", weight=3]; 42[label="primbindIO (AProVE_Error wv70) (sequence0 wv60)",fontsize=16,color="black",shape="box"];42 -> 46[label="",style="solid", color="black", weight=3]; 43[label="error []",fontsize=16,color="red",shape="box"];44[label="sequence0 wv60 wv70",fontsize=16,color="black",shape="box"];44 -> 47[label="",style="solid", color="black", weight=3]; 45[label="AProVE_Exception wv70",fontsize=16,color="green",shape="box"];46[label="AProVE_Error wv70",fontsize=16,color="green",shape="box"];47[label="return (wv60 : wv70)",fontsize=16,color="black",shape="box"];47 -> 48[label="",style="solid", color="black", weight=3]; 48[label="primretIO (wv60 : wv70)",fontsize=16,color="black",shape="box"];48 -> 49[label="",style="solid", color="black", weight=3]; 49[label="AProVE_IO (wv60 : wv70)",fontsize=16,color="green",shape="box"];} ---------------------------------------- (8) Obligation: Q DP problem: The TRS P consists of the following rules: new_sequence(wv3, :(wv40, wv41), :(wv50, wv51), h, ba, bb) -> new_primbindIO(wv3, wv41, wv51, h, ba, bb) new_primbindIO(wv3, wv41, wv51, h, ba, bb) -> new_sequence(wv3, wv41, wv51, h, ba, bb) R is empty. Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (9) QDPSizeChangeProof (EQUIVALENT) 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. From the DPs we obtained the following set of size-change graphs: *new_primbindIO(wv3, wv41, wv51, h, ba, bb) -> new_sequence(wv3, wv41, wv51, h, ba, bb) The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 >= 4, 5 >= 5, 6 >= 6 *new_sequence(wv3, :(wv40, wv41), :(wv50, wv51), h, ba, bb) -> new_primbindIO(wv3, wv41, wv51, h, ba, bb) The graph contains the following edges 1 >= 1, 2 > 2, 3 > 3, 4 >= 4, 5 >= 5, 6 >= 6 ---------------------------------------- (10) YES