7.91/3.54 YES 9.66/4.04 proof of /export/starexec/sandbox/benchmark/theBenchmark.hs 9.66/4.04 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 9.66/4.04 9.66/4.04 9.66/4.04 H-Termination with start terms of the given HASKELL could be proven: 9.66/4.04 9.66/4.04 (0) HASKELL 9.66/4.04 (1) BR [EQUIVALENT, 0 ms] 9.66/4.04 (2) HASKELL 9.66/4.04 (3) COR [EQUIVALENT, 0 ms] 9.66/4.04 (4) HASKELL 9.66/4.04 (5) Narrow [SOUND, 0 ms] 9.66/4.04 (6) QDP 9.66/4.04 (7) QDPSizeChangeProof [EQUIVALENT, 0 ms] 9.66/4.04 (8) YES 9.66/4.04 9.66/4.04 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (0) 9.66/4.04 Obligation: 9.66/4.04 mainModule Main 9.66/4.04 module Main where { 9.66/4.04 import qualified Prelude; 9.66/4.04 data MyBool = MyTrue | MyFalse ; 9.66/4.04 9.66/4.04 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.66/4.04 9.66/4.04 data Main.Nat = Succ Main.Nat | Zero ; 9.66/4.04 9.66/4.04 data Ordering = LT | EQ | GT ; 9.66/4.04 9.66/4.04 compareMyInt :: MyInt -> MyInt -> Ordering; 9.66/4.04 compareMyInt = primCmpInt; 9.66/4.04 9.66/4.04 esEsOrdering :: Ordering -> Ordering -> MyBool; 9.66/4.04 esEsOrdering LT LT = MyTrue; 9.66/4.04 esEsOrdering LT EQ = MyFalse; 9.66/4.04 esEsOrdering LT GT = MyFalse; 9.66/4.04 esEsOrdering EQ LT = MyFalse; 9.66/4.04 esEsOrdering EQ EQ = MyTrue; 9.66/4.04 esEsOrdering EQ GT = MyFalse; 9.66/4.04 esEsOrdering GT LT = MyFalse; 9.66/4.04 esEsOrdering GT EQ = MyFalse; 9.66/4.04 esEsOrdering GT GT = MyTrue; 9.66/4.04 9.66/4.04 gtMyInt :: MyInt -> MyInt -> MyBool; 9.66/4.04 gtMyInt x y = esEsOrdering (compareMyInt x y) GT; 9.66/4.04 9.66/4.04 primCmpInt :: MyInt -> MyInt -> Ordering; 9.66/4.04 primCmpInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Pos x) (Main.Pos y) = primCmpNat x y; 9.66/4.04 primCmpInt (Main.Pos x) (Main.Neg y) = GT; 9.66/4.04 primCmpInt (Main.Neg x) (Main.Pos y) = LT; 9.66/4.04 primCmpInt (Main.Neg x) (Main.Neg y) = primCmpNat y x; 9.66/4.04 9.66/4.04 primCmpNat :: Main.Nat -> Main.Nat -> Ordering; 9.66/4.04 primCmpNat Main.Zero Main.Zero = EQ; 9.66/4.04 primCmpNat Main.Zero (Main.Succ y) = LT; 9.66/4.04 primCmpNat (Main.Succ x) Main.Zero = GT; 9.66/4.04 primCmpNat (Main.Succ x) (Main.Succ y) = primCmpNat x y; 9.66/4.04 9.66/4.04 } 9.66/4.04 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (1) BR (EQUIVALENT) 9.66/4.04 Replaced joker patterns by fresh variables and removed binding patterns. 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (2) 9.66/4.04 Obligation: 9.66/4.04 mainModule Main 9.66/4.04 module Main where { 9.66/4.04 import qualified Prelude; 9.66/4.04 data MyBool = MyTrue | MyFalse ; 9.66/4.04 9.66/4.04 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.66/4.04 9.66/4.04 data Main.Nat = Succ Main.Nat | Zero ; 9.66/4.04 9.66/4.04 data Ordering = LT | EQ | GT ; 9.66/4.04 9.66/4.04 compareMyInt :: MyInt -> MyInt -> Ordering; 9.66/4.04 compareMyInt = primCmpInt; 9.66/4.04 9.66/4.04 esEsOrdering :: Ordering -> Ordering -> MyBool; 9.66/4.04 esEsOrdering LT LT = MyTrue; 9.66/4.04 esEsOrdering LT EQ = MyFalse; 9.66/4.04 esEsOrdering LT GT = MyFalse; 9.66/4.04 esEsOrdering EQ LT = MyFalse; 9.66/4.04 esEsOrdering EQ EQ = MyTrue; 9.66/4.04 esEsOrdering EQ GT = MyFalse; 9.66/4.04 esEsOrdering GT LT = MyFalse; 9.66/4.04 esEsOrdering GT EQ = MyFalse; 9.66/4.04 esEsOrdering GT GT = MyTrue; 9.66/4.04 9.66/4.04 gtMyInt :: MyInt -> MyInt -> MyBool; 9.66/4.04 gtMyInt x y = esEsOrdering (compareMyInt x y) GT; 9.66/4.04 9.66/4.04 primCmpInt :: MyInt -> MyInt -> Ordering; 9.66/4.04 primCmpInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Pos x) (Main.Pos y) = primCmpNat x y; 9.66/4.04 primCmpInt (Main.Pos x) (Main.Neg y) = GT; 9.66/4.04 primCmpInt (Main.Neg x) (Main.Pos y) = LT; 9.66/4.04 primCmpInt (Main.Neg x) (Main.Neg y) = primCmpNat y x; 9.66/4.04 9.66/4.04 primCmpNat :: Main.Nat -> Main.Nat -> Ordering; 9.66/4.04 primCmpNat Main.Zero Main.Zero = EQ; 9.66/4.04 primCmpNat Main.Zero (Main.Succ y) = LT; 9.66/4.04 primCmpNat (Main.Succ x) Main.Zero = GT; 9.66/4.04 primCmpNat (Main.Succ x) (Main.Succ y) = primCmpNat x y; 9.66/4.04 9.66/4.04 } 9.66/4.04 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (3) COR (EQUIVALENT) 9.66/4.04 Cond Reductions: 9.66/4.04 The following Function with conditions 9.66/4.04 "undefined |Falseundefined; 9.66/4.04 " 9.66/4.04 is transformed to 9.66/4.04 "undefined = undefined1; 9.66/4.04 " 9.66/4.04 "undefined0 True = undefined; 9.66/4.04 " 9.66/4.04 "undefined1 = undefined0 False; 9.66/4.04 " 9.66/4.04 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (4) 9.66/4.04 Obligation: 9.66/4.04 mainModule Main 9.66/4.04 module Main where { 9.66/4.04 import qualified Prelude; 9.66/4.04 data MyBool = MyTrue | MyFalse ; 9.66/4.04 9.66/4.04 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.66/4.04 9.66/4.04 data Main.Nat = Succ Main.Nat | Zero ; 9.66/4.04 9.66/4.04 data Ordering = LT | EQ | GT ; 9.66/4.04 9.66/4.04 compareMyInt :: MyInt -> MyInt -> Ordering; 9.66/4.04 compareMyInt = primCmpInt; 9.66/4.04 9.66/4.04 esEsOrdering :: Ordering -> Ordering -> MyBool; 9.66/4.04 esEsOrdering LT LT = MyTrue; 9.66/4.04 esEsOrdering LT EQ = MyFalse; 9.66/4.04 esEsOrdering LT GT = MyFalse; 9.66/4.04 esEsOrdering EQ LT = MyFalse; 9.66/4.04 esEsOrdering EQ EQ = MyTrue; 9.66/4.04 esEsOrdering EQ GT = MyFalse; 9.66/4.04 esEsOrdering GT LT = MyFalse; 9.66/4.04 esEsOrdering GT EQ = MyFalse; 9.66/4.04 esEsOrdering GT GT = MyTrue; 9.66/4.04 9.66/4.04 gtMyInt :: MyInt -> MyInt -> MyBool; 9.66/4.04 gtMyInt x y = esEsOrdering (compareMyInt x y) GT; 9.66/4.04 9.66/4.04 primCmpInt :: MyInt -> MyInt -> Ordering; 9.66/4.04 primCmpInt (Main.Pos Main.Zero) (Main.Pos Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Pos Main.Zero) (Main.Neg Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Neg Main.Zero) (Main.Pos Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Neg Main.Zero) (Main.Neg Main.Zero) = EQ; 9.66/4.04 primCmpInt (Main.Pos x) (Main.Pos y) = primCmpNat x y; 9.66/4.04 primCmpInt (Main.Pos x) (Main.Neg y) = GT; 9.66/4.04 primCmpInt (Main.Neg x) (Main.Pos y) = LT; 9.66/4.04 primCmpInt (Main.Neg x) (Main.Neg y) = primCmpNat y x; 9.66/4.04 9.66/4.04 primCmpNat :: Main.Nat -> Main.Nat -> Ordering; 9.66/4.04 primCmpNat Main.Zero Main.Zero = EQ; 9.66/4.04 primCmpNat Main.Zero (Main.Succ y) = LT; 9.66/4.04 primCmpNat (Main.Succ x) Main.Zero = GT; 9.66/4.04 primCmpNat (Main.Succ x) (Main.Succ y) = primCmpNat x y; 9.66/4.04 9.66/4.04 } 9.66/4.04 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (5) Narrow (SOUND) 9.66/4.04 Haskell To QDPs 9.66/4.04 9.66/4.04 digraph dp_graph { 9.66/4.04 node [outthreshold=100, inthreshold=100];1[label="gtMyInt",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 9.66/4.04 3[label="gtMyInt vx3",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3]; 9.66/4.04 4[label="gtMyInt vx3 vx4",fontsize=16,color="black",shape="triangle"];4 -> 5[label="",style="solid", color="black", weight=3]; 9.66/4.04 5[label="esEsOrdering (compareMyInt vx3 vx4) GT",fontsize=16,color="black",shape="box"];5 -> 6[label="",style="solid", color="black", weight=3]; 9.66/4.04 6[label="esEsOrdering (primCmpInt vx3 vx4) GT",fontsize=16,color="burlywood",shape="box"];70[label="vx3/Pos vx30",fontsize=10,color="white",style="solid",shape="box"];6 -> 70[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 70 -> 7[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 71[label="vx3/Neg vx30",fontsize=10,color="white",style="solid",shape="box"];6 -> 71[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 71 -> 8[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 7[label="esEsOrdering (primCmpInt (Pos vx30) vx4) GT",fontsize=16,color="burlywood",shape="box"];72[label="vx30/Succ vx300",fontsize=10,color="white",style="solid",shape="box"];7 -> 72[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 72 -> 9[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 73[label="vx30/Zero",fontsize=10,color="white",style="solid",shape="box"];7 -> 73[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 73 -> 10[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 8[label="esEsOrdering (primCmpInt (Neg vx30) vx4) GT",fontsize=16,color="burlywood",shape="box"];74[label="vx30/Succ vx300",fontsize=10,color="white",style="solid",shape="box"];8 -> 74[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 74 -> 11[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 75[label="vx30/Zero",fontsize=10,color="white",style="solid",shape="box"];8 -> 75[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 75 -> 12[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 9[label="esEsOrdering (primCmpInt (Pos (Succ vx300)) vx4) GT",fontsize=16,color="burlywood",shape="box"];76[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];9 -> 76[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 76 -> 13[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 77[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];9 -> 77[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 77 -> 14[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 10[label="esEsOrdering (primCmpInt (Pos Zero) vx4) GT",fontsize=16,color="burlywood",shape="box"];78[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];10 -> 78[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 78 -> 15[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 79[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];10 -> 79[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 79 -> 16[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 11[label="esEsOrdering (primCmpInt (Neg (Succ vx300)) vx4) GT",fontsize=16,color="burlywood",shape="box"];80[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];11 -> 80[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 80 -> 17[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 81[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];11 -> 81[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 81 -> 18[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 12[label="esEsOrdering (primCmpInt (Neg Zero) vx4) GT",fontsize=16,color="burlywood",shape="box"];82[label="vx4/Pos vx40",fontsize=10,color="white",style="solid",shape="box"];12 -> 82[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 82 -> 19[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 83[label="vx4/Neg vx40",fontsize=10,color="white",style="solid",shape="box"];12 -> 83[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 83 -> 20[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 13[label="esEsOrdering (primCmpInt (Pos (Succ vx300)) (Pos vx40)) GT",fontsize=16,color="black",shape="box"];13 -> 21[label="",style="solid", color="black", weight=3]; 9.66/4.04 14[label="esEsOrdering (primCmpInt (Pos (Succ vx300)) (Neg vx40)) GT",fontsize=16,color="black",shape="box"];14 -> 22[label="",style="solid", color="black", weight=3]; 9.66/4.04 15[label="esEsOrdering (primCmpInt (Pos Zero) (Pos vx40)) GT",fontsize=16,color="burlywood",shape="box"];84[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];15 -> 84[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 84 -> 23[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 85[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];15 -> 85[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 85 -> 24[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 16[label="esEsOrdering (primCmpInt (Pos Zero) (Neg vx40)) GT",fontsize=16,color="burlywood",shape="box"];86[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];16 -> 86[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 86 -> 25[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 87[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];16 -> 87[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 87 -> 26[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 17[label="esEsOrdering (primCmpInt (Neg (Succ vx300)) (Pos vx40)) GT",fontsize=16,color="black",shape="box"];17 -> 27[label="",style="solid", color="black", weight=3]; 9.66/4.04 18[label="esEsOrdering (primCmpInt (Neg (Succ vx300)) (Neg vx40)) GT",fontsize=16,color="black",shape="box"];18 -> 28[label="",style="solid", color="black", weight=3]; 9.66/4.04 19[label="esEsOrdering (primCmpInt (Neg Zero) (Pos vx40)) GT",fontsize=16,color="burlywood",shape="box"];88[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];19 -> 88[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 88 -> 29[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 89[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];19 -> 89[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 89 -> 30[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 20[label="esEsOrdering (primCmpInt (Neg Zero) (Neg vx40)) GT",fontsize=16,color="burlywood",shape="box"];90[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];20 -> 90[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 90 -> 31[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 91[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];20 -> 91[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 91 -> 32[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 21[label="esEsOrdering (primCmpNat (Succ vx300) vx40) GT",fontsize=16,color="burlywood",shape="triangle"];92[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];21 -> 92[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 92 -> 33[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 93[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];21 -> 93[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 93 -> 34[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 22[label="esEsOrdering GT GT",fontsize=16,color="black",shape="triangle"];22 -> 35[label="",style="solid", color="black", weight=3]; 9.66/4.04 23[label="esEsOrdering (primCmpInt (Pos Zero) (Pos (Succ vx400))) GT",fontsize=16,color="black",shape="box"];23 -> 36[label="",style="solid", color="black", weight=3]; 9.66/4.04 24[label="esEsOrdering (primCmpInt (Pos Zero) (Pos Zero)) GT",fontsize=16,color="black",shape="box"];24 -> 37[label="",style="solid", color="black", weight=3]; 9.66/4.04 25[label="esEsOrdering (primCmpInt (Pos Zero) (Neg (Succ vx400))) GT",fontsize=16,color="black",shape="box"];25 -> 38[label="",style="solid", color="black", weight=3]; 9.66/4.04 26[label="esEsOrdering (primCmpInt (Pos Zero) (Neg Zero)) GT",fontsize=16,color="black",shape="box"];26 -> 39[label="",style="solid", color="black", weight=3]; 9.66/4.04 27[label="esEsOrdering LT GT",fontsize=16,color="black",shape="triangle"];27 -> 40[label="",style="solid", color="black", weight=3]; 9.66/4.04 28[label="esEsOrdering (primCmpNat vx40 (Succ vx300)) GT",fontsize=16,color="burlywood",shape="triangle"];94[label="vx40/Succ vx400",fontsize=10,color="white",style="solid",shape="box"];28 -> 94[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 94 -> 41[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 95[label="vx40/Zero",fontsize=10,color="white",style="solid",shape="box"];28 -> 95[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 95 -> 42[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 29[label="esEsOrdering (primCmpInt (Neg Zero) (Pos (Succ vx400))) GT",fontsize=16,color="black",shape="box"];29 -> 43[label="",style="solid", color="black", weight=3]; 9.66/4.04 30[label="esEsOrdering (primCmpInt (Neg Zero) (Pos Zero)) GT",fontsize=16,color="black",shape="box"];30 -> 44[label="",style="solid", color="black", weight=3]; 9.66/4.04 31[label="esEsOrdering (primCmpInt (Neg Zero) (Neg (Succ vx400))) GT",fontsize=16,color="black",shape="box"];31 -> 45[label="",style="solid", color="black", weight=3]; 9.66/4.04 32[label="esEsOrdering (primCmpInt (Neg Zero) (Neg Zero)) GT",fontsize=16,color="black",shape="box"];32 -> 46[label="",style="solid", color="black", weight=3]; 9.66/4.04 33[label="esEsOrdering (primCmpNat (Succ vx300) (Succ vx400)) GT",fontsize=16,color="black",shape="box"];33 -> 47[label="",style="solid", color="black", weight=3]; 9.66/4.04 34[label="esEsOrdering (primCmpNat (Succ vx300) Zero) GT",fontsize=16,color="black",shape="box"];34 -> 48[label="",style="solid", color="black", weight=3]; 9.66/4.04 35[label="MyTrue",fontsize=16,color="green",shape="box"];36 -> 28[label="",style="dashed", color="red", weight=0]; 9.66/4.04 36[label="esEsOrdering (primCmpNat Zero (Succ vx400)) GT",fontsize=16,color="magenta"];36 -> 49[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 36 -> 50[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 37[label="esEsOrdering EQ GT",fontsize=16,color="black",shape="triangle"];37 -> 51[label="",style="solid", color="black", weight=3]; 9.66/4.04 38 -> 22[label="",style="dashed", color="red", weight=0]; 9.66/4.04 38[label="esEsOrdering GT GT",fontsize=16,color="magenta"];39 -> 37[label="",style="dashed", color="red", weight=0]; 9.66/4.04 39[label="esEsOrdering EQ GT",fontsize=16,color="magenta"];40[label="MyFalse",fontsize=16,color="green",shape="box"];41[label="esEsOrdering (primCmpNat (Succ vx400) (Succ vx300)) GT",fontsize=16,color="black",shape="box"];41 -> 52[label="",style="solid", color="black", weight=3]; 9.66/4.04 42[label="esEsOrdering (primCmpNat Zero (Succ vx300)) GT",fontsize=16,color="black",shape="box"];42 -> 53[label="",style="solid", color="black", weight=3]; 9.66/4.04 43 -> 27[label="",style="dashed", color="red", weight=0]; 9.66/4.04 43[label="esEsOrdering LT GT",fontsize=16,color="magenta"];44 -> 37[label="",style="dashed", color="red", weight=0]; 9.66/4.04 44[label="esEsOrdering EQ GT",fontsize=16,color="magenta"];45 -> 21[label="",style="dashed", color="red", weight=0]; 9.66/4.04 45[label="esEsOrdering (primCmpNat (Succ vx400) Zero) GT",fontsize=16,color="magenta"];45 -> 54[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 45 -> 55[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 46 -> 37[label="",style="dashed", color="red", weight=0]; 9.66/4.04 46[label="esEsOrdering EQ GT",fontsize=16,color="magenta"];47[label="esEsOrdering (primCmpNat vx300 vx400) GT",fontsize=16,color="burlywood",shape="triangle"];96[label="vx300/Succ vx3000",fontsize=10,color="white",style="solid",shape="box"];47 -> 96[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 96 -> 56[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 97[label="vx300/Zero",fontsize=10,color="white",style="solid",shape="box"];47 -> 97[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 97 -> 57[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 48 -> 22[label="",style="dashed", color="red", weight=0]; 9.66/4.04 48[label="esEsOrdering GT GT",fontsize=16,color="magenta"];49[label="Zero",fontsize=16,color="green",shape="box"];50[label="vx400",fontsize=16,color="green",shape="box"];51[label="MyFalse",fontsize=16,color="green",shape="box"];52 -> 47[label="",style="dashed", color="red", weight=0]; 9.66/4.04 52[label="esEsOrdering (primCmpNat vx400 vx300) GT",fontsize=16,color="magenta"];52 -> 58[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 52 -> 59[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 53 -> 27[label="",style="dashed", color="red", weight=0]; 9.66/4.04 53[label="esEsOrdering LT GT",fontsize=16,color="magenta"];54[label="Zero",fontsize=16,color="green",shape="box"];55[label="vx400",fontsize=16,color="green",shape="box"];56[label="esEsOrdering (primCmpNat (Succ vx3000) vx400) GT",fontsize=16,color="burlywood",shape="box"];98[label="vx400/Succ vx4000",fontsize=10,color="white",style="solid",shape="box"];56 -> 98[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 98 -> 60[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 99[label="vx400/Zero",fontsize=10,color="white",style="solid",shape="box"];56 -> 99[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 99 -> 61[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 57[label="esEsOrdering (primCmpNat Zero vx400) GT",fontsize=16,color="burlywood",shape="box"];100[label="vx400/Succ vx4000",fontsize=10,color="white",style="solid",shape="box"];57 -> 100[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 100 -> 62[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 101[label="vx400/Zero",fontsize=10,color="white",style="solid",shape="box"];57 -> 101[label="",style="solid", color="burlywood", weight=9]; 9.66/4.04 101 -> 63[label="",style="solid", color="burlywood", weight=3]; 9.66/4.04 58[label="vx400",fontsize=16,color="green",shape="box"];59[label="vx300",fontsize=16,color="green",shape="box"];60[label="esEsOrdering (primCmpNat (Succ vx3000) (Succ vx4000)) GT",fontsize=16,color="black",shape="box"];60 -> 64[label="",style="solid", color="black", weight=3]; 9.66/4.04 61[label="esEsOrdering (primCmpNat (Succ vx3000) Zero) GT",fontsize=16,color="black",shape="box"];61 -> 65[label="",style="solid", color="black", weight=3]; 9.66/4.04 62[label="esEsOrdering (primCmpNat Zero (Succ vx4000)) GT",fontsize=16,color="black",shape="box"];62 -> 66[label="",style="solid", color="black", weight=3]; 9.66/4.04 63[label="esEsOrdering (primCmpNat Zero Zero) GT",fontsize=16,color="black",shape="box"];63 -> 67[label="",style="solid", color="black", weight=3]; 9.66/4.04 64 -> 47[label="",style="dashed", color="red", weight=0]; 9.66/4.04 64[label="esEsOrdering (primCmpNat vx3000 vx4000) GT",fontsize=16,color="magenta"];64 -> 68[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 64 -> 69[label="",style="dashed", color="magenta", weight=3]; 9.66/4.04 65 -> 22[label="",style="dashed", color="red", weight=0]; 9.66/4.04 65[label="esEsOrdering GT GT",fontsize=16,color="magenta"];66 -> 27[label="",style="dashed", color="red", weight=0]; 9.66/4.04 66[label="esEsOrdering LT GT",fontsize=16,color="magenta"];67 -> 37[label="",style="dashed", color="red", weight=0]; 9.66/4.04 67[label="esEsOrdering EQ GT",fontsize=16,color="magenta"];68[label="vx3000",fontsize=16,color="green",shape="box"];69[label="vx4000",fontsize=16,color="green",shape="box"];} 9.66/4.04 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (6) 9.66/4.04 Obligation: 9.66/4.04 Q DP problem: 9.66/4.04 The TRS P consists of the following rules: 9.66/4.04 9.66/4.04 new_esEsOrdering(Main.Succ(vx3000), Main.Succ(vx4000)) -> new_esEsOrdering(vx3000, vx4000) 9.66/4.04 9.66/4.04 R is empty. 9.66/4.04 Q is empty. 9.66/4.04 We have to consider all minimal (P,Q,R)-chains. 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (7) QDPSizeChangeProof (EQUIVALENT) 9.66/4.04 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.66/4.04 9.66/4.04 From the DPs we obtained the following set of size-change graphs: 9.66/4.04 *new_esEsOrdering(Main.Succ(vx3000), Main.Succ(vx4000)) -> new_esEsOrdering(vx3000, vx4000) 9.66/4.04 The graph contains the following edges 1 > 1, 2 > 2 9.66/4.04 9.66/4.04 9.66/4.04 ---------------------------------------- 9.66/4.04 9.66/4.04 (8) 9.66/4.04 YES 9.72/4.08 EOF