/export/starexec/sandbox2/solver/bin/starexec_run_standard /export/starexec/sandbox2/benchmark/theBenchmark.hs /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.hs # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty H-Termination with start terms of the given HASKELL could be proven: (0) HASKELL (1) BR [EQUIVALENT, 0 ms] (2) HASKELL (3) COR [EQUIVALENT, 0 ms] (4) HASKELL (5) Narrow [SOUND, 0 ms] (6) AND (7) QDP (8) QDPSizeChangeProof [EQUIVALENT, 0 ms] (9) YES (10) QDP (11) QDPSizeChangeProof [EQUIVALENT, 0 ms] (12) YES ---------------------------------------- (0) Obligation: mainModule Main module Main where { import qualified Prelude; data Main.Char = Char MyInt ; data List a = Cons a (List a) | Nil ; data MyBool = MyTrue | MyFalse ; data MyInt = Pos Main.Nat | Neg Main.Nat ; data Main.Nat = Succ Main.Nat | Zero ; all :: (a -> MyBool) -> List a -> MyBool; all p = pt and (map p); and :: List MyBool -> MyBool; and = foldr asAs MyTrue; asAs :: MyBool -> MyBool -> MyBool; asAs MyFalse x = MyFalse; asAs MyTrue x = x; esEsChar :: Main.Char -> Main.Char -> MyBool; esEsChar = primEqChar; foldr :: (b -> a -> a) -> a -> List b -> a; foldr f z Nil = z; foldr f z (Cons x xs) = f x (foldr f z xs); fsEsChar :: Main.Char -> Main.Char -> MyBool; fsEsChar x y = not (esEsChar x y); map :: (a -> b) -> List a -> List b; map f Nil = Nil; map f (Cons x xs) = Cons (f x) (map f xs); not :: MyBool -> MyBool; not MyTrue = MyFalse; not MyFalse = MyTrue; notElemChar :: Main.Char -> List Main.Char -> MyBool; notElemChar = pt all fsEsChar; primEqChar :: Main.Char -> Main.Char -> MyBool; primEqChar (Main.Char x) (Main.Char y) = primEqInt x y; primEqInt :: MyInt -> MyInt -> MyBool; primEqInt (Main.Pos (Main.Succ x)) (Main.Pos (Main.Succ y)) = primEqNat x y; primEqInt (Main.Neg (Main.Succ x)) (Main.Neg (Main.Succ y)) = primEqNat x y; primEqInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = MyTrue; primEqInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = MyTrue; primEqInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = MyTrue; primEqInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = MyTrue; primEqInt vv vw = MyFalse; primEqNat :: Main.Nat -> Main.Nat -> MyBool; primEqNat Main.Zero Main.Zero = MyTrue; primEqNat Main.Zero (Main.Succ y) = MyFalse; primEqNat (Main.Succ x) Main.Zero = MyFalse; primEqNat (Main.Succ x) (Main.Succ y) = primEqNat x y; pt :: (c -> b) -> (a -> c) -> a -> b; pt f g x = f (g x); } ---------------------------------------- (1) BR (EQUIVALENT) Replaced joker patterns by fresh variables and removed binding patterns. ---------------------------------------- (2) Obligation: mainModule Main module Main where { import qualified Prelude; data Main.Char = Char MyInt ; data List a = Cons a (List a) | Nil ; data MyBool = MyTrue | MyFalse ; data MyInt = Pos Main.Nat | Neg Main.Nat ; data Main.Nat = Succ Main.Nat | Zero ; all :: (a -> MyBool) -> List a -> MyBool; all p = pt and (map p); and :: List MyBool -> MyBool; and = foldr asAs MyTrue; asAs :: MyBool -> MyBool -> MyBool; asAs MyFalse x = MyFalse; asAs MyTrue x = x; esEsChar :: Main.Char -> Main.Char -> MyBool; esEsChar = primEqChar; foldr :: (a -> b -> b) -> b -> List a -> b; foldr f z Nil = z; foldr f z (Cons x xs) = f x (foldr f z xs); fsEsChar :: Main.Char -> Main.Char -> MyBool; fsEsChar x y = not (esEsChar x y); map :: (b -> a) -> List b -> List a; map f Nil = Nil; map f (Cons x xs) = Cons (f x) (map f xs); not :: MyBool -> MyBool; not MyTrue = MyFalse; not MyFalse = MyTrue; notElemChar :: Main.Char -> List Main.Char -> MyBool; notElemChar = pt all fsEsChar; primEqChar :: Main.Char -> Main.Char -> MyBool; primEqChar (Main.Char x) (Main.Char y) = primEqInt x y; primEqInt :: MyInt -> MyInt -> MyBool; primEqInt (Main.Pos (Main.Succ x)) (Main.Pos (Main.Succ y)) = primEqNat x y; primEqInt (Main.Neg (Main.Succ x)) (Main.Neg (Main.Succ y)) = primEqNat x y; primEqInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = MyTrue; primEqInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = MyTrue; primEqInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = MyTrue; primEqInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = MyTrue; primEqInt vv vw = MyFalse; primEqNat :: Main.Nat -> Main.Nat -> MyBool; primEqNat Main.Zero Main.Zero = MyTrue; primEqNat Main.Zero (Main.Succ y) = MyFalse; primEqNat (Main.Succ x) Main.Zero = MyFalse; primEqNat (Main.Succ x) (Main.Succ y) = primEqNat x y; pt :: (b -> a) -> (c -> b) -> c -> a; pt f g x = f (g x); } ---------------------------------------- (3) COR (EQUIVALENT) Cond Reductions: The following Function with conditions "undefined |Falseundefined; " is transformed to "undefined = undefined1; " "undefined0 True = undefined; " "undefined1 = undefined0 False; " ---------------------------------------- (4) Obligation: mainModule Main module Main where { import qualified Prelude; data Main.Char = Char MyInt ; data List a = Cons a (List a) | Nil ; data MyBool = MyTrue | MyFalse ; data MyInt = Pos Main.Nat | Neg Main.Nat ; data Main.Nat = Succ Main.Nat | Zero ; all :: (a -> MyBool) -> List a -> MyBool; all p = pt and (map p); and :: List MyBool -> MyBool; and = foldr asAs MyTrue; asAs :: MyBool -> MyBool -> MyBool; asAs MyFalse x = MyFalse; asAs MyTrue x = x; esEsChar :: Main.Char -> Main.Char -> MyBool; esEsChar = primEqChar; foldr :: (a -> b -> b) -> b -> List a -> b; foldr f z Nil = z; foldr f z (Cons x xs) = f x (foldr f z xs); fsEsChar :: Main.Char -> Main.Char -> MyBool; fsEsChar x y = not (esEsChar x y); map :: (b -> a) -> List b -> List a; map f Nil = Nil; map f (Cons x xs) = Cons (f x) (map f xs); not :: MyBool -> MyBool; not MyTrue = MyFalse; not MyFalse = MyTrue; notElemChar :: Main.Char -> List Main.Char -> MyBool; notElemChar = pt all fsEsChar; primEqChar :: Main.Char -> Main.Char -> MyBool; primEqChar (Main.Char x) (Main.Char y) = primEqInt x y; primEqInt :: MyInt -> MyInt -> MyBool; primEqInt (Main.Pos (Main.Succ x)) (Main.Pos (Main.Succ y)) = primEqNat x y; primEqInt (Main.Neg (Main.Succ x)) (Main.Neg (Main.Succ y)) = primEqNat x y; primEqInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = MyTrue; primEqInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = MyTrue; primEqInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = MyTrue; primEqInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = MyTrue; primEqInt vv vw = MyFalse; primEqNat :: Main.Nat -> Main.Nat -> MyBool; primEqNat Main.Zero Main.Zero = MyTrue; primEqNat Main.Zero (Main.Succ y) = MyFalse; primEqNat (Main.Succ x) Main.Zero = MyFalse; primEqNat (Main.Succ x) (Main.Succ y) = primEqNat x y; pt :: (b -> a) -> (c -> b) -> c -> a; pt f g x = f (g x); } ---------------------------------------- (5) Narrow (SOUND) Haskell To QDPs digraph dp_graph { node [outthreshold=100, inthreshold=100];1[label="notElemChar",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 3[label="notElemChar vz3",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3]; 4[label="notElemChar vz3 vz4",fontsize=16,color="black",shape="triangle"];4 -> 5[label="",style="solid", color="black", weight=3]; 5[label="pt all fsEsChar vz3 vz4",fontsize=16,color="black",shape="box"];5 -> 6[label="",style="solid", color="black", weight=3]; 6[label="all (fsEsChar vz3) vz4",fontsize=16,color="black",shape="box"];6 -> 7[label="",style="solid", color="black", weight=3]; 7[label="pt and (map (fsEsChar vz3)) vz4",fontsize=16,color="black",shape="box"];7 -> 8[label="",style="solid", color="black", weight=3]; 8[label="and (map (fsEsChar vz3) vz4)",fontsize=16,color="black",shape="box"];8 -> 9[label="",style="solid", color="black", weight=3]; 9[label="foldr asAs MyTrue (map (fsEsChar vz3) vz4)",fontsize=16,color="burlywood",shape="triangle"];82[label="vz4/Cons vz40 vz41",fontsize=10,color="white",style="solid",shape="box"];9 -> 82[label="",style="solid", color="burlywood", weight=9]; 82 -> 10[label="",style="solid", color="burlywood", weight=3]; 83[label="vz4/Nil",fontsize=10,color="white",style="solid",shape="box"];9 -> 83[label="",style="solid", color="burlywood", weight=9]; 83 -> 11[label="",style="solid", color="burlywood", weight=3]; 10[label="foldr asAs MyTrue (map (fsEsChar vz3) (Cons vz40 vz41))",fontsize=16,color="black",shape="box"];10 -> 12[label="",style="solid", color="black", weight=3]; 11[label="foldr asAs MyTrue (map (fsEsChar vz3) Nil)",fontsize=16,color="black",shape="box"];11 -> 13[label="",style="solid", color="black", weight=3]; 12[label="foldr asAs MyTrue (Cons (fsEsChar vz3 vz40) (map (fsEsChar vz3) vz41))",fontsize=16,color="black",shape="box"];12 -> 14[label="",style="solid", color="black", weight=3]; 13[label="foldr asAs MyTrue Nil",fontsize=16,color="black",shape="box"];13 -> 15[label="",style="solid", color="black", weight=3]; 14 -> 16[label="",style="dashed", color="red", weight=0]; 14[label="asAs (fsEsChar vz3 vz40) (foldr asAs MyTrue (map (fsEsChar vz3) vz41))",fontsize=16,color="magenta"];14 -> 17[label="",style="dashed", color="magenta", weight=3]; 15[label="MyTrue",fontsize=16,color="green",shape="box"];17 -> 9[label="",style="dashed", color="red", weight=0]; 17[label="foldr asAs MyTrue (map (fsEsChar vz3) vz41)",fontsize=16,color="magenta"];17 -> 18[label="",style="dashed", color="magenta", weight=3]; 16[label="asAs (fsEsChar vz3 vz40) vz5",fontsize=16,color="black",shape="triangle"];16 -> 19[label="",style="solid", color="black", weight=3]; 18[label="vz41",fontsize=16,color="green",shape="box"];19[label="asAs (not (esEsChar vz3 vz40)) vz5",fontsize=16,color="black",shape="box"];19 -> 20[label="",style="solid", color="black", weight=3]; 20[label="asAs (not (primEqChar vz3 vz40)) vz5",fontsize=16,color="burlywood",shape="box"];84[label="vz3/Char vz30",fontsize=10,color="white",style="solid",shape="box"];20 -> 84[label="",style="solid", color="burlywood", weight=9]; 84 -> 21[label="",style="solid", color="burlywood", weight=3]; 21[label="asAs (not (primEqChar (Char vz30) vz40)) vz5",fontsize=16,color="burlywood",shape="box"];85[label="vz40/Char vz400",fontsize=10,color="white",style="solid",shape="box"];21 -> 85[label="",style="solid", color="burlywood", weight=9]; 85 -> 22[label="",style="solid", color="burlywood", weight=3]; 22[label="asAs (not (primEqChar (Char vz30) (Char vz400))) vz5",fontsize=16,color="black",shape="box"];22 -> 23[label="",style="solid", color="black", weight=3]; 23[label="asAs (not (primEqInt vz30 vz400)) vz5",fontsize=16,color="burlywood",shape="box"];86[label="vz30/Pos vz300",fontsize=10,color="white",style="solid",shape="box"];23 -> 86[label="",style="solid", color="burlywood", weight=9]; 86 -> 24[label="",style="solid", color="burlywood", weight=3]; 87[label="vz30/Neg vz300",fontsize=10,color="white",style="solid",shape="box"];23 -> 87[label="",style="solid", color="burlywood", weight=9]; 87 -> 25[label="",style="solid", color="burlywood", weight=3]; 24[label="asAs (not (primEqInt (Pos vz300) vz400)) vz5",fontsize=16,color="burlywood",shape="box"];88[label="vz300/Succ vz3000",fontsize=10,color="white",style="solid",shape="box"];24 -> 88[label="",style="solid", color="burlywood", weight=9]; 88 -> 26[label="",style="solid", color="burlywood", weight=3]; 89[label="vz300/Zero",fontsize=10,color="white",style="solid",shape="box"];24 -> 89[label="",style="solid", color="burlywood", weight=9]; 89 -> 27[label="",style="solid", color="burlywood", weight=3]; 25[label="asAs (not (primEqInt (Neg vz300) vz400)) vz5",fontsize=16,color="burlywood",shape="box"];90[label="vz300/Succ vz3000",fontsize=10,color="white",style="solid",shape="box"];25 -> 90[label="",style="solid", color="burlywood", weight=9]; 90 -> 28[label="",style="solid", color="burlywood", weight=3]; 91[label="vz300/Zero",fontsize=10,color="white",style="solid",shape="box"];25 -> 91[label="",style="solid", color="burlywood", weight=9]; 91 -> 29[label="",style="solid", color="burlywood", weight=3]; 26[label="asAs (not (primEqInt (Pos (Succ vz3000)) vz400)) vz5",fontsize=16,color="burlywood",shape="box"];92[label="vz400/Pos vz4000",fontsize=10,color="white",style="solid",shape="box"];26 -> 92[label="",style="solid", color="burlywood", weight=9]; 92 -> 30[label="",style="solid", color="burlywood", weight=3]; 93[label="vz400/Neg vz4000",fontsize=10,color="white",style="solid",shape="box"];26 -> 93[label="",style="solid", color="burlywood", weight=9]; 93 -> 31[label="",style="solid", color="burlywood", weight=3]; 27[label="asAs (not (primEqInt (Pos Zero) vz400)) vz5",fontsize=16,color="burlywood",shape="box"];94[label="vz400/Pos vz4000",fontsize=10,color="white",style="solid",shape="box"];27 -> 94[label="",style="solid", color="burlywood", weight=9]; 94 -> 32[label="",style="solid", color="burlywood", weight=3]; 95[label="vz400/Neg vz4000",fontsize=10,color="white",style="solid",shape="box"];27 -> 95[label="",style="solid", color="burlywood", weight=9]; 95 -> 33[label="",style="solid", color="burlywood", weight=3]; 28[label="asAs (not (primEqInt (Neg (Succ vz3000)) vz400)) vz5",fontsize=16,color="burlywood",shape="box"];96[label="vz400/Pos vz4000",fontsize=10,color="white",style="solid",shape="box"];28 -> 96[label="",style="solid", color="burlywood", weight=9]; 96 -> 34[label="",style="solid", color="burlywood", weight=3]; 97[label="vz400/Neg vz4000",fontsize=10,color="white",style="solid",shape="box"];28 -> 97[label="",style="solid", color="burlywood", weight=9]; 97 -> 35[label="",style="solid", color="burlywood", weight=3]; 29[label="asAs (not (primEqInt (Neg Zero) vz400)) vz5",fontsize=16,color="burlywood",shape="box"];98[label="vz400/Pos vz4000",fontsize=10,color="white",style="solid",shape="box"];29 -> 98[label="",style="solid", color="burlywood", weight=9]; 98 -> 36[label="",style="solid", color="burlywood", weight=3]; 99[label="vz400/Neg vz4000",fontsize=10,color="white",style="solid",shape="box"];29 -> 99[label="",style="solid", color="burlywood", weight=9]; 99 -> 37[label="",style="solid", color="burlywood", weight=3]; 30[label="asAs (not (primEqInt (Pos (Succ vz3000)) (Pos vz4000))) vz5",fontsize=16,color="burlywood",shape="box"];100[label="vz4000/Succ vz40000",fontsize=10,color="white",style="solid",shape="box"];30 -> 100[label="",style="solid", color="burlywood", weight=9]; 100 -> 38[label="",style="solid", color="burlywood", weight=3]; 101[label="vz4000/Zero",fontsize=10,color="white",style="solid",shape="box"];30 -> 101[label="",style="solid", color="burlywood", weight=9]; 101 -> 39[label="",style="solid", color="burlywood", weight=3]; 31[label="asAs (not (primEqInt (Pos (Succ vz3000)) (Neg vz4000))) vz5",fontsize=16,color="black",shape="box"];31 -> 40[label="",style="solid", color="black", weight=3]; 32[label="asAs (not (primEqInt (Pos Zero) (Pos vz4000))) vz5",fontsize=16,color="burlywood",shape="box"];102[label="vz4000/Succ vz40000",fontsize=10,color="white",style="solid",shape="box"];32 -> 102[label="",style="solid", color="burlywood", weight=9]; 102 -> 41[label="",style="solid", color="burlywood", weight=3]; 103[label="vz4000/Zero",fontsize=10,color="white",style="solid",shape="box"];32 -> 103[label="",style="solid", color="burlywood", weight=9]; 103 -> 42[label="",style="solid", color="burlywood", weight=3]; 33[label="asAs (not (primEqInt (Pos Zero) (Neg vz4000))) vz5",fontsize=16,color="burlywood",shape="box"];104[label="vz4000/Succ vz40000",fontsize=10,color="white",style="solid",shape="box"];33 -> 104[label="",style="solid", color="burlywood", weight=9]; 104 -> 43[label="",style="solid", color="burlywood", weight=3]; 105[label="vz4000/Zero",fontsize=10,color="white",style="solid",shape="box"];33 -> 105[label="",style="solid", color="burlywood", weight=9]; 105 -> 44[label="",style="solid", color="burlywood", weight=3]; 34[label="asAs (not (primEqInt (Neg (Succ vz3000)) (Pos vz4000))) vz5",fontsize=16,color="black",shape="box"];34 -> 45[label="",style="solid", color="black", weight=3]; 35[label="asAs (not (primEqInt (Neg (Succ vz3000)) (Neg vz4000))) vz5",fontsize=16,color="burlywood",shape="box"];106[label="vz4000/Succ vz40000",fontsize=10,color="white",style="solid",shape="box"];35 -> 106[label="",style="solid", color="burlywood", weight=9]; 106 -> 46[label="",style="solid", color="burlywood", weight=3]; 107[label="vz4000/Zero",fontsize=10,color="white",style="solid",shape="box"];35 -> 107[label="",style="solid", color="burlywood", weight=9]; 107 -> 47[label="",style="solid", color="burlywood", weight=3]; 36[label="asAs (not (primEqInt (Neg Zero) (Pos vz4000))) vz5",fontsize=16,color="burlywood",shape="box"];108[label="vz4000/Succ vz40000",fontsize=10,color="white",style="solid",shape="box"];36 -> 108[label="",style="solid", color="burlywood", weight=9]; 108 -> 48[label="",style="solid", color="burlywood", weight=3]; 109[label="vz4000/Zero",fontsize=10,color="white",style="solid",shape="box"];36 -> 109[label="",style="solid", color="burlywood", weight=9]; 109 -> 49[label="",style="solid", color="burlywood", weight=3]; 37[label="asAs (not (primEqInt (Neg Zero) (Neg vz4000))) vz5",fontsize=16,color="burlywood",shape="box"];110[label="vz4000/Succ vz40000",fontsize=10,color="white",style="solid",shape="box"];37 -> 110[label="",style="solid", color="burlywood", weight=9]; 110 -> 50[label="",style="solid", color="burlywood", weight=3]; 111[label="vz4000/Zero",fontsize=10,color="white",style="solid",shape="box"];37 -> 111[label="",style="solid", color="burlywood", weight=9]; 111 -> 51[label="",style="solid", color="burlywood", weight=3]; 38[label="asAs (not (primEqInt (Pos (Succ vz3000)) (Pos (Succ vz40000)))) vz5",fontsize=16,color="black",shape="box"];38 -> 52[label="",style="solid", color="black", weight=3]; 39[label="asAs (not (primEqInt (Pos (Succ vz3000)) (Pos Zero))) vz5",fontsize=16,color="black",shape="box"];39 -> 53[label="",style="solid", color="black", weight=3]; 40[label="asAs (not MyFalse) vz5",fontsize=16,color="black",shape="triangle"];40 -> 54[label="",style="solid", color="black", weight=3]; 41[label="asAs (not (primEqInt (Pos Zero) (Pos (Succ vz40000)))) vz5",fontsize=16,color="black",shape="box"];41 -> 55[label="",style="solid", color="black", weight=3]; 42[label="asAs (not (primEqInt (Pos Zero) (Pos Zero))) vz5",fontsize=16,color="black",shape="box"];42 -> 56[label="",style="solid", color="black", weight=3]; 43[label="asAs (not (primEqInt (Pos Zero) (Neg (Succ vz40000)))) vz5",fontsize=16,color="black",shape="box"];43 -> 57[label="",style="solid", color="black", weight=3]; 44[label="asAs (not (primEqInt (Pos Zero) (Neg Zero))) vz5",fontsize=16,color="black",shape="box"];44 -> 58[label="",style="solid", color="black", weight=3]; 45 -> 40[label="",style="dashed", color="red", weight=0]; 45[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];46[label="asAs (not (primEqInt (Neg (Succ vz3000)) (Neg (Succ vz40000)))) vz5",fontsize=16,color="black",shape="box"];46 -> 59[label="",style="solid", color="black", weight=3]; 47[label="asAs (not (primEqInt (Neg (Succ vz3000)) (Neg Zero))) vz5",fontsize=16,color="black",shape="box"];47 -> 60[label="",style="solid", color="black", weight=3]; 48[label="asAs (not (primEqInt (Neg Zero) (Pos (Succ vz40000)))) vz5",fontsize=16,color="black",shape="box"];48 -> 61[label="",style="solid", color="black", weight=3]; 49[label="asAs (not (primEqInt (Neg Zero) (Pos Zero))) vz5",fontsize=16,color="black",shape="box"];49 -> 62[label="",style="solid", color="black", weight=3]; 50[label="asAs (not (primEqInt (Neg Zero) (Neg (Succ vz40000)))) vz5",fontsize=16,color="black",shape="box"];50 -> 63[label="",style="solid", color="black", weight=3]; 51[label="asAs (not (primEqInt (Neg Zero) (Neg Zero))) vz5",fontsize=16,color="black",shape="box"];51 -> 64[label="",style="solid", color="black", weight=3]; 52[label="asAs (not (primEqNat vz3000 vz40000)) vz5",fontsize=16,color="burlywood",shape="triangle"];112[label="vz3000/Succ vz30000",fontsize=10,color="white",style="solid",shape="box"];52 -> 112[label="",style="solid", color="burlywood", weight=9]; 112 -> 65[label="",style="solid", color="burlywood", weight=3]; 113[label="vz3000/Zero",fontsize=10,color="white",style="solid",shape="box"];52 -> 113[label="",style="solid", color="burlywood", weight=9]; 113 -> 66[label="",style="solid", color="burlywood", weight=3]; 53 -> 40[label="",style="dashed", color="red", weight=0]; 53[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];54[label="asAs MyTrue vz5",fontsize=16,color="black",shape="box"];54 -> 67[label="",style="solid", color="black", weight=3]; 55 -> 40[label="",style="dashed", color="red", weight=0]; 55[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];56[label="asAs (not MyTrue) vz5",fontsize=16,color="black",shape="triangle"];56 -> 68[label="",style="solid", color="black", weight=3]; 57 -> 40[label="",style="dashed", color="red", weight=0]; 57[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];58 -> 56[label="",style="dashed", color="red", weight=0]; 58[label="asAs (not MyTrue) vz5",fontsize=16,color="magenta"];59 -> 52[label="",style="dashed", color="red", weight=0]; 59[label="asAs (not (primEqNat vz3000 vz40000)) vz5",fontsize=16,color="magenta"];59 -> 69[label="",style="dashed", color="magenta", weight=3]; 59 -> 70[label="",style="dashed", color="magenta", weight=3]; 60 -> 40[label="",style="dashed", color="red", weight=0]; 60[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];61 -> 40[label="",style="dashed", color="red", weight=0]; 61[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];62 -> 56[label="",style="dashed", color="red", weight=0]; 62[label="asAs (not MyTrue) vz5",fontsize=16,color="magenta"];63 -> 40[label="",style="dashed", color="red", weight=0]; 63[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];64 -> 56[label="",style="dashed", color="red", weight=0]; 64[label="asAs (not MyTrue) vz5",fontsize=16,color="magenta"];65[label="asAs (not (primEqNat (Succ vz30000) vz40000)) vz5",fontsize=16,color="burlywood",shape="box"];114[label="vz40000/Succ vz400000",fontsize=10,color="white",style="solid",shape="box"];65 -> 114[label="",style="solid", color="burlywood", weight=9]; 114 -> 71[label="",style="solid", color="burlywood", weight=3]; 115[label="vz40000/Zero",fontsize=10,color="white",style="solid",shape="box"];65 -> 115[label="",style="solid", color="burlywood", weight=9]; 115 -> 72[label="",style="solid", color="burlywood", weight=3]; 66[label="asAs (not (primEqNat Zero vz40000)) vz5",fontsize=16,color="burlywood",shape="box"];116[label="vz40000/Succ vz400000",fontsize=10,color="white",style="solid",shape="box"];66 -> 116[label="",style="solid", color="burlywood", weight=9]; 116 -> 73[label="",style="solid", color="burlywood", weight=3]; 117[label="vz40000/Zero",fontsize=10,color="white",style="solid",shape="box"];66 -> 117[label="",style="solid", color="burlywood", weight=9]; 117 -> 74[label="",style="solid", color="burlywood", weight=3]; 67[label="vz5",fontsize=16,color="green",shape="box"];68[label="asAs MyFalse vz5",fontsize=16,color="black",shape="box"];68 -> 75[label="",style="solid", color="black", weight=3]; 69[label="vz40000",fontsize=16,color="green",shape="box"];70[label="vz3000",fontsize=16,color="green",shape="box"];71[label="asAs (not (primEqNat (Succ vz30000) (Succ vz400000))) vz5",fontsize=16,color="black",shape="box"];71 -> 76[label="",style="solid", color="black", weight=3]; 72[label="asAs (not (primEqNat (Succ vz30000) Zero)) vz5",fontsize=16,color="black",shape="box"];72 -> 77[label="",style="solid", color="black", weight=3]; 73[label="asAs (not (primEqNat Zero (Succ vz400000))) vz5",fontsize=16,color="black",shape="box"];73 -> 78[label="",style="solid", color="black", weight=3]; 74[label="asAs (not (primEqNat Zero Zero)) vz5",fontsize=16,color="black",shape="box"];74 -> 79[label="",style="solid", color="black", weight=3]; 75[label="MyFalse",fontsize=16,color="green",shape="box"];76 -> 52[label="",style="dashed", color="red", weight=0]; 76[label="asAs (not (primEqNat vz30000 vz400000)) vz5",fontsize=16,color="magenta"];76 -> 80[label="",style="dashed", color="magenta", weight=3]; 76 -> 81[label="",style="dashed", color="magenta", weight=3]; 77 -> 40[label="",style="dashed", color="red", weight=0]; 77[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];78 -> 40[label="",style="dashed", color="red", weight=0]; 78[label="asAs (not MyFalse) vz5",fontsize=16,color="magenta"];79 -> 56[label="",style="dashed", color="red", weight=0]; 79[label="asAs (not MyTrue) vz5",fontsize=16,color="magenta"];80[label="vz400000",fontsize=16,color="green",shape="box"];81[label="vz30000",fontsize=16,color="green",shape="box"];} ---------------------------------------- (6) Complex Obligation (AND) ---------------------------------------- (7) Obligation: Q DP problem: The TRS P consists of the following rules: new_foldr(vz3, Cons(vz40, vz41)) -> new_foldr(vz3, vz41) R is empty. Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (8) 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_foldr(vz3, Cons(vz40, vz41)) -> new_foldr(vz3, vz41) The graph contains the following edges 1 >= 1, 2 > 2 ---------------------------------------- (9) YES ---------------------------------------- (10) Obligation: Q DP problem: The TRS P consists of the following rules: new_asAs(Main.Succ(vz30000), Main.Succ(vz400000), vz5) -> new_asAs(vz30000, vz400000, vz5) R is empty. Q is empty. We have to consider all minimal (P,Q,R)-chains. ---------------------------------------- (11) 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_asAs(Main.Succ(vz30000), Main.Succ(vz400000), vz5) -> new_asAs(vz30000, vz400000, vz5) The graph contains the following edges 1 > 1, 2 > 2, 3 >= 3 ---------------------------------------- (12) YES