8.30/3.74 YES 10.27/4.29 proof of /export/starexec/sandbox/benchmark/theBenchmark.hs 10.27/4.29 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 10.27/4.29 10.27/4.29 10.27/4.29 H-Termination with start terms of the given HASKELL could be proven: 10.27/4.29 10.27/4.29 (0) HASKELL 10.27/4.29 (1) BR [EQUIVALENT, 0 ms] 10.27/4.29 (2) HASKELL 10.27/4.29 (3) COR [EQUIVALENT, 0 ms] 10.27/4.29 (4) HASKELL 10.27/4.29 (5) Narrow [SOUND, 0 ms] 10.27/4.29 (6) AND 10.27/4.29 (7) QDP 10.27/4.29 (8) QDPSizeChangeProof [EQUIVALENT, 0 ms] 10.27/4.29 (9) YES 10.27/4.29 (10) QDP 10.27/4.29 (11) QDPSizeChangeProof [EQUIVALENT, 0 ms] 10.27/4.29 (12) YES 10.27/4.29 10.27/4.29 10.27/4.29 ---------------------------------------- 10.27/4.29 10.27/4.29 (0) 10.27/4.29 Obligation: 10.27/4.29 mainModule Main 10.27/4.29 module Main where { 10.27/4.29 import qualified Prelude; 10.27/4.29 data MyBool = MyTrue | MyFalse ; 10.27/4.29 10.27/4.29 data MyInt = Pos Main.Nat | Neg Main.Nat ; 10.27/4.29 10.27/4.29 data Main.Nat = Succ Main.Nat | Zero ; 10.27/4.29 10.27/4.29 data Ordering = LT | EQ | GT ; 10.27/4.29 10.27/4.29 compareMyInt :: MyInt -> MyInt -> Ordering; 10.27/4.29 compareMyInt = primCmpInt; 10.27/4.29 10.27/4.29 esEsMyInt :: MyInt -> MyInt -> MyBool; 10.27/4.29 esEsMyInt = primEqInt; 10.27/4.29 10.27/4.29 esEsOrdering :: Ordering -> Ordering -> MyBool; 10.27/4.29 esEsOrdering LT LT = MyTrue; 10.27/4.29 esEsOrdering LT EQ = MyFalse; 10.27/4.29 esEsOrdering LT GT = MyFalse; 10.27/4.29 esEsOrdering EQ LT = MyFalse; 10.27/4.29 esEsOrdering EQ EQ = MyTrue; 10.27/4.29 esEsOrdering EQ GT = MyFalse; 10.27/4.29 esEsOrdering GT LT = MyFalse; 10.27/4.29 esEsOrdering GT EQ = MyFalse; 10.27/4.29 esEsOrdering GT GT = MyTrue; 10.27/4.29 10.27/4.29 fromIntMyInt :: MyInt -> MyInt; 10.27/4.29 fromIntMyInt x = x; 10.27/4.29 10.27/4.29 gtMyInt :: MyInt -> MyInt -> MyBool; 10.27/4.29 gtMyInt x y = esEsOrdering (compareMyInt x y) GT; 10.27/4.29 10.27/4.29 otherwise :: MyBool; 10.27/4.29 otherwise = MyTrue; 10.27/4.29 10.27/4.29 primCmpInt :: MyInt -> MyInt -> Ordering; 10.27/4.29 primCmpInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = EQ; 10.27/4.29 primCmpInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = EQ; 10.27/4.29 primCmpInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = EQ; 10.27/4.29 primCmpInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = EQ; 10.27/4.29 primCmpInt (Main.Pos x) (Main.Pos y) = primCmpNat x y; 10.27/4.29 primCmpInt (Main.Pos x) (Main.Neg y) = GT; 10.27/4.29 primCmpInt (Main.Neg x) (Main.Pos y) = LT; 10.27/4.29 primCmpInt (Main.Neg x) (Main.Neg y) = primCmpNat y x; 10.27/4.29 10.27/4.29 primCmpNat :: Main.Nat -> Main.Nat -> Ordering; 10.27/4.29 primCmpNat Main.Zero Main.Zero = EQ; 10.27/4.29 primCmpNat Main.Zero (Main.Succ y) = LT; 10.27/4.29 primCmpNat (Main.Succ x) Main.Zero = GT; 10.27/4.29 primCmpNat (Main.Succ x) (Main.Succ y) = primCmpNat x y; 10.27/4.29 10.27/4.29 primEqInt :: MyInt -> MyInt -> MyBool; 10.27/4.29 primEqInt (Main.Pos (Main.Succ x)) (Main.Pos (Main.Succ y)) = primEqNat x y; 10.27/4.29 primEqInt (Main.Neg (Main.Succ x)) (Main.Neg (Main.Succ y)) = primEqNat x y; 10.27/4.29 primEqInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = MyTrue; 10.27/4.29 primEqInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = MyTrue; 10.27/4.29 primEqInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = MyTrue; 10.27/4.29 primEqInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = MyTrue; 10.27/4.29 primEqInt vv vw = MyFalse; 10.27/4.29 10.27/4.29 primEqNat :: Main.Nat -> Main.Nat -> MyBool; 10.27/4.29 primEqNat Main.Zero Main.Zero = MyTrue; 10.27/4.29 primEqNat Main.Zero (Main.Succ y) = MyFalse; 10.27/4.29 primEqNat (Main.Succ x) Main.Zero = MyFalse; 10.27/4.29 primEqNat (Main.Succ x) (Main.Succ y) = primEqNat x y; 10.27/4.29 10.27/4.29 signumMyInt :: MyInt -> MyInt; 10.27/4.29 signumMyInt = signumReal; 10.27/4.29 10.27/4.29 signumReal x = signumReal3 x; 10.27/4.29 10.27/4.29 signumReal0 x MyTrue = fromIntMyInt (Main.Neg (Main.Succ Main.Zero)); 10.27/4.29 10.27/4.29 signumReal1 x MyTrue = fromIntMyInt (Main.Pos (Main.Succ Main.Zero)); 10.27/4.29 signumReal1 x MyFalse = signumReal0 x otherwise; 10.27/4.29 10.27/4.29 signumReal2 x MyTrue = fromIntMyInt (Main.Pos Main.Zero); 10.27/4.29 signumReal2 x MyFalse = signumReal1 x (gtMyInt x (fromIntMyInt (Main.Pos Main.Zero))); 10.27/4.29 10.27/4.29 signumReal3 x = signumReal2 x (esEsMyInt x (fromIntMyInt (Main.Pos Main.Zero))); 10.27/4.29 10.27/4.29 } 10.27/4.29 10.27/4.29 ---------------------------------------- 10.27/4.29 10.27/4.29 (1) BR (EQUIVALENT) 10.27/4.29 Replaced joker patterns by fresh variables and removed binding patterns. 10.27/4.29 ---------------------------------------- 10.27/4.29 10.27/4.29 (2) 10.27/4.29 Obligation: 10.27/4.29 mainModule Main 10.27/4.29 module Main where { 10.27/4.29 import qualified Prelude; 10.27/4.29 data MyBool = MyTrue | MyFalse ; 10.27/4.29 10.27/4.29 data MyInt = Pos Main.Nat | Neg Main.Nat ; 10.27/4.29 10.27/4.29 data Main.Nat = Succ Main.Nat | Zero ; 10.27/4.29 10.27/4.29 data Ordering = LT | EQ | GT ; 10.27/4.29 10.27/4.29 compareMyInt :: MyInt -> MyInt -> Ordering; 10.27/4.29 compareMyInt = primCmpInt; 10.27/4.29 10.27/4.29 esEsMyInt :: MyInt -> MyInt -> MyBool; 10.27/4.29 esEsMyInt = primEqInt; 10.27/4.29 10.27/4.29 esEsOrdering :: Ordering -> Ordering -> MyBool; 10.27/4.29 esEsOrdering LT LT = MyTrue; 10.27/4.29 esEsOrdering LT EQ = MyFalse; 10.27/4.29 esEsOrdering LT GT = MyFalse; 10.27/4.29 esEsOrdering EQ LT = MyFalse; 10.27/4.29 esEsOrdering EQ EQ = MyTrue; 10.51/4.29 esEsOrdering EQ GT = MyFalse; 10.51/4.29 esEsOrdering GT LT = MyFalse; 10.51/4.29 esEsOrdering GT EQ = MyFalse; 10.51/4.29 esEsOrdering GT GT = MyTrue; 10.51/4.29 10.51/4.29 fromIntMyInt :: MyInt -> MyInt; 10.51/4.29 fromIntMyInt x = x; 10.51/4.29 10.51/4.29 gtMyInt :: MyInt -> MyInt -> MyBool; 10.51/4.29 gtMyInt x y = esEsOrdering (compareMyInt x y) GT; 10.51/4.29 10.51/4.29 otherwise :: MyBool; 10.51/4.29 otherwise = MyTrue; 10.51/4.29 10.51/4.29 primCmpInt :: MyInt -> MyInt -> Ordering; 10.51/4.29 primCmpInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Pos x) (Main.Pos y) = primCmpNat x y; 10.51/4.29 primCmpInt (Main.Pos x) (Main.Neg y) = GT; 10.51/4.29 primCmpInt (Main.Neg x) (Main.Pos y) = LT; 10.51/4.29 primCmpInt (Main.Neg x) (Main.Neg y) = primCmpNat y x; 10.51/4.29 10.51/4.29 primCmpNat :: Main.Nat -> Main.Nat -> Ordering; 10.51/4.29 primCmpNat Main.Zero Main.Zero = EQ; 10.51/4.29 primCmpNat Main.Zero (Main.Succ y) = LT; 10.51/4.29 primCmpNat (Main.Succ x) Main.Zero = GT; 10.51/4.29 primCmpNat (Main.Succ x) (Main.Succ y) = primCmpNat x y; 10.51/4.29 10.51/4.29 primEqInt :: MyInt -> MyInt -> MyBool; 10.51/4.29 primEqInt (Main.Pos (Main.Succ x)) (Main.Pos (Main.Succ y)) = primEqNat x y; 10.51/4.29 primEqInt (Main.Neg (Main.Succ x)) (Main.Neg (Main.Succ y)) = primEqNat x y; 10.51/4.29 primEqInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = MyTrue; 10.51/4.29 primEqInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = MyTrue; 10.51/4.29 primEqInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = MyTrue; 10.51/4.29 primEqInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = MyTrue; 10.51/4.29 primEqInt vv vw = MyFalse; 10.51/4.29 10.51/4.29 primEqNat :: Main.Nat -> Main.Nat -> MyBool; 10.51/4.29 primEqNat Main.Zero Main.Zero = MyTrue; 10.51/4.29 primEqNat Main.Zero (Main.Succ y) = MyFalse; 10.51/4.29 primEqNat (Main.Succ x) Main.Zero = MyFalse; 10.51/4.29 primEqNat (Main.Succ x) (Main.Succ y) = primEqNat x y; 10.51/4.29 10.51/4.29 signumMyInt :: MyInt -> MyInt; 10.51/4.29 signumMyInt = signumReal; 10.51/4.29 10.51/4.29 signumReal x = signumReal3 x; 10.51/4.29 10.51/4.29 signumReal0 x MyTrue = fromIntMyInt (Main.Neg (Main.Succ Main.Zero)); 10.51/4.29 10.51/4.29 signumReal1 x MyTrue = fromIntMyInt (Main.Pos (Main.Succ Main.Zero)); 10.51/4.29 signumReal1 x MyFalse = signumReal0 x otherwise; 10.51/4.29 10.51/4.29 signumReal2 x MyTrue = fromIntMyInt (Main.Pos Main.Zero); 10.51/4.29 signumReal2 x MyFalse = signumReal1 x (gtMyInt x (fromIntMyInt (Main.Pos Main.Zero))); 10.51/4.29 10.51/4.29 signumReal3 x = signumReal2 x (esEsMyInt x (fromIntMyInt (Main.Pos Main.Zero))); 10.51/4.29 10.51/4.29 } 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (3) COR (EQUIVALENT) 10.51/4.29 Cond Reductions: 10.51/4.29 The following Function with conditions 10.51/4.29 "undefined |Falseundefined; 10.51/4.29 " 10.51/4.29 is transformed to 10.51/4.29 "undefined = undefined1; 10.51/4.29 " 10.51/4.29 "undefined0 True = undefined; 10.51/4.29 " 10.51/4.29 "undefined1 = undefined0 False; 10.51/4.29 " 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (4) 10.51/4.29 Obligation: 10.51/4.29 mainModule Main 10.51/4.29 module Main where { 10.51/4.29 import qualified Prelude; 10.51/4.29 data MyBool = MyTrue | MyFalse ; 10.51/4.29 10.51/4.29 data MyInt = Pos Main.Nat | Neg Main.Nat ; 10.51/4.29 10.51/4.29 data Main.Nat = Succ Main.Nat | Zero ; 10.51/4.29 10.51/4.29 data Ordering = LT | EQ | GT ; 10.51/4.29 10.51/4.29 compareMyInt :: MyInt -> MyInt -> Ordering; 10.51/4.29 compareMyInt = primCmpInt; 10.51/4.29 10.51/4.29 esEsMyInt :: MyInt -> MyInt -> MyBool; 10.51/4.29 esEsMyInt = primEqInt; 10.51/4.29 10.51/4.29 esEsOrdering :: Ordering -> Ordering -> MyBool; 10.51/4.29 esEsOrdering LT LT = MyTrue; 10.51/4.29 esEsOrdering LT EQ = MyFalse; 10.51/4.29 esEsOrdering LT GT = MyFalse; 10.51/4.29 esEsOrdering EQ LT = MyFalse; 10.51/4.29 esEsOrdering EQ EQ = MyTrue; 10.51/4.29 esEsOrdering EQ GT = MyFalse; 10.51/4.29 esEsOrdering GT LT = MyFalse; 10.51/4.29 esEsOrdering GT EQ = MyFalse; 10.51/4.29 esEsOrdering GT GT = MyTrue; 10.51/4.29 10.51/4.29 fromIntMyInt :: MyInt -> MyInt; 10.51/4.29 fromIntMyInt x = x; 10.51/4.29 10.51/4.29 gtMyInt :: MyInt -> MyInt -> MyBool; 10.51/4.29 gtMyInt x y = esEsOrdering (compareMyInt x y) GT; 10.51/4.29 10.51/4.29 otherwise :: MyBool; 10.51/4.29 otherwise = MyTrue; 10.51/4.29 10.51/4.29 primCmpInt :: MyInt -> MyInt -> Ordering; 10.51/4.29 primCmpInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = EQ; 10.51/4.29 primCmpInt (Main.Pos x) (Main.Pos y) = primCmpNat x y; 10.51/4.29 primCmpInt (Main.Pos x) (Main.Neg y) = GT; 10.51/4.29 primCmpInt (Main.Neg x) (Main.Pos y) = LT; 10.51/4.29 primCmpInt (Main.Neg x) (Main.Neg y) = primCmpNat y x; 10.51/4.29 10.51/4.29 primCmpNat :: Main.Nat -> Main.Nat -> Ordering; 10.51/4.29 primCmpNat Main.Zero Main.Zero = EQ; 10.51/4.29 primCmpNat Main.Zero (Main.Succ y) = LT; 10.51/4.29 primCmpNat (Main.Succ x) Main.Zero = GT; 10.51/4.29 primCmpNat (Main.Succ x) (Main.Succ y) = primCmpNat x y; 10.51/4.29 10.51/4.29 primEqInt :: MyInt -> MyInt -> MyBool; 10.51/4.29 primEqInt (Main.Pos (Main.Succ x)) (Main.Pos (Main.Succ y)) = primEqNat x y; 10.51/4.29 primEqInt (Main.Neg (Main.Succ x)) (Main.Neg (Main.Succ y)) = primEqNat x y; 10.51/4.29 primEqInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = MyTrue; 10.51/4.29 primEqInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = MyTrue; 10.51/4.29 primEqInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = MyTrue; 10.51/4.29 primEqInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = MyTrue; 10.51/4.29 primEqInt vv vw = MyFalse; 10.51/4.29 10.51/4.29 primEqNat :: Main.Nat -> Main.Nat -> MyBool; 10.51/4.29 primEqNat Main.Zero Main.Zero = MyTrue; 10.51/4.29 primEqNat Main.Zero (Main.Succ y) = MyFalse; 10.51/4.29 primEqNat (Main.Succ x) Main.Zero = MyFalse; 10.51/4.29 primEqNat (Main.Succ x) (Main.Succ y) = primEqNat x y; 10.51/4.29 10.51/4.29 signumMyInt :: MyInt -> MyInt; 10.51/4.29 signumMyInt = signumReal; 10.51/4.29 10.51/4.29 signumReal x = signumReal3 x; 10.51/4.29 10.51/4.29 signumReal0 x MyTrue = fromIntMyInt (Main.Neg (Main.Succ Main.Zero)); 10.51/4.29 10.51/4.29 signumReal1 x MyTrue = fromIntMyInt (Main.Pos (Main.Succ Main.Zero)); 10.51/4.29 signumReal1 x MyFalse = signumReal0 x otherwise; 10.51/4.29 10.51/4.29 signumReal2 x MyTrue = fromIntMyInt (Main.Pos Main.Zero); 10.51/4.29 signumReal2 x MyFalse = signumReal1 x (gtMyInt x (fromIntMyInt (Main.Pos Main.Zero))); 10.51/4.29 10.51/4.29 signumReal3 x = signumReal2 x (esEsMyInt x (fromIntMyInt (Main.Pos Main.Zero))); 10.51/4.29 10.51/4.29 } 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (5) Narrow (SOUND) 10.51/4.29 Haskell To QDPs 10.51/4.29 10.51/4.29 digraph dp_graph { 10.51/4.29 node [outthreshold=100, inthreshold=100];1[label="signumMyInt",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 10.51/4.29 3[label="signumMyInt vz3",fontsize=16,color="black",shape="triangle"];3 -> 4[label="",style="solid", color="black", weight=3]; 10.51/4.29 4[label="signumReal vz3",fontsize=16,color="black",shape="box"];4 -> 5[label="",style="solid", color="black", weight=3]; 10.51/4.29 5[label="signumReal3 vz3",fontsize=16,color="black",shape="box"];5 -> 6[label="",style="solid", color="black", weight=3]; 10.51/4.29 6[label="signumReal2 vz3 (esEsMyInt vz3 (fromIntMyInt (Pos Zero)))",fontsize=16,color="black",shape="box"];6 -> 7[label="",style="solid", color="black", weight=3]; 10.51/4.29 7[label="signumReal2 vz3 (primEqInt vz3 (fromIntMyInt (Pos Zero)))",fontsize=16,color="burlywood",shape="box"];305[label="vz3/Pos vz30",fontsize=10,color="white",style="solid",shape="box"];7 -> 305[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 305 -> 8[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 306[label="vz3/Neg vz30",fontsize=10,color="white",style="solid",shape="box"];7 -> 306[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 306 -> 9[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 8[label="signumReal2 (Pos vz30) (primEqInt (Pos vz30) (fromIntMyInt (Pos Zero)))",fontsize=16,color="burlywood",shape="box"];307[label="vz30/Succ vz300",fontsize=10,color="white",style="solid",shape="box"];8 -> 307[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 307 -> 10[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 308[label="vz30/Zero",fontsize=10,color="white",style="solid",shape="box"];8 -> 308[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 308 -> 11[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 9[label="signumReal2 (Neg vz30) (primEqInt (Neg vz30) (fromIntMyInt (Pos Zero)))",fontsize=16,color="burlywood",shape="box"];309[label="vz30/Succ vz300",fontsize=10,color="white",style="solid",shape="box"];9 -> 309[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 309 -> 12[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 310[label="vz30/Zero",fontsize=10,color="white",style="solid",shape="box"];9 -> 310[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 310 -> 13[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 10[label="signumReal2 (Pos (Succ vz300)) (primEqInt (Pos (Succ vz300)) (fromIntMyInt (Pos Zero)))",fontsize=16,color="black",shape="box"];10 -> 14[label="",style="solid", color="black", weight=3]; 10.51/4.29 11[label="signumReal2 (Pos Zero) (primEqInt (Pos Zero) (fromIntMyInt (Pos Zero)))",fontsize=16,color="black",shape="box"];11 -> 15[label="",style="solid", color="black", weight=3]; 10.51/4.29 12[label="signumReal2 (Neg (Succ vz300)) (primEqInt (Neg (Succ vz300)) (fromIntMyInt (Pos Zero)))",fontsize=16,color="black",shape="box"];12 -> 16[label="",style="solid", color="black", weight=3]; 10.51/4.29 13[label="signumReal2 (Neg Zero) (primEqInt (Neg Zero) (fromIntMyInt (Pos Zero)))",fontsize=16,color="black",shape="box"];13 -> 17[label="",style="solid", color="black", weight=3]; 10.51/4.29 14[label="signumReal2 (Pos (Succ vz300)) (primEqInt (Pos (Succ vz300)) (Pos Zero))",fontsize=16,color="black",shape="box"];14 -> 18[label="",style="solid", color="black", weight=3]; 10.51/4.29 15[label="signumReal2 (Pos Zero) (primEqInt (Pos Zero) (Pos Zero))",fontsize=16,color="black",shape="box"];15 -> 19[label="",style="solid", color="black", weight=3]; 10.51/4.29 16[label="signumReal2 (Neg (Succ vz300)) (primEqInt (Neg (Succ vz300)) (Pos Zero))",fontsize=16,color="black",shape="box"];16 -> 20[label="",style="solid", color="black", weight=3]; 10.51/4.29 17[label="signumReal2 (Neg Zero) (primEqInt (Neg Zero) (Pos Zero))",fontsize=16,color="black",shape="box"];17 -> 21[label="",style="solid", color="black", weight=3]; 10.51/4.29 18[label="signumReal2 (Pos (Succ vz300)) MyFalse",fontsize=16,color="black",shape="box"];18 -> 22[label="",style="solid", color="black", weight=3]; 10.51/4.29 19[label="signumReal2 (Pos Zero) MyTrue",fontsize=16,color="black",shape="box"];19 -> 23[label="",style="solid", color="black", weight=3]; 10.51/4.29 20[label="signumReal2 (Neg (Succ vz300)) MyFalse",fontsize=16,color="black",shape="box"];20 -> 24[label="",style="solid", color="black", weight=3]; 10.51/4.29 21[label="signumReal2 (Neg Zero) MyTrue",fontsize=16,color="black",shape="box"];21 -> 25[label="",style="solid", color="black", weight=3]; 10.51/4.29 22[label="signumReal1 (Pos (Succ vz300)) (gtMyInt (Pos (Succ vz300)) (fromIntMyInt (Pos Zero)))",fontsize=16,color="black",shape="box"];22 -> 26[label="",style="solid", color="black", weight=3]; 10.51/4.29 23[label="fromIntMyInt (Pos Zero)",fontsize=16,color="black",shape="triangle"];23 -> 27[label="",style="solid", color="black", weight=3]; 10.51/4.29 24 -> 28[label="",style="dashed", color="red", weight=0]; 10.51/4.29 24[label="signumReal1 (Neg (Succ vz300)) (gtMyInt (Neg (Succ vz300)) (fromIntMyInt (Pos Zero)))",fontsize=16,color="magenta"];24 -> 29[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 25 -> 23[label="",style="dashed", color="red", weight=0]; 10.51/4.29 25[label="fromIntMyInt (Pos Zero)",fontsize=16,color="magenta"];26 -> 30[label="",style="dashed", color="red", weight=0]; 10.51/4.29 26[label="signumReal1 (Pos (Succ vz300)) (esEsOrdering (compareMyInt (Pos (Succ vz300)) (fromIntMyInt (Pos Zero))) GT)",fontsize=16,color="magenta"];26 -> 31[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 27[label="Pos Zero",fontsize=16,color="green",shape="box"];29 -> 23[label="",style="dashed", color="red", weight=0]; 10.51/4.29 29[label="fromIntMyInt (Pos Zero)",fontsize=16,color="magenta"];28[label="signumReal1 (Neg (Succ vz300)) (gtMyInt (Neg (Succ vz300)) vz4)",fontsize=16,color="black",shape="triangle"];28 -> 32[label="",style="solid", color="black", weight=3]; 10.51/4.29 31 -> 23[label="",style="dashed", color="red", weight=0]; 10.51/4.29 31[label="fromIntMyInt (Pos Zero)",fontsize=16,color="magenta"];30[label="signumReal1 (Pos (Succ vz300)) (esEsOrdering (compareMyInt (Pos (Succ vz300)) vz5) GT)",fontsize=16,color="black",shape="triangle"];30 -> 33[label="",style="solid", color="black", weight=3]; 10.51/4.29 32[label="signumReal1 (Neg (Succ vz300)) (esEsOrdering (compareMyInt (Neg (Succ vz300)) vz4) GT)",fontsize=16,color="black",shape="box"];32 -> 34[label="",style="solid", color="black", weight=3]; 10.51/4.29 33[label="signumReal1 (Pos (Succ vz300)) (esEsOrdering (primCmpInt (Pos (Succ vz300)) vz5) GT)",fontsize=16,color="burlywood",shape="box"];311[label="vz5/Pos vz50",fontsize=10,color="white",style="solid",shape="box"];33 -> 311[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 311 -> 35[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 312[label="vz5/Neg vz50",fontsize=10,color="white",style="solid",shape="box"];33 -> 312[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 312 -> 36[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 34[label="signumReal1 (Neg (Succ vz300)) (esEsOrdering (primCmpInt (Neg (Succ vz300)) vz4) GT)",fontsize=16,color="burlywood",shape="box"];313[label="vz4/Pos vz40",fontsize=10,color="white",style="solid",shape="box"];34 -> 313[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 313 -> 37[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 314[label="vz4/Neg vz40",fontsize=10,color="white",style="solid",shape="box"];34 -> 314[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 314 -> 38[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 35[label="signumReal1 (Pos (Succ vz300)) (esEsOrdering (primCmpInt (Pos (Succ vz300)) (Pos vz50)) GT)",fontsize=16,color="black",shape="box"];35 -> 39[label="",style="solid", color="black", weight=3]; 10.51/4.29 36[label="signumReal1 (Pos (Succ vz300)) (esEsOrdering (primCmpInt (Pos (Succ vz300)) (Neg vz50)) GT)",fontsize=16,color="black",shape="box"];36 -> 40[label="",style="solid", color="black", weight=3]; 10.51/4.29 37[label="signumReal1 (Neg (Succ vz300)) (esEsOrdering (primCmpInt (Neg (Succ vz300)) (Pos vz40)) GT)",fontsize=16,color="black",shape="box"];37 -> 41[label="",style="solid", color="black", weight=3]; 10.51/4.29 38[label="signumReal1 (Neg (Succ vz300)) (esEsOrdering (primCmpInt (Neg (Succ vz300)) (Neg vz40)) GT)",fontsize=16,color="black",shape="box"];38 -> 42[label="",style="solid", color="black", weight=3]; 10.51/4.29 39 -> 202[label="",style="dashed", color="red", weight=0]; 10.51/4.29 39[label="signumReal1 (Pos (Succ vz300)) (esEsOrdering (primCmpNat (Succ vz300) vz50) GT)",fontsize=16,color="magenta"];39 -> 203[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 39 -> 204[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 39 -> 205[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 40[label="signumReal1 (Pos (Succ vz300)) (esEsOrdering GT GT)",fontsize=16,color="black",shape="triangle"];40 -> 45[label="",style="solid", color="black", weight=3]; 10.51/4.29 41[label="signumReal1 (Neg (Succ vz300)) (esEsOrdering LT GT)",fontsize=16,color="black",shape="triangle"];41 -> 46[label="",style="solid", color="black", weight=3]; 10.51/4.29 42 -> 260[label="",style="dashed", color="red", weight=0]; 10.51/4.29 42[label="signumReal1 (Neg (Succ vz300)) (esEsOrdering (primCmpNat vz40 (Succ vz300)) GT)",fontsize=16,color="magenta"];42 -> 261[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 42 -> 262[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 42 -> 263[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 203[label="Succ vz300",fontsize=16,color="green",shape="box"];204[label="vz50",fontsize=16,color="green",shape="box"];205[label="vz300",fontsize=16,color="green",shape="box"];202[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat vz8 vz9) GT)",fontsize=16,color="burlywood",shape="triangle"];315[label="vz8/Succ vz80",fontsize=10,color="white",style="solid",shape="box"];202 -> 315[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 315 -> 224[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 316[label="vz8/Zero",fontsize=10,color="white",style="solid",shape="box"];202 -> 316[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 316 -> 225[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 45[label="signumReal1 (Pos (Succ vz300)) MyTrue",fontsize=16,color="black",shape="box"];45 -> 51[label="",style="solid", color="black", weight=3]; 10.51/4.29 46[label="signumReal1 (Neg (Succ vz300)) MyFalse",fontsize=16,color="black",shape="triangle"];46 -> 52[label="",style="solid", color="black", weight=3]; 10.51/4.29 261[label="vz300",fontsize=16,color="green",shape="box"];262[label="Succ vz300",fontsize=16,color="green",shape="box"];263[label="vz40",fontsize=16,color="green",shape="box"];260[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat vz14 vz15) GT)",fontsize=16,color="burlywood",shape="triangle"];317[label="vz14/Succ vz140",fontsize=10,color="white",style="solid",shape="box"];260 -> 317[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 317 -> 285[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 318[label="vz14/Zero",fontsize=10,color="white",style="solid",shape="box"];260 -> 318[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 318 -> 286[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 224[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat (Succ vz80) vz9) GT)",fontsize=16,color="burlywood",shape="box"];319[label="vz9/Succ vz90",fontsize=10,color="white",style="solid",shape="box"];224 -> 319[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 319 -> 234[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 320[label="vz9/Zero",fontsize=10,color="white",style="solid",shape="box"];224 -> 320[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 320 -> 235[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 225[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat Zero vz9) GT)",fontsize=16,color="burlywood",shape="box"];321[label="vz9/Succ vz90",fontsize=10,color="white",style="solid",shape="box"];225 -> 321[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 321 -> 236[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 322[label="vz9/Zero",fontsize=10,color="white",style="solid",shape="box"];225 -> 322[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 322 -> 237[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 51[label="fromIntMyInt (Pos (Succ Zero))",fontsize=16,color="black",shape="triangle"];51 -> 57[label="",style="solid", color="black", weight=3]; 10.51/4.29 52[label="signumReal0 (Neg (Succ vz300)) otherwise",fontsize=16,color="black",shape="box"];52 -> 58[label="",style="solid", color="black", weight=3]; 10.51/4.29 285[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat (Succ vz140) vz15) GT)",fontsize=16,color="burlywood",shape="box"];323[label="vz15/Succ vz150",fontsize=10,color="white",style="solid",shape="box"];285 -> 323[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 323 -> 288[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 324[label="vz15/Zero",fontsize=10,color="white",style="solid",shape="box"];285 -> 324[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 324 -> 289[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 286[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat Zero vz15) GT)",fontsize=16,color="burlywood",shape="box"];325[label="vz15/Succ vz150",fontsize=10,color="white",style="solid",shape="box"];286 -> 325[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 325 -> 290[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 326[label="vz15/Zero",fontsize=10,color="white",style="solid",shape="box"];286 -> 326[label="",style="solid", color="burlywood", weight=9]; 10.51/4.29 326 -> 291[label="",style="solid", color="burlywood", weight=3]; 10.51/4.29 234[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat (Succ vz80) (Succ vz90)) GT)",fontsize=16,color="black",shape="box"];234 -> 245[label="",style="solid", color="black", weight=3]; 10.51/4.29 235[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat (Succ vz80) Zero) GT)",fontsize=16,color="black",shape="box"];235 -> 246[label="",style="solid", color="black", weight=3]; 10.51/4.29 236[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat Zero (Succ vz90)) GT)",fontsize=16,color="black",shape="box"];236 -> 247[label="",style="solid", color="black", weight=3]; 10.51/4.29 237[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat Zero Zero) GT)",fontsize=16,color="black",shape="box"];237 -> 248[label="",style="solid", color="black", weight=3]; 10.51/4.29 57[label="Pos (Succ Zero)",fontsize=16,color="green",shape="box"];58[label="signumReal0 (Neg (Succ vz300)) MyTrue",fontsize=16,color="black",shape="box"];58 -> 65[label="",style="solid", color="black", weight=3]; 10.51/4.29 288[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat (Succ vz140) (Succ vz150)) GT)",fontsize=16,color="black",shape="box"];288 -> 293[label="",style="solid", color="black", weight=3]; 10.51/4.29 289[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat (Succ vz140) Zero) GT)",fontsize=16,color="black",shape="box"];289 -> 294[label="",style="solid", color="black", weight=3]; 10.51/4.29 290[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat Zero (Succ vz150)) GT)",fontsize=16,color="black",shape="box"];290 -> 295[label="",style="solid", color="black", weight=3]; 10.51/4.29 291[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat Zero Zero) GT)",fontsize=16,color="black",shape="box"];291 -> 296[label="",style="solid", color="black", weight=3]; 10.51/4.29 245 -> 202[label="",style="dashed", color="red", weight=0]; 10.51/4.29 245[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering (primCmpNat vz80 vz90) GT)",fontsize=16,color="magenta"];245 -> 255[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 245 -> 256[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 246 -> 40[label="",style="dashed", color="red", weight=0]; 10.51/4.29 246[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering GT GT)",fontsize=16,color="magenta"];246 -> 257[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 247[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering LT GT)",fontsize=16,color="black",shape="box"];247 -> 258[label="",style="solid", color="black", weight=3]; 10.51/4.29 248[label="signumReal1 (Pos (Succ vz7)) (esEsOrdering EQ GT)",fontsize=16,color="black",shape="box"];248 -> 259[label="",style="solid", color="black", weight=3]; 10.51/4.29 65[label="fromIntMyInt (Neg (Succ Zero))",fontsize=16,color="black",shape="triangle"];65 -> 74[label="",style="solid", color="black", weight=3]; 10.51/4.29 293 -> 260[label="",style="dashed", color="red", weight=0]; 10.51/4.29 293[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering (primCmpNat vz140 vz150) GT)",fontsize=16,color="magenta"];293 -> 298[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 293 -> 299[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 294[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering GT GT)",fontsize=16,color="black",shape="box"];294 -> 300[label="",style="solid", color="black", weight=3]; 10.51/4.29 295 -> 41[label="",style="dashed", color="red", weight=0]; 10.51/4.29 295[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering LT GT)",fontsize=16,color="magenta"];295 -> 301[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 296[label="signumReal1 (Neg (Succ vz13)) (esEsOrdering EQ GT)",fontsize=16,color="black",shape="box"];296 -> 302[label="",style="solid", color="black", weight=3]; 10.51/4.29 255[label="vz80",fontsize=16,color="green",shape="box"];256[label="vz90",fontsize=16,color="green",shape="box"];257[label="vz7",fontsize=16,color="green",shape="box"];258[label="signumReal1 (Pos (Succ vz7)) MyFalse",fontsize=16,color="black",shape="triangle"];258 -> 287[label="",style="solid", color="black", weight=3]; 10.51/4.29 259 -> 258[label="",style="dashed", color="red", weight=0]; 10.51/4.29 259[label="signumReal1 (Pos (Succ vz7)) MyFalse",fontsize=16,color="magenta"];74[label="Neg (Succ Zero)",fontsize=16,color="green",shape="box"];298[label="vz150",fontsize=16,color="green",shape="box"];299[label="vz140",fontsize=16,color="green",shape="box"];300[label="signumReal1 (Neg (Succ vz13)) MyTrue",fontsize=16,color="black",shape="box"];300 -> 303[label="",style="solid", color="black", weight=3]; 10.51/4.29 301[label="vz13",fontsize=16,color="green",shape="box"];302 -> 46[label="",style="dashed", color="red", weight=0]; 10.51/4.29 302[label="signumReal1 (Neg (Succ vz13)) MyFalse",fontsize=16,color="magenta"];302 -> 304[label="",style="dashed", color="magenta", weight=3]; 10.51/4.29 287[label="signumReal0 (Pos (Succ vz7)) otherwise",fontsize=16,color="black",shape="box"];287 -> 292[label="",style="solid", color="black", weight=3]; 10.51/4.29 303 -> 51[label="",style="dashed", color="red", weight=0]; 10.51/4.29 303[label="fromIntMyInt (Pos (Succ Zero))",fontsize=16,color="magenta"];304[label="vz13",fontsize=16,color="green",shape="box"];292[label="signumReal0 (Pos (Succ vz7)) MyTrue",fontsize=16,color="black",shape="box"];292 -> 297[label="",style="solid", color="black", weight=3]; 10.51/4.29 297 -> 65[label="",style="dashed", color="red", weight=0]; 10.51/4.29 297[label="fromIntMyInt (Neg (Succ Zero))",fontsize=16,color="magenta"];} 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (6) 10.51/4.29 Complex Obligation (AND) 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (7) 10.51/4.29 Obligation: 10.51/4.29 Q DP problem: 10.51/4.29 The TRS P consists of the following rules: 10.51/4.29 10.51/4.29 new_signumReal1(vz13, Main.Succ(vz140), Main.Succ(vz150)) -> new_signumReal1(vz13, vz140, vz150) 10.51/4.29 10.51/4.29 R is empty. 10.51/4.29 Q is empty. 10.51/4.29 We have to consider all minimal (P,Q,R)-chains. 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (8) QDPSizeChangeProof (EQUIVALENT) 10.51/4.29 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. 10.51/4.29 10.51/4.29 From the DPs we obtained the following set of size-change graphs: 10.51/4.29 *new_signumReal1(vz13, Main.Succ(vz140), Main.Succ(vz150)) -> new_signumReal1(vz13, vz140, vz150) 10.51/4.29 The graph contains the following edges 1 >= 1, 2 > 2, 3 > 3 10.51/4.29 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (9) 10.51/4.29 YES 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (10) 10.51/4.29 Obligation: 10.51/4.29 Q DP problem: 10.51/4.29 The TRS P consists of the following rules: 10.51/4.29 10.51/4.29 new_signumReal10(vz7, Main.Succ(vz80), Main.Succ(vz90)) -> new_signumReal10(vz7, vz80, vz90) 10.51/4.29 10.51/4.29 R is empty. 10.51/4.29 Q is empty. 10.51/4.29 We have to consider all minimal (P,Q,R)-chains. 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (11) QDPSizeChangeProof (EQUIVALENT) 10.51/4.29 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. 10.51/4.29 10.51/4.29 From the DPs we obtained the following set of size-change graphs: 10.51/4.29 *new_signumReal10(vz7, Main.Succ(vz80), Main.Succ(vz90)) -> new_signumReal10(vz7, vz80, vz90) 10.51/4.29 The graph contains the following edges 1 >= 1, 2 > 2, 3 > 3 10.51/4.29 10.51/4.29 10.51/4.29 ---------------------------------------- 10.51/4.29 10.51/4.29 (12) 10.51/4.29 YES 10.55/8.24 EOF