The rewrite relation of the following TRS is considered.
+(X,0) | → | X | (1) |
+(X,s(Y)) | → | s(+(X,Y)) | (2) |
double(X) | → | +(X,X) | (3) |
f(0,s(0),X) | → | f(X,double(X),X) | (4) |
g(X,Y) | → | X | (5) |
g(X,Y) | → | Y | (6) |
+#(X,s(Y)) | → | +#(X,Y) | (7) |
double#(X) | → | +#(X,X) | (8) |
f#(0,s(0),X) | → | f#(X,double(X),X) | (9) |
f#(0,s(0),X) | → | double#(X) | (10) |
+#(X,s(Y)) | → | +#(X,Y) | (7) |
double#(X) | → | +#(X,X) | (8) |
f#(0,s(0),X) | → | double#(X) | (10) |
t0 | = | f#(g(0,s(0)),double(g(0,s(0))),g(0,s(0))) |
→R | f#(g(0,s(0)),+(g(0,s(0)),g(0,s(0))),g(0,s(0))) | |
→R | f#(g(0,s(0)),+(g(0,s(0)),0),g(0,s(0))) | |
→R | f#(g(0,s(0)),+(s(0),0),g(0,s(0))) | |
→R | f#(g(0,s(0)),s(0),g(0,s(0))) | |
→R | f#(0,s(0),g(0,s(0))) | |
→P | f#(g(0,s(0)),double(g(0,s(0))),g(0,s(0))) | |
= | t6 |