7.52/3.41 YES 9.11/3.87 proof of /export/starexec/sandbox/benchmark/theBenchmark.hs 9.11/3.87 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 9.11/3.87 9.11/3.87 9.11/3.87 H-Termination with start terms of the given HASKELL could be proven: 9.11/3.87 9.11/3.87 (0) HASKELL 9.11/3.87 (1) BR [EQUIVALENT, 0 ms] 9.11/3.87 (2) HASKELL 9.11/3.87 (3) COR [EQUIVALENT, 0 ms] 9.11/3.87 (4) HASKELL 9.11/3.87 (5) Narrow [EQUIVALENT, 27 ms] 9.11/3.87 (6) YES 9.11/3.87 9.11/3.87 9.11/3.87 ---------------------------------------- 9.11/3.87 9.11/3.87 (0) 9.11/3.87 Obligation: 9.11/3.87 mainModule Main 9.11/3.87 module Main where { 9.11/3.87 import qualified Prelude; 9.11/3.87 data MyBool = MyTrue | MyFalse ; 9.11/3.87 9.11/3.87 data Ordering = LT | EQ | GT ; 9.11/3.87 9.11/3.87 data Tup0 = Tup0 ; 9.11/3.87 9.11/3.87 compareTup0 :: Tup0 -> Tup0 -> Ordering; 9.11/3.87 compareTup0 Tup0 Tup0 = EQ; 9.11/3.87 9.11/3.87 esEsOrdering :: Ordering -> Ordering -> MyBool; 9.11/3.87 esEsOrdering LT LT = MyTrue; 9.11/3.87 esEsOrdering LT EQ = MyFalse; 9.11/3.87 esEsOrdering LT GT = MyFalse; 9.11/3.87 esEsOrdering EQ LT = MyFalse; 9.11/3.87 esEsOrdering EQ EQ = MyTrue; 9.11/3.87 esEsOrdering EQ GT = MyFalse; 9.11/3.87 esEsOrdering GT LT = MyFalse; 9.11/3.87 esEsOrdering GT EQ = MyFalse; 9.11/3.87 esEsOrdering GT GT = MyTrue; 9.11/3.87 9.11/3.87 gtTup0 :: Tup0 -> Tup0 -> MyBool; 9.11/3.87 gtTup0 x y = esEsOrdering (compareTup0 x y) GT; 9.11/3.87 9.11/3.87 } 9.11/3.87 9.11/3.87 ---------------------------------------- 9.11/3.87 9.11/3.87 (1) BR (EQUIVALENT) 9.11/3.87 Replaced joker patterns by fresh variables and removed binding patterns. 9.11/3.87 ---------------------------------------- 9.11/3.87 9.11/3.87 (2) 9.11/3.87 Obligation: 9.11/3.87 mainModule Main 9.11/3.87 module Main where { 9.11/3.87 import qualified Prelude; 9.11/3.87 data MyBool = MyTrue | MyFalse ; 9.11/3.87 9.11/3.87 data Ordering = LT | EQ | GT ; 9.11/3.87 9.11/3.87 data Tup0 = Tup0 ; 9.11/3.87 9.11/3.87 compareTup0 :: Tup0 -> Tup0 -> Ordering; 9.11/3.87 compareTup0 Tup0 Tup0 = EQ; 9.11/3.87 9.11/3.87 esEsOrdering :: Ordering -> Ordering -> MyBool; 9.11/3.87 esEsOrdering LT LT = MyTrue; 9.11/3.87 esEsOrdering LT EQ = MyFalse; 9.11/3.87 esEsOrdering LT GT = MyFalse; 9.11/3.87 esEsOrdering EQ LT = MyFalse; 9.11/3.87 esEsOrdering EQ EQ = MyTrue; 9.11/3.87 esEsOrdering EQ GT = MyFalse; 9.11/3.87 esEsOrdering GT LT = MyFalse; 9.11/3.87 esEsOrdering GT EQ = MyFalse; 9.11/3.87 esEsOrdering GT GT = MyTrue; 9.11/3.87 9.11/3.87 gtTup0 :: Tup0 -> Tup0 -> MyBool; 9.11/3.87 gtTup0 x y = esEsOrdering (compareTup0 x y) GT; 9.11/3.87 9.11/3.87 } 9.11/3.87 9.11/3.87 ---------------------------------------- 9.11/3.87 9.11/3.87 (3) COR (EQUIVALENT) 9.11/3.87 Cond Reductions: 9.11/3.87 The following Function with conditions 9.11/3.87 "undefined |Falseundefined; 9.11/3.87 " 9.11/3.87 is transformed to 9.11/3.87 "undefined = undefined1; 9.11/3.87 " 9.11/3.87 "undefined0 True = undefined; 9.11/3.87 " 9.11/3.87 "undefined1 = undefined0 False; 9.11/3.87 " 9.11/3.87 9.11/3.87 ---------------------------------------- 9.11/3.87 9.11/3.87 (4) 9.11/3.87 Obligation: 9.11/3.87 mainModule Main 9.11/3.87 module Main where { 9.11/3.87 import qualified Prelude; 9.11/3.87 data MyBool = MyTrue | MyFalse ; 9.11/3.87 9.11/3.87 data Ordering = LT | EQ | GT ; 9.11/3.87 9.11/3.87 data Tup0 = Tup0 ; 9.11/3.87 9.11/3.87 compareTup0 :: Tup0 -> Tup0 -> Ordering; 9.11/3.87 compareTup0 Tup0 Tup0 = EQ; 9.11/3.87 9.11/3.87 esEsOrdering :: Ordering -> Ordering -> MyBool; 9.11/3.87 esEsOrdering LT LT = MyTrue; 9.11/3.87 esEsOrdering LT EQ = MyFalse; 9.11/3.87 esEsOrdering LT GT = MyFalse; 9.11/3.87 esEsOrdering EQ LT = MyFalse; 9.11/3.87 esEsOrdering EQ EQ = MyTrue; 9.11/3.87 esEsOrdering EQ GT = MyFalse; 9.11/3.87 esEsOrdering GT LT = MyFalse; 9.11/3.87 esEsOrdering GT EQ = MyFalse; 9.11/3.87 esEsOrdering GT GT = MyTrue; 9.11/3.87 9.11/3.87 gtTup0 :: Tup0 -> Tup0 -> MyBool; 9.11/3.87 gtTup0 x y = esEsOrdering (compareTup0 x y) GT; 9.11/3.87 9.11/3.87 } 9.11/3.87 9.11/3.87 ---------------------------------------- 9.11/3.87 9.11/3.87 (5) Narrow (EQUIVALENT) 9.11/3.87 Haskell To QDPs 9.11/3.87 9.11/3.87 digraph dp_graph { 9.11/3.87 node [outthreshold=100, inthreshold=100];1[label="gtTup0",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 9.11/3.87 3[label="gtTup0 vx3",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3]; 9.11/3.87 4[label="gtTup0 vx3 vx4",fontsize=16,color="black",shape="triangle"];4 -> 5[label="",style="solid", color="black", weight=3]; 9.11/3.87 5[label="esEsOrdering (compareTup0 vx3 vx4) GT",fontsize=16,color="burlywood",shape="box"];10[label="vx3/Tup0",fontsize=10,color="white",style="solid",shape="box"];5 -> 10[label="",style="solid", color="burlywood", weight=9]; 9.11/3.87 10 -> 6[label="",style="solid", color="burlywood", weight=3]; 9.11/3.87 6[label="esEsOrdering (compareTup0 Tup0 vx4) GT",fontsize=16,color="burlywood",shape="box"];11[label="vx4/Tup0",fontsize=10,color="white",style="solid",shape="box"];6 -> 11[label="",style="solid", color="burlywood", weight=9]; 9.11/3.87 11 -> 7[label="",style="solid", color="burlywood", weight=3]; 9.11/3.87 7[label="esEsOrdering (compareTup0 Tup0 Tup0) GT",fontsize=16,color="black",shape="box"];7 -> 8[label="",style="solid", color="black", weight=3]; 9.11/3.87 8[label="esEsOrdering EQ GT",fontsize=16,color="black",shape="box"];8 -> 9[label="",style="solid", color="black", weight=3]; 9.11/3.87 9[label="MyFalse",fontsize=16,color="green",shape="box"];} 9.11/3.87 9.11/3.87 ---------------------------------------- 9.11/3.87 9.11/3.87 (6) 9.11/3.87 YES 9.11/3.90 EOF