39.95/16.28 YES 39.95/16.29 proof of /export/starexec/sandbox2/benchmark/theBenchmark.itrs 39.95/16.29 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 39.95/16.29 39.95/16.29 39.95/16.29 Termination of the given ITRS could be proven: 39.95/16.29 39.95/16.29 (0) ITRS 39.95/16.29 (1) ITRStoIDPProof [EQUIVALENT, 0 ms] 39.95/16.29 (2) IDP 39.95/16.29 (3) UsableRulesProof [EQUIVALENT, 0 ms] 39.95/16.29 (4) IDP 39.95/16.29 (5) IDependencyGraphProof [EQUIVALENT, 0 ms] 39.95/16.29 (6) IDP 39.95/16.29 (7) IDPtoQDPProof [SOUND, 23 ms] 39.95/16.29 (8) QDP 39.95/16.29 (9) UsableRulesProof [EQUIVALENT, 0 ms] 39.95/16.29 (10) QDP 39.95/16.29 (11) QReductionProof [EQUIVALENT, 2 ms] 39.95/16.29 (12) QDP 39.95/16.29 (13) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (14) QDP 39.95/16.29 (15) DependencyGraphProof [EQUIVALENT, 0 ms] 39.95/16.29 (16) QDP 39.95/16.29 (17) UsableRulesProof [EQUIVALENT, 0 ms] 39.95/16.29 (18) QDP 39.95/16.29 (19) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (20) QDP 39.95/16.29 (21) DependencyGraphProof [EQUIVALENT, 0 ms] 39.95/16.29 (22) QDP 39.95/16.29 (23) UsableRulesProof [EQUIVALENT, 0 ms] 39.95/16.29 (24) QDP 39.95/16.29 (25) QReductionProof [EQUIVALENT, 0 ms] 39.95/16.29 (26) QDP 39.95/16.29 (27) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (28) QDP 39.95/16.29 (29) DependencyGraphProof [EQUIVALENT, 0 ms] 39.95/16.29 (30) QDP 39.95/16.29 (31) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (32) QDP 39.95/16.29 (33) UsableRulesProof [EQUIVALENT, 0 ms] 39.95/16.29 (34) QDP 39.95/16.29 (35) QReductionProof [EQUIVALENT, 0 ms] 39.95/16.29 (36) QDP 39.95/16.29 (37) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (38) QDP 39.95/16.29 (39) DependencyGraphProof [EQUIVALENT, 0 ms] 39.95/16.29 (40) QDP 39.95/16.29 (41) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (42) QDP 39.95/16.29 (43) UsableRulesProof [EQUIVALENT, 0 ms] 39.95/16.29 (44) QDP 39.95/16.29 (45) QReductionProof [EQUIVALENT, 0 ms] 39.95/16.29 (46) QDP 39.95/16.29 (47) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (48) QDP 39.95/16.29 (49) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (50) QDP 39.95/16.29 (51) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (52) QDP 39.95/16.29 (53) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (54) QDP 39.95/16.29 (55) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (56) QDP 39.95/16.29 (57) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (58) QDP 39.95/16.29 (59) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (60) QDP 39.95/16.29 (61) TransformationProof [EQUIVALENT, 0 ms] 39.95/16.29 (62) QDP 39.95/16.29 (63) MRRProof [EQUIVALENT, 0 ms] 39.95/16.29 (64) QDP 39.95/16.29 (65) PisEmptyProof [EQUIVALENT, 0 ms] 39.95/16.29 (66) YES 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (0) 39.95/16.29 Obligation: 39.95/16.29 ITRS problem: 39.95/16.29 39.95/16.29 The following function symbols are pre-defined: 39.95/16.29 <<< 39.95/16.29 & ~ Bwand: (Integer, Integer) -> Integer 39.95/16.29 >= ~ Ge: (Integer, Integer) -> Boolean 39.95/16.29 | ~ Bwor: (Integer, Integer) -> Integer 39.95/16.29 / ~ Div: (Integer, Integer) -> Integer 39.95/16.29 != ~ Neq: (Integer, Integer) -> Boolean 39.95/16.29 && ~ Land: (Boolean, Boolean) -> Boolean 39.95/16.29 ! ~ Lnot: (Boolean) -> Boolean 39.95/16.29 = ~ Eq: (Integer, Integer) -> Boolean 39.95/16.29 <= ~ Le: (Integer, Integer) -> Boolean 39.95/16.29 ^ ~ Bwxor: (Integer, Integer) -> Integer 39.95/16.29 % ~ Mod: (Integer, Integer) -> Integer 39.95/16.29 > ~ Gt: (Integer, Integer) -> Boolean 39.95/16.29 + ~ Add: (Integer, Integer) -> Integer 39.95/16.29 -1 ~ UnaryMinus: (Integer) -> Integer 39.95/16.29 < ~ Lt: (Integer, Integer) -> Boolean 39.95/16.29 || ~ Lor: (Boolean, Boolean) -> Boolean 39.95/16.29 - ~ Sub: (Integer, Integer) -> Integer 39.95/16.29 ~ ~ Bwnot: (Integer) -> Integer 39.95/16.29 * ~ Mul: (Integer, Integer) -> Integer 39.95/16.29 >>> 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 random(x) -> rand(x, 0) 39.95/16.29 rand(x, y) -> Cond_rand(x = 0, x, y) 39.95/16.29 Cond_rand(TRUE, x, y) -> y 39.95/16.29 rand(x, y) -> Cond_rand1(x > 0, x, y) 39.95/16.29 Cond_rand1(TRUE, x, y) -> rand(x - 1, id_inc(y)) 39.95/16.29 rand(x, y) -> Cond_rand2(0 > x, x, y) 39.95/16.29 Cond_rand2(TRUE, x, y) -> rand(x + 1, id_dec(y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> x + 1 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> x - 1 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 random(x0) 39.95/16.29 rand(x0, x1) 39.95/16.29 Cond_rand(TRUE, x0, x1) 39.95/16.29 Cond_rand1(TRUE, x0, x1) 39.95/16.29 Cond_rand2(TRUE, x0, x1) 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (1) ITRStoIDPProof (EQUIVALENT) 39.95/16.29 Added dependency pairs 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (2) 39.95/16.29 Obligation: 39.95/16.29 IDP problem: 39.95/16.29 The following function symbols are pre-defined: 39.95/16.29 <<< 39.95/16.29 & ~ Bwand: (Integer, Integer) -> Integer 39.95/16.29 >= ~ Ge: (Integer, Integer) -> Boolean 39.95/16.29 | ~ Bwor: (Integer, Integer) -> Integer 39.95/16.29 / ~ Div: (Integer, Integer) -> Integer 39.95/16.29 != ~ Neq: (Integer, Integer) -> Boolean 39.95/16.29 && ~ Land: (Boolean, Boolean) -> Boolean 39.95/16.29 ! ~ Lnot: (Boolean) -> Boolean 39.95/16.29 = ~ Eq: (Integer, Integer) -> Boolean 39.95/16.29 <= ~ Le: (Integer, Integer) -> Boolean 39.95/16.29 ^ ~ Bwxor: (Integer, Integer) -> Integer 39.95/16.29 % ~ Mod: (Integer, Integer) -> Integer 39.95/16.29 > ~ Gt: (Integer, Integer) -> Boolean 39.95/16.29 + ~ Add: (Integer, Integer) -> Integer 39.95/16.29 -1 ~ UnaryMinus: (Integer) -> Integer 39.95/16.29 < ~ Lt: (Integer, Integer) -> Boolean 39.95/16.29 || ~ Lor: (Boolean, Boolean) -> Boolean 39.95/16.29 - ~ Sub: (Integer, Integer) -> Integer 39.95/16.29 ~ ~ Bwnot: (Integer) -> Integer 39.95/16.29 * ~ Mul: (Integer, Integer) -> Integer 39.95/16.29 >>> 39.95/16.29 39.95/16.29 39.95/16.29 The following domains are used: 39.95/16.29 Integer 39.95/16.29 39.95/16.29 The ITRS R consists of the following rules: 39.95/16.29 random(x) -> rand(x, 0) 39.95/16.29 rand(x, y) -> Cond_rand(x = 0, x, y) 39.95/16.29 Cond_rand(TRUE, x, y) -> y 39.95/16.29 rand(x, y) -> Cond_rand1(x > 0, x, y) 39.95/16.29 Cond_rand1(TRUE, x, y) -> rand(x - 1, id_inc(y)) 39.95/16.29 rand(x, y) -> Cond_rand2(0 > x, x, y) 39.95/16.29 Cond_rand2(TRUE, x, y) -> rand(x + 1, id_dec(y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> x + 1 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> x - 1 39.95/16.29 39.95/16.29 The integer pair graph contains the following rules and edges: 39.95/16.29 (0): RANDOM(x[0]) -> RAND(x[0], 0) 39.95/16.29 (1): RAND(x[1], y[1]) -> COND_RAND(x[1] = 0, x[1], y[1]) 39.95/16.29 (2): RAND(x[2], y[2]) -> COND_RAND1(x[2] > 0, x[2], y[2]) 39.95/16.29 (3): COND_RAND1(TRUE, x[3], y[3]) -> RAND(x[3] - 1, id_inc(y[3])) 39.95/16.29 (4): COND_RAND1(TRUE, x[4], y[4]) -> ID_INC(y[4]) 39.95/16.29 (5): RAND(x[5], y[5]) -> COND_RAND2(0 > x[5], x[5], y[5]) 39.95/16.29 (6): COND_RAND2(TRUE, x[6], y[6]) -> RAND(x[6] + 1, id_dec(y[6])) 39.95/16.29 (7): COND_RAND2(TRUE, x[7], y[7]) -> ID_DEC(y[7]) 39.95/16.29 39.95/16.29 (0) -> (1), if (x[0] ->^* x[1] & 0 ->^* y[1]) 39.95/16.29 (0) -> (2), if (x[0] ->^* x[2] & 0 ->^* y[2]) 39.95/16.29 (0) -> (5), if (x[0] ->^* x[5] & 0 ->^* y[5]) 39.95/16.29 (2) -> (3), if (x[2] > 0 & x[2] ->^* x[3] & y[2] ->^* y[3]) 39.95/16.29 (2) -> (4), if (x[2] > 0 & x[2] ->^* x[4] & y[2] ->^* y[4]) 39.95/16.29 (3) -> (1), if (x[3] - 1 ->^* x[1] & id_inc(y[3]) ->^* y[1]) 39.95/16.29 (3) -> (2), if (x[3] - 1 ->^* x[2] & id_inc(y[3]) ->^* y[2]) 39.95/16.29 (3) -> (5), if (x[3] - 1 ->^* x[5] & id_inc(y[3]) ->^* y[5]) 39.95/16.29 (5) -> (6), if (0 > x[5] & x[5] ->^* x[6] & y[5] ->^* y[6]) 39.95/16.29 (5) -> (7), if (0 > x[5] & x[5] ->^* x[7] & y[5] ->^* y[7]) 39.95/16.29 (6) -> (1), if (x[6] + 1 ->^* x[1] & id_dec(y[6]) ->^* y[1]) 39.95/16.29 (6) -> (2), if (x[6] + 1 ->^* x[2] & id_dec(y[6]) ->^* y[2]) 39.95/16.29 (6) -> (5), if (x[6] + 1 ->^* x[5] & id_dec(y[6]) ->^* y[5]) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 random(x0) 39.95/16.29 rand(x0, x1) 39.95/16.29 Cond_rand(TRUE, x0, x1) 39.95/16.29 Cond_rand1(TRUE, x0, x1) 39.95/16.29 Cond_rand2(TRUE, x0, x1) 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (3) UsableRulesProof (EQUIVALENT) 39.95/16.29 As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (4) 39.95/16.29 Obligation: 39.95/16.29 IDP problem: 39.95/16.29 The following function symbols are pre-defined: 39.95/16.29 <<< 39.95/16.29 & ~ Bwand: (Integer, Integer) -> Integer 39.95/16.29 >= ~ Ge: (Integer, Integer) -> Boolean 39.95/16.29 | ~ Bwor: (Integer, Integer) -> Integer 39.95/16.29 / ~ Div: (Integer, Integer) -> Integer 39.95/16.29 != ~ Neq: (Integer, Integer) -> Boolean 39.95/16.29 && ~ Land: (Boolean, Boolean) -> Boolean 39.95/16.29 ! ~ Lnot: (Boolean) -> Boolean 39.95/16.29 = ~ Eq: (Integer, Integer) -> Boolean 39.95/16.29 <= ~ Le: (Integer, Integer) -> Boolean 39.95/16.29 ^ ~ Bwxor: (Integer, Integer) -> Integer 39.95/16.29 % ~ Mod: (Integer, Integer) -> Integer 39.95/16.29 > ~ Gt: (Integer, Integer) -> Boolean 39.95/16.29 + ~ Add: (Integer, Integer) -> Integer 39.95/16.29 -1 ~ UnaryMinus: (Integer) -> Integer 39.95/16.29 < ~ Lt: (Integer, Integer) -> Boolean 39.95/16.29 || ~ Lor: (Boolean, Boolean) -> Boolean 39.95/16.29 - ~ Sub: (Integer, Integer) -> Integer 39.95/16.29 ~ ~ Bwnot: (Integer) -> Integer 39.95/16.29 * ~ Mul: (Integer, Integer) -> Integer 39.95/16.29 >>> 39.95/16.29 39.95/16.29 39.95/16.29 The following domains are used: 39.95/16.29 Integer 39.95/16.29 39.95/16.29 The ITRS R consists of the following rules: 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> x + 1 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> x - 1 39.95/16.29 39.95/16.29 The integer pair graph contains the following rules and edges: 39.95/16.29 (0): RANDOM(x[0]) -> RAND(x[0], 0) 39.95/16.29 (1): RAND(x[1], y[1]) -> COND_RAND(x[1] = 0, x[1], y[1]) 39.95/16.29 (2): RAND(x[2], y[2]) -> COND_RAND1(x[2] > 0, x[2], y[2]) 39.95/16.29 (3): COND_RAND1(TRUE, x[3], y[3]) -> RAND(x[3] - 1, id_inc(y[3])) 39.95/16.29 (4): COND_RAND1(TRUE, x[4], y[4]) -> ID_INC(y[4]) 39.95/16.29 (5): RAND(x[5], y[5]) -> COND_RAND2(0 > x[5], x[5], y[5]) 39.95/16.29 (6): COND_RAND2(TRUE, x[6], y[6]) -> RAND(x[6] + 1, id_dec(y[6])) 39.95/16.29 (7): COND_RAND2(TRUE, x[7], y[7]) -> ID_DEC(y[7]) 39.95/16.29 39.95/16.29 (0) -> (1), if (x[0] ->^* x[1] & 0 ->^* y[1]) 39.95/16.29 (0) -> (2), if (x[0] ->^* x[2] & 0 ->^* y[2]) 39.95/16.29 (0) -> (5), if (x[0] ->^* x[5] & 0 ->^* y[5]) 39.95/16.29 (2) -> (3), if (x[2] > 0 & x[2] ->^* x[3] & y[2] ->^* y[3]) 39.95/16.29 (2) -> (4), if (x[2] > 0 & x[2] ->^* x[4] & y[2] ->^* y[4]) 39.95/16.29 (3) -> (1), if (x[3] - 1 ->^* x[1] & id_inc(y[3]) ->^* y[1]) 39.95/16.29 (3) -> (2), if (x[3] - 1 ->^* x[2] & id_inc(y[3]) ->^* y[2]) 39.95/16.29 (3) -> (5), if (x[3] - 1 ->^* x[5] & id_inc(y[3]) ->^* y[5]) 39.95/16.29 (5) -> (6), if (0 > x[5] & x[5] ->^* x[6] & y[5] ->^* y[6]) 39.95/16.29 (5) -> (7), if (0 > x[5] & x[5] ->^* x[7] & y[5] ->^* y[7]) 39.95/16.29 (6) -> (1), if (x[6] + 1 ->^* x[1] & id_dec(y[6]) ->^* y[1]) 39.95/16.29 (6) -> (2), if (x[6] + 1 ->^* x[2] & id_dec(y[6]) ->^* y[2]) 39.95/16.29 (6) -> (5), if (x[6] + 1 ->^* x[5] & id_dec(y[6]) ->^* y[5]) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 random(x0) 39.95/16.29 rand(x0, x1) 39.95/16.29 Cond_rand(TRUE, x0, x1) 39.95/16.29 Cond_rand1(TRUE, x0, x1) 39.95/16.29 Cond_rand2(TRUE, x0, x1) 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (5) IDependencyGraphProof (EQUIVALENT) 39.95/16.29 The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 4 less nodes. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (6) 39.95/16.29 Obligation: 39.95/16.29 IDP problem: 39.95/16.29 The following function symbols are pre-defined: 39.95/16.29 <<< 39.95/16.29 & ~ Bwand: (Integer, Integer) -> Integer 39.95/16.29 >= ~ Ge: (Integer, Integer) -> Boolean 39.95/16.29 | ~ Bwor: (Integer, Integer) -> Integer 39.95/16.29 / ~ Div: (Integer, Integer) -> Integer 39.95/16.29 != ~ Neq: (Integer, Integer) -> Boolean 39.95/16.29 && ~ Land: (Boolean, Boolean) -> Boolean 39.95/16.29 ! ~ Lnot: (Boolean) -> Boolean 39.95/16.29 = ~ Eq: (Integer, Integer) -> Boolean 39.95/16.29 <= ~ Le: (Integer, Integer) -> Boolean 39.95/16.29 ^ ~ Bwxor: (Integer, Integer) -> Integer 39.95/16.29 % ~ Mod: (Integer, Integer) -> Integer 39.95/16.29 > ~ Gt: (Integer, Integer) -> Boolean 39.95/16.29 + ~ Add: (Integer, Integer) -> Integer 39.95/16.29 -1 ~ UnaryMinus: (Integer) -> Integer 39.95/16.29 < ~ Lt: (Integer, Integer) -> Boolean 39.95/16.29 || ~ Lor: (Boolean, Boolean) -> Boolean 39.95/16.29 - ~ Sub: (Integer, Integer) -> Integer 39.95/16.29 ~ ~ Bwnot: (Integer) -> Integer 39.95/16.29 * ~ Mul: (Integer, Integer) -> Integer 39.95/16.29 >>> 39.95/16.29 39.95/16.29 39.95/16.29 The following domains are used: 39.95/16.29 Integer 39.95/16.29 39.95/16.29 The ITRS R consists of the following rules: 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> x + 1 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> x - 1 39.95/16.29 39.95/16.29 The integer pair graph contains the following rules and edges: 39.95/16.29 (6): COND_RAND2(TRUE, x[6], y[6]) -> RAND(x[6] + 1, id_dec(y[6])) 39.95/16.29 (5): RAND(x[5], y[5]) -> COND_RAND2(0 > x[5], x[5], y[5]) 39.95/16.29 (3): COND_RAND1(TRUE, x[3], y[3]) -> RAND(x[3] - 1, id_inc(y[3])) 39.95/16.29 (2): RAND(x[2], y[2]) -> COND_RAND1(x[2] > 0, x[2], y[2]) 39.95/16.29 39.95/16.29 (3) -> (2), if (x[3] - 1 ->^* x[2] & id_inc(y[3]) ->^* y[2]) 39.95/16.29 (6) -> (2), if (x[6] + 1 ->^* x[2] & id_dec(y[6]) ->^* y[2]) 39.95/16.29 (2) -> (3), if (x[2] > 0 & x[2] ->^* x[3] & y[2] ->^* y[3]) 39.95/16.29 (3) -> (5), if (x[3] - 1 ->^* x[5] & id_inc(y[3]) ->^* y[5]) 39.95/16.29 (6) -> (5), if (x[6] + 1 ->^* x[5] & id_dec(y[6]) ->^* y[5]) 39.95/16.29 (5) -> (6), if (0 > x[5] & x[5] ->^* x[6] & y[5] ->^* y[6]) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 random(x0) 39.95/16.29 rand(x0, x1) 39.95/16.29 Cond_rand(TRUE, x0, x1) 39.95/16.29 Cond_rand1(TRUE, x0, x1) 39.95/16.29 Cond_rand2(TRUE, x0, x1) 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (7) IDPtoQDPProof (SOUND) 39.95/16.29 Represented integers and predefined function symbols by Terms 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (8) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 RAND(x[5], y[5]) -> COND_RAND2(greater_int(pos(01), x[5]), x[5], y[5]) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 RAND(x[2], y[2]) -> COND_RAND1(greater_int(x[2], pos(01)), x[2], y[2]) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(neg(x), pos(y)) -> minus_nat(y, x) 39.95/16.29 plus_int(neg(x), neg(y)) -> neg(plus_nat(x, y)) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), neg(y)) -> minus_nat(y, x) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 minus_int(pos(x), neg(y)) -> pos(plus_nat(x, y)) 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(pos(01), neg(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), neg(01)) -> false 39.95/16.29 greater_int(pos(01), pos(s(y))) -> false 39.95/16.29 greater_int(neg(01), pos(s(y))) -> false 39.95/16.29 greater_int(pos(01), neg(s(y))) -> true 39.95/16.29 greater_int(neg(01), neg(s(y))) -> true 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), neg(01)) -> true 39.95/16.29 greater_int(neg(s(x)), neg(01)) -> false 39.95/16.29 greater_int(pos(s(x)), neg(s(y))) -> true 39.95/16.29 greater_int(neg(s(x)), pos(s(y))) -> false 39.95/16.29 greater_int(pos(s(x)), pos(s(y))) -> greater_int(pos(x), pos(y)) 39.95/16.29 greater_int(neg(s(x)), neg(s(y))) -> greater_int(neg(x), neg(y)) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 random(x0) 39.95/16.29 rand(x0, x1) 39.95/16.29 Cond_rand(true, x0, x1) 39.95/16.29 Cond_rand1(true, x0, x1) 39.95/16.29 Cond_rand2(true, x0, x1) 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (9) UsableRulesProof (EQUIVALENT) 39.95/16.29 As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (10) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 RAND(x[5], y[5]) -> COND_RAND2(greater_int(pos(01), x[5]), x[5], y[5]) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 RAND(x[2], y[2]) -> COND_RAND1(greater_int(x[2], pos(01)), x[2], y[2]) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 greater_int(pos(01), neg(01)) -> false 39.95/16.29 greater_int(pos(01), pos(s(y))) -> false 39.95/16.29 greater_int(pos(01), neg(s(y))) -> true 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 random(x0) 39.95/16.29 rand(x0, x1) 39.95/16.29 Cond_rand(true, x0, x1) 39.95/16.29 Cond_rand1(true, x0, x1) 39.95/16.29 Cond_rand2(true, x0, x1) 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (11) QReductionProof (EQUIVALENT) 39.95/16.29 We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN]. 39.95/16.29 39.95/16.29 random(x0) 39.95/16.29 rand(x0, x1) 39.95/16.29 Cond_rand(true, x0, x1) 39.95/16.29 Cond_rand1(true, x0, x1) 39.95/16.29 Cond_rand2(true, x0, x1) 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (12) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 RAND(x[5], y[5]) -> COND_RAND2(greater_int(pos(01), x[5]), x[5], y[5]) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 RAND(x[2], y[2]) -> COND_RAND1(greater_int(x[2], pos(01)), x[2], y[2]) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 greater_int(pos(01), neg(01)) -> false 39.95/16.29 greater_int(pos(01), pos(s(y))) -> false 39.95/16.29 greater_int(pos(01), neg(s(y))) -> true 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (13) TransformationProof (EQUIVALENT) 39.95/16.29 By narrowing [LPAR04] the rule RAND(x[5], y[5]) -> COND_RAND2(greater_int(pos(01), x[5]), x[5], y[5]) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.29 39.95/16.29 (RAND(pos(01), y1) -> COND_RAND2(false, pos(01), y1),RAND(pos(01), y1) -> COND_RAND2(false, pos(01), y1)) 39.95/16.29 (RAND(neg(01), y1) -> COND_RAND2(false, neg(01), y1),RAND(neg(01), y1) -> COND_RAND2(false, neg(01), y1)) 39.95/16.29 (RAND(pos(s(x0)), y1) -> COND_RAND2(false, pos(s(x0)), y1),RAND(pos(s(x0)), y1) -> COND_RAND2(false, pos(s(x0)), y1)) 39.95/16.29 (RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1),RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1)) 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (14) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 RAND(x[2], y[2]) -> COND_RAND1(greater_int(x[2], pos(01)), x[2], y[2]) 39.95/16.29 RAND(pos(01), y1) -> COND_RAND2(false, pos(01), y1) 39.95/16.29 RAND(neg(01), y1) -> COND_RAND2(false, neg(01), y1) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND2(false, pos(s(x0)), y1) 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 greater_int(pos(01), neg(01)) -> false 39.95/16.29 greater_int(pos(01), pos(s(y))) -> false 39.95/16.29 greater_int(pos(01), neg(s(y))) -> true 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (15) DependencyGraphProof (EQUIVALENT) 39.95/16.29 The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 3 less nodes. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (16) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(x[2], y[2]) -> COND_RAND1(greater_int(x[2], pos(01)), x[2], y[2]) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 greater_int(pos(01), neg(01)) -> false 39.95/16.29 greater_int(pos(01), pos(s(y))) -> false 39.95/16.29 greater_int(pos(01), neg(s(y))) -> true 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (17) UsableRulesProof (EQUIVALENT) 39.95/16.29 As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (18) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(x[2], y[2]) -> COND_RAND1(greater_int(x[2], pos(01)), x[2], y[2]) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (19) TransformationProof (EQUIVALENT) 39.95/16.29 By narrowing [LPAR04] the rule RAND(x[2], y[2]) -> COND_RAND1(greater_int(x[2], pos(01)), x[2], y[2]) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.29 39.95/16.29 (RAND(pos(01), y1) -> COND_RAND1(false, pos(01), y1),RAND(pos(01), y1) -> COND_RAND1(false, pos(01), y1)) 39.95/16.29 (RAND(neg(01), y1) -> COND_RAND1(false, neg(01), y1),RAND(neg(01), y1) -> COND_RAND1(false, neg(01), y1)) 39.95/16.29 (RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1),RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1)) 39.95/16.29 (RAND(neg(s(x0)), y1) -> COND_RAND1(false, neg(s(x0)), y1),RAND(neg(s(x0)), y1) -> COND_RAND1(false, neg(s(x0)), y1)) 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (20) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 RAND(pos(01), y1) -> COND_RAND1(false, pos(01), y1) 39.95/16.29 RAND(neg(01), y1) -> COND_RAND1(false, neg(01), y1) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND1(false, neg(s(x0)), y1) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (21) DependencyGraphProof (EQUIVALENT) 39.95/16.29 The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 3 less nodes. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (22) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 greater_int(pos(01), pos(01)) -> false 39.95/16.29 greater_int(neg(01), pos(01)) -> false 39.95/16.29 greater_int(pos(s(x)), pos(01)) -> true 39.95/16.29 greater_int(neg(s(x)), pos(01)) -> false 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (23) UsableRulesProof (EQUIVALENT) 39.95/16.29 As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (24) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (25) QReductionProof (EQUIVALENT) 39.95/16.29 We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN]. 39.95/16.29 39.95/16.29 greater_int(pos(01), pos(01)) 39.95/16.29 greater_int(pos(01), neg(01)) 39.95/16.29 greater_int(neg(01), pos(01)) 39.95/16.29 greater_int(neg(01), neg(01)) 39.95/16.29 greater_int(pos(01), pos(s(x0))) 39.95/16.29 greater_int(neg(01), pos(s(x0))) 39.95/16.29 greater_int(pos(01), neg(s(x0))) 39.95/16.29 greater_int(neg(01), neg(s(x0))) 39.95/16.29 greater_int(pos(s(x0)), pos(01)) 39.95/16.29 greater_int(neg(s(x0)), pos(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(01)) 39.95/16.29 greater_int(neg(s(x0)), neg(01)) 39.95/16.29 greater_int(pos(s(x0)), neg(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(pos(s(x0)), pos(s(x1))) 39.95/16.29 greater_int(neg(s(x0)), neg(s(x1))) 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (26) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (27) TransformationProof (EQUIVALENT) 39.95/16.29 By narrowing [LPAR04] the rule COND_RAND2(true, x[6], y[6]) -> RAND(plus_int(pos(s(01)), x[6]), id_dec(y[6])) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.29 39.95/16.29 (COND_RAND2(true, neg(x1), y1) -> RAND(minus_nat(s(01), x1), id_dec(y1)),COND_RAND2(true, neg(x1), y1) -> RAND(minus_nat(s(01), x1), id_dec(y1))) 39.95/16.29 (COND_RAND2(true, pos(x1), y1) -> RAND(pos(plus_nat(s(01), x1)), id_dec(y1)),COND_RAND2(true, pos(x1), y1) -> RAND(pos(plus_nat(s(01), x1)), id_dec(y1))) 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (28) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 COND_RAND2(true, neg(x1), y1) -> RAND(minus_nat(s(01), x1), id_dec(y1)) 39.95/16.29 COND_RAND2(true, pos(x1), y1) -> RAND(pos(plus_nat(s(01), x1)), id_dec(y1)) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (29) DependencyGraphProof (EQUIVALENT) 39.95/16.29 The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (30) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 COND_RAND2(true, neg(x1), y1) -> RAND(minus_nat(s(01), x1), id_dec(y1)) 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (31) TransformationProof (EQUIVALENT) 39.95/16.29 By narrowing [LPAR04] the rule COND_RAND2(true, neg(x1), y1) -> RAND(minus_nat(s(01), x1), id_dec(y1)) at position [1] we obtained the following new rules [LPAR04]: 39.95/16.29 39.95/16.29 (COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0),COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0)) 39.95/16.29 (COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))),COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01))))) 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (32) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.29 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 id_dec(x) -> x 39.95/16.29 id_dec(x) -> minus_int(x, pos(s(01))) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (33) UsableRulesProof (EQUIVALENT) 39.95/16.29 As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (34) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.29 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.29 id_dec(x0) 39.95/16.29 plus_int(pos(x0), neg(x1)) 39.95/16.29 plus_int(neg(x0), pos(x1)) 39.95/16.29 plus_int(neg(x0), neg(x1)) 39.95/16.29 plus_int(pos(x0), pos(x1)) 39.95/16.29 plus_nat(01, x0) 39.95/16.29 plus_nat(s(x0), x1) 39.95/16.29 minus_nat(01, 01) 39.95/16.29 minus_nat(01, s(x0)) 39.95/16.29 minus_nat(s(x0), 01) 39.95/16.29 minus_nat(s(x0), s(x1)) 39.95/16.29 minus_int(pos(x0), pos(x1)) 39.95/16.29 minus_int(neg(x0), neg(x1)) 39.95/16.29 minus_int(neg(x0), pos(x1)) 39.95/16.29 minus_int(pos(x0), neg(x1)) 39.95/16.29 39.95/16.29 We have to consider all minimal (P,Q,R)-chains. 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (35) QReductionProof (EQUIVALENT) 39.95/16.29 We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN]. 39.95/16.29 39.95/16.29 id_dec(x0) 39.95/16.29 39.95/16.29 39.95/16.29 ---------------------------------------- 39.95/16.29 39.95/16.29 (36) 39.95/16.29 Obligation: 39.95/16.29 Q DP problem: 39.95/16.29 The TRS P consists of the following rules: 39.95/16.29 39.95/16.29 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.29 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.29 COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) 39.95/16.29 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.29 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.29 39.95/16.29 The TRS R consists of the following rules: 39.95/16.29 39.95/16.29 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.29 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.29 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.29 plus_nat(01, x) -> x 39.95/16.29 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.29 minus_nat(01, 01) -> pos(01) 39.95/16.29 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.29 id_inc(x) -> x 39.95/16.29 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.29 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.29 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.29 39.95/16.29 The set Q consists of the following terms: 39.95/16.29 39.95/16.29 id_inc(x0) 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (37) TransformationProof (EQUIVALENT) 39.95/16.30 By narrowing [LPAR04] the rule COND_RAND1(true, x[3], y[3]) -> RAND(minus_int(x[3], pos(s(01))), id_inc(y[3])) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND1(true, pos(x0), y1) -> RAND(minus_nat(x0, s(01)), id_inc(y1)),COND_RAND1(true, pos(x0), y1) -> RAND(minus_nat(x0, s(01)), id_inc(y1))) 39.95/16.30 (COND_RAND1(true, neg(x0), y1) -> RAND(neg(plus_nat(x0, s(01))), id_inc(y1)),COND_RAND1(true, neg(x0), y1) -> RAND(neg(plus_nat(x0, s(01))), id_inc(y1))) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (38) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.30 COND_RAND1(true, pos(x0), y1) -> RAND(minus_nat(x0, s(01)), id_inc(y1)) 39.95/16.30 COND_RAND1(true, neg(x0), y1) -> RAND(neg(plus_nat(x0, s(01))), id_inc(y1)) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 id_inc(x) -> x 39.95/16.30 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 id_inc(x0) 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (39) DependencyGraphProof (EQUIVALENT) 39.95/16.30 The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (40) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(x0), y1) -> RAND(minus_nat(x0, s(01)), id_inc(y1)) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 id_inc(x) -> x 39.95/16.30 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 id_inc(x0) 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (41) TransformationProof (EQUIVALENT) 39.95/16.30 By narrowing [LPAR04] the rule COND_RAND1(true, pos(x0), y1) -> RAND(minus_nat(x0, s(01)), id_inc(y1)) at position [1] we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0),COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0)) 39.95/16.30 (COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)),COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0))) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (42) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 id_inc(x) -> x 39.95/16.30 id_inc(x) -> plus_int(pos(s(01)), x) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 id_inc(x0) 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (43) UsableRulesProof (EQUIVALENT) 39.95/16.30 As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (44) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 id_inc(x0) 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (45) QReductionProof (EQUIVALENT) 39.95/16.30 We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN]. 39.95/16.30 39.95/16.30 id_inc(x0) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (46) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (47) TransformationProof (EQUIVALENT) 39.95/16.30 By instantiating [LPAR04] the rule COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), x0) we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), z1),COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), z1)) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (48) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), z1) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (49) TransformationProof (EQUIVALENT) 39.95/16.30 By rewriting [LPAR04] the rule COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), z1) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1),COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1)) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (50) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (51) TransformationProof (EQUIVALENT) 39.95/16.30 By instantiating [LPAR04] the rule COND_RAND2(true, neg(y0), x0) -> RAND(minus_nat(s(01), y0), minus_int(x0, pos(s(01)))) we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), minus_int(z1, pos(s(01)))),COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), minus_int(z1, pos(s(01))))) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (52) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), minus_int(z1, pos(s(01)))) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (53) TransformationProof (EQUIVALENT) 39.95/16.30 By rewriting [LPAR04] the rule COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(s(01), s(z0)), minus_int(z1, pos(s(01)))) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01)))),COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01))))) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (54) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01)))) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (55) TransformationProof (EQUIVALENT) 39.95/16.30 By instantiating [LPAR04] the rule COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), x0) we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), z1),COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), z1)) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (56) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01)))) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), z1) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (57) TransformationProof (EQUIVALENT) 39.95/16.30 By rewriting [LPAR04] the rule COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), z1) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), z1),COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), z1)) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (58) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01)))) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), z1) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (59) TransformationProof (EQUIVALENT) 39.95/16.30 By instantiating [LPAR04] the rule COND_RAND1(true, pos(y0), x0) -> RAND(minus_nat(y0, s(01)), plus_int(pos(s(01)), x0)) we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), plus_int(pos(s(01)), z1)),COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), plus_int(pos(s(01)), z1))) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (60) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01)))) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), z1) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), plus_int(pos(s(01)), z1)) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (61) TransformationProof (EQUIVALENT) 39.95/16.30 By rewriting [LPAR04] the rule COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(s(z0), s(01)), plus_int(pos(s(01)), z1)) at position [0] we obtained the following new rules [LPAR04]: 39.95/16.30 39.95/16.30 (COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), plus_int(pos(s(01)), z1)),COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), plus_int(pos(s(01)), z1))) 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (62) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 The TRS P consists of the following rules: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01)))) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), z1) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), plus_int(pos(s(01)), z1)) 39.95/16.30 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (63) MRRProof (EQUIVALENT) 39.95/16.30 By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented. 39.95/16.30 39.95/16.30 Strictly oriented dependency pairs: 39.95/16.30 39.95/16.30 RAND(neg(s(x0)), y1) -> COND_RAND2(true, neg(s(x0)), y1) 39.95/16.30 RAND(pos(s(x0)), y1) -> COND_RAND1(true, pos(s(x0)), y1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), z1) 39.95/16.30 COND_RAND2(true, neg(s(z0)), z1) -> RAND(minus_nat(01, z0), minus_int(z1, pos(s(01)))) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), z1) 39.95/16.30 COND_RAND1(true, pos(s(z0)), z1) -> RAND(minus_nat(z0, 01), plus_int(pos(s(01)), z1)) 39.95/16.30 39.95/16.30 Strictly oriented rules of the TRS R: 39.95/16.30 39.95/16.30 minus_nat(s(x), s(y)) -> minus_nat(x, y) 39.95/16.30 39.95/16.30 Used ordering: Polynomial interpretation [POLO]: 39.95/16.30 39.95/16.30 POL(01) = 0 39.95/16.30 POL(COND_RAND1(x_1, x_2, x_3)) = 2*x_1 + 2*x_2 + x_3 39.95/16.30 POL(COND_RAND2(x_1, x_2, x_3)) = x_1 + 2*x_2 + x_3 39.95/16.30 POL(RAND(x_1, x_2)) = 1 + 2*x_1 + x_2 39.95/16.30 POL(minus_int(x_1, x_2)) = x_1 + 2*x_2 39.95/16.30 POL(minus_nat(x_1, x_2)) = x_1 + 2*x_2 39.95/16.30 POL(neg(x_1)) = 2*x_1 39.95/16.30 POL(plus_int(x_1, x_2)) = x_1 + x_2 39.95/16.30 POL(plus_nat(x_1, x_2)) = x_1 + x_2 39.95/16.30 POL(pos(x_1)) = x_1 39.95/16.30 POL(s(x_1)) = 2 + x_1 39.95/16.30 POL(true) = 0 39.95/16.30 39.95/16.30 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (64) 39.95/16.30 Obligation: 39.95/16.30 Q DP problem: 39.95/16.30 P is empty. 39.95/16.30 The TRS R consists of the following rules: 39.95/16.30 39.95/16.30 minus_nat(01, s(y)) -> neg(s(y)) 39.95/16.30 plus_int(pos(x), neg(y)) -> minus_nat(x, y) 39.95/16.30 plus_int(pos(x), pos(y)) -> pos(plus_nat(x, y)) 39.95/16.30 plus_nat(01, x) -> x 39.95/16.30 plus_nat(s(x), y) -> s(plus_nat(x, y)) 39.95/16.30 minus_nat(s(x), 01) -> pos(s(x)) 39.95/16.30 minus_nat(01, 01) -> pos(01) 39.95/16.30 minus_int(pos(x), pos(y)) -> minus_nat(x, y) 39.95/16.30 minus_int(neg(x), pos(y)) -> neg(plus_nat(x, y)) 39.95/16.30 39.95/16.30 The set Q consists of the following terms: 39.95/16.30 39.95/16.30 plus_int(pos(x0), neg(x1)) 39.95/16.30 plus_int(neg(x0), pos(x1)) 39.95/16.30 plus_int(neg(x0), neg(x1)) 39.95/16.30 plus_int(pos(x0), pos(x1)) 39.95/16.30 plus_nat(01, x0) 39.95/16.30 plus_nat(s(x0), x1) 39.95/16.30 minus_nat(01, 01) 39.95/16.30 minus_nat(01, s(x0)) 39.95/16.30 minus_nat(s(x0), 01) 39.95/16.30 minus_nat(s(x0), s(x1)) 39.95/16.30 minus_int(pos(x0), pos(x1)) 39.95/16.30 minus_int(neg(x0), neg(x1)) 39.95/16.30 minus_int(neg(x0), pos(x1)) 39.95/16.30 minus_int(pos(x0), neg(x1)) 39.95/16.30 39.95/16.30 We have to consider all minimal (P,Q,R)-chains. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (65) PisEmptyProof (EQUIVALENT) 39.95/16.30 The TRS P is empty. Hence, there is no (P,Q,R) chain. 39.95/16.30 ---------------------------------------- 39.95/16.30 39.95/16.30 (66) 39.95/16.30 YES 39.95/16.35 EOF