The rewrite relation of the following TRS is considered.
a(x1) | → | x1 | (1) |
o(x1) | → | x1 | (2) |
l(x1) | → | x1 | (3) |
S(x1) | → | x1 | (4) |
+(x1,x2) | → | x2 | (5) |
+(x1,x2) | → | x1 | (6) |
P(x1,x2,x3) | → | x3 | (7) |
P(x1,x2,x3) | → | x2 | (8) |
P(x1,x2,x3) | → | x1 | (9) |
M(x1,x2,x3) | → | x3 | (10) |
M(x1,x2,x3) | → | x2 | (11) |
M(x1,x2,x3) | → | x1 | (12) |
J1(x1,x2) | → | x2 | (13) |
J1(x1,x2) | → | x1 | (14) |
J2(x1,x2,x3) | → | x3 | (15) |
J2(x1,x2,x3) | → | x2 | (16) |
J2(x1,x2,x3) | → | x1 | (17) |
Q11(x1,x2) | → | x2 | (18) |
Q11(x1,x2) | → | x1 | (19) |
Q21(x1,x2,x3) | → | x3 | (20) |
Q21(x1,x2,x3) | → | x2 | (21) |
Q21(x1,x2,x3) | → | x1 | (22) |
Q22(x1,x2,x3) | → | x3 | (23) |
Q22(x1,x2,x3) | → | x2 | (24) |
Q22(x1,x2,x3) | → | x1 | (25) |
R1(x1,x2,x3) | → | x3 | (26) |
R1(x1,x2,x3) | → | x2 | (27) |
R1(x1,x2,x3) | → | x1 | (28) |
R2(x1,x2,x3,x4) | → | x4 | (29) |
R2(x1,x2,x3,x4) | → | x3 | (30) |
R2(x1,x2,x3,x4) | → | x2 | (31) |
R2(x1,x2,x3,x4) | → | x1 | (32) |
P(0,0,0) | → | S(0) | (33) |
+(x,S(y)) | → | S(+(x,y)) | (34) |
a(l(x)) | → | l(a(a(x))) | (35) |
l(o(x)) | → | o(l(l(x))) | (36) |
o(x) | → | l(x) | (37) |
l(x) | → | a(x) | (38) |
a(S(x)) | → | S(l(x)) | (39) |
a(+(x,y)) | → | +(l(x),y) | (40) |
a(+(x,y)) | → | +(x,l(y)) | (41) |
a(P(x1,x2,x3)) | → | P(x1,x2,l(x3)) | (42) |
a(P(x1,x2,x3)) | → | P(x1,l(x2),x3) | (43) |
a(P(x1,x2,x3)) | → | P(l(x1),x2,x3) | (44) |
+(x,o(y)) | → | o(+(x,y)) | (45) |
P(x1,x2,o(x3)) | → | o(P(x1,x2,x3)) | (46) |
P(x1,o(x2),x3) | → | o(P(x1,x2,x3)) | (47) |
P(o(x1),x2,x3) | → | o(P(x1,x2,x3)) | (48) |
M(x1,x2,l(y)) | → | +(M(x1,x2,y),P(x1,x2,y)) | (49) |
J2(x1,l(x2),y) | → | P(x1,J2(x1,x2,y),0) | (50) |
J1(l(x1),y) | → | P(J1(x1,y),0,0) | (51) |
a(S(x)) | → | o(x) | (52) |
P(0,0,S(y)) | → | o(M(0,0,y)) | (53) |
P(0,0,P(x1,x2,y)) | → | o(M(x1,x2,y)) | (54) |
P(x1,S(x2),y) | → | o(J2(x1,x2,y)) | (55) |
P(S(x1),0,y) | → | o(J1(x1,y)) | (56) |
P(x1,S(x2),S(y)) | → | o(J2(x1,x2,P(x1,S(x2),y))) | (57) |
P(S(x1),0,S(y)) | → | o(J1(x1,P(S(x1),0,y))) | (58) |
a(P(x1,x2,0)) | → | Q22(x1,a(x2),x2) | (59) |
a(P(x1,x2,0)) | → | Q21(x1,a(x2),x1) | (60) |
a(P(x1,0,0)) | → | Q11(a(x1),x1) | (61) |
Q22(x1,o(x2),y) | → | o(P(x1,x2,y)) | (62) |
Q21(x1,o(x2),y) | → | o(P(x1,x2,y)) | (63) |
Q11(o(x1),y) | → | o(P(x1,0,y)) | (64) |
a(P(x1,x2,S(y))) | → | R2(x1,a(x2),x2,y) | (65) |
a(P(x1,0,S(y))) | → | R1(a(x1),x1,y) | (66) |
R2(x1,o(x2),y,z) | → | o(P(x1,x2,P(x1,y,z))) | (67) |
R1(o(x1),y,z) | → | o(P(x1,0,P(y,0,z))) | (68) |
P#(0,0,0) | → | S#(0) | (69) |
+#(x,S(y)) | → | S#(+(x,y)) | (70) |
+#(x,S(y)) | → | +#(x,y) | (71) |
a#(l(x)) | → | l#(a(a(x))) | (72) |
a#(l(x)) | → | a#(a(x)) | (73) |
a#(l(x)) | → | a#(x) | (74) |
l#(o(x)) | → | o#(l(l(x))) | (75) |
l#(o(x)) | → | l#(l(x)) | (76) |
l#(o(x)) | → | l#(x) | (77) |
o#(x) | → | l#(x) | (78) |
l#(x) | → | a#(x) | (79) |
a#(S(x)) | → | S#(l(x)) | (80) |
a#(S(x)) | → | l#(x) | (81) |
a#(+(x,y)) | → | +#(l(x),y) | (82) |
a#(+(x,y)) | → | l#(x) | (83) |
a#(+(x,y)) | → | +#(x,l(y)) | (84) |
a#(+(x,y)) | → | l#(y) | (85) |
a#(P(x1,x2,x3)) | → | P#(x1,x2,l(x3)) | (86) |
a#(P(x1,x2,x3)) | → | l#(x3) | (87) |
a#(P(x1,x2,x3)) | → | P#(x1,l(x2),x3) | (88) |
a#(P(x1,x2,x3)) | → | l#(x2) | (89) |
a#(P(x1,x2,x3)) | → | P#(l(x1),x2,x3) | (90) |
a#(P(x1,x2,x3)) | → | l#(x1) | (91) |
+#(x,o(y)) | → | o#(+(x,y)) | (92) |
+#(x,o(y)) | → | +#(x,y) | (93) |
P#(x1,x2,o(x3)) | → | o#(P(x1,x2,x3)) | (94) |
P#(x1,x2,o(x3)) | → | P#(x1,x2,x3) | (95) |
P#(x1,o(x2),x3) | → | o#(P(x1,x2,x3)) | (96) |
P#(x1,o(x2),x3) | → | P#(x1,x2,x3) | (97) |
P#(o(x1),x2,x3) | → | o#(P(x1,x2,x3)) | (98) |
P#(o(x1),x2,x3) | → | P#(x1,x2,x3) | (99) |
M#(x1,x2,l(y)) | → | +#(M(x1,x2,y),P(x1,x2,y)) | (100) |
M#(x1,x2,l(y)) | → | M#(x1,x2,y) | (101) |
M#(x1,x2,l(y)) | → | P#(x1,x2,y) | (102) |
J2#(x1,l(x2),y) | → | P#(x1,J2(x1,x2,y),0) | (103) |
J2#(x1,l(x2),y) | → | J2#(x1,x2,y) | (104) |
J1#(l(x1),y) | → | P#(J1(x1,y),0,0) | (105) |
J1#(l(x1),y) | → | J1#(x1,y) | (106) |
a#(S(x)) | → | o#(x) | (107) |
P#(0,0,S(y)) | → | o#(M(0,0,y)) | (108) |
P#(0,0,S(y)) | → | M#(0,0,y) | (109) |
P#(0,0,P(x1,x2,y)) | → | o#(M(x1,x2,y)) | (110) |
P#(0,0,P(x1,x2,y)) | → | M#(x1,x2,y) | (111) |
P#(x1,S(x2),y) | → | o#(J2(x1,x2,y)) | (112) |
P#(x1,S(x2),y) | → | J2#(x1,x2,y) | (113) |
P#(S(x1),0,y) | → | o#(J1(x1,y)) | (114) |
P#(S(x1),0,y) | → | J1#(x1,y) | (115) |
P#(x1,S(x2),S(y)) | → | o#(J2(x1,x2,P(x1,S(x2),y))) | (116) |
P#(x1,S(x2),S(y)) | → | J2#(x1,x2,P(x1,S(x2),y)) | (117) |
P#(x1,S(x2),S(y)) | → | P#(x1,S(x2),y) | (118) |
P#(S(x1),0,S(y)) | → | o#(J1(x1,P(S(x1),0,y))) | (119) |
P#(S(x1),0,S(y)) | → | J1#(x1,P(S(x1),0,y)) | (120) |
P#(S(x1),0,S(y)) | → | P#(S(x1),0,y) | (121) |
a#(P(x1,x2,0)) | → | Q22#(x1,a(x2),x2) | (122) |
a#(P(x1,x2,0)) | → | a#(x2) | (123) |
a#(P(x1,x2,0)) | → | Q21#(x1,a(x2),x1) | (124) |
a#(P(x1,0,0)) | → | Q11#(a(x1),x1) | (125) |
a#(P(x1,0,0)) | → | a#(x1) | (126) |
Q22#(x1,o(x2),y) | → | o#(P(x1,x2,y)) | (127) |
Q22#(x1,o(x2),y) | → | P#(x1,x2,y) | (128) |
Q21#(x1,o(x2),y) | → | o#(P(x1,x2,y)) | (129) |
Q21#(x1,o(x2),y) | → | P#(x1,x2,y) | (130) |
Q11#(o(x1),y) | → | o#(P(x1,0,y)) | (131) |
Q11#(o(x1),y) | → | P#(x1,0,y) | (132) |
a#(P(x1,x2,S(y))) | → | R2#(x1,a(x2),x2,y) | (133) |
a#(P(x1,x2,S(y))) | → | a#(x2) | (134) |
a#(P(x1,0,S(y))) | → | R1#(a(x1),x1,y) | (135) |
a#(P(x1,0,S(y))) | → | a#(x1) | (136) |
R2#(x1,o(x2),y,z) | → | o#(P(x1,x2,P(x1,y,z))) | (137) |
R2#(x1,o(x2),y,z) | → | P#(x1,x2,P(x1,y,z)) | (138) |
R2#(x1,o(x2),y,z) | → | P#(x1,y,z) | (139) |
R1#(o(x1),y,z) | → | o#(P(x1,0,P(y,0,z))) | (140) |
R1#(o(x1),y,z) | → | P#(x1,0,P(y,0,z)) | (141) |
R1#(o(x1),y,z) | → | P#(y,0,z) | (142) |
P#(0,0,0) | → | S#(0) | (69) |
+#(x,S(y)) | → | S#(+(x,y)) | (70) |
a#(S(x)) | → | S#(l(x)) | (80) |
a#(l(x)) | → | a#(x) | (74) |
a#(l(l(x0))) | → | a#(l(a(a(x0)))) | (143) |
a#(l(S(x0))) | → | a#(S(l(x0))) | (144) |
a#(l(+(x0,x1))) | → | a#(+(l(x0),x1)) | (145) |
a#(l(+(x0,x1))) | → | a#(+(x0,l(x1))) | (146) |
a#(l(P(x0,x1,x2))) | → | a#(P(x0,x1,l(x2))) | (147) |
a#(l(P(x0,x1,x2))) | → | a#(P(x0,l(x1),x2)) | (148) |
a#(l(P(x0,x1,x2))) | → | a#(P(l(x0),x1,x2)) | (149) |
a#(l(S(x0))) | → | a#(o(x0)) | (150) |
a#(l(P(x0,x1,0))) | → | a#(Q22(x0,a(x1),x1)) | (151) |
a#(l(P(x0,x1,0))) | → | a#(Q21(x0,a(x1),x0)) | (152) |
a#(l(P(x0,0,0))) | → | a#(Q11(a(x0),x0)) | (153) |
a#(l(P(x0,x1,S(x2)))) | → | a#(R2(x0,a(x1),x1,x2)) | (154) |
a#(l(P(x0,0,S(x1)))) | → | a#(R1(a(x0),x0,x1)) | (155) |
a#(+(y0,x0)) | → | +#(y0,x0) | (156) |
a#(+(y0,o(x0))) | → | +#(y0,o(l(l(x0)))) | (157) |
a#(+(y0,x0)) | → | +#(y0,a(x0)) | (158) |
J1#(l(x0),x1) | → | P#(x1,0,0) | (159) |
J1#(l(x0),x1) | → | P#(x0,0,0) | (160) |
J1#(l(l(x0)),x1) | → | P#(P(J1(x0,x1),0,0),0,0) | (161) |
t0 | = | J2#(S(l(x2'')),l(x2''),0) |
→P | P#(S(l(x2'')),J2(S(l(x2'')),x2'',0),0) | |
→R | P#(S(l(x2'')),S(l(x2'')),0) | |
→P | J2#(S(l(x2'')),l(x2''),0) | |
= | t3 |