The rewrite relation of the following TRS is considered.
+(X,0) | → | X | (1) |
+(X,s(Y)) | → | s(+(X,Y)) | (2) |
f(0,s(0),X) | → | f(X,+(X,X),X) | (3) |
g(X,Y) | → | X | (4) |
g(X,Y) | → | Y | (5) |
t0 | = | f(g(0,s(0)),+(g(0,s(0)),g(0,s(0))),g(0,s(0))) |
→ | f(g(0,s(0)),+(s(0),g(0,s(0))),g(0,s(0))) | |
→ | f(g(0,s(0)),+(s(0),0),g(0,s(0))) | |
→ | f(g(0,s(0)),s(0),g(0,s(0))) | |
→ | f(0,s(0),g(0,s(0))) | |
→ | f(g(0,s(0)),+(g(0,s(0)),g(0,s(0))),g(0,s(0))) | |
= | t5 |