The rewrite relation of the following TRS is considered.
plus(s(X),plus(Y,Z)) | → | plus(X,plus(s(s(Y)),Z)) | (1) |
plus(s(X1),plus(X2,plus(X3,X4))) | → | plus(X1,plus(X3,plus(X2,X4))) | (2) |
prec(plus) | = | 0 | weight(plus) | = | 0 | ||||
prec(s) | = | 1 | weight(s) | = | 0 |
plus(s(X),plus(Y,Z)) | → | plus(X,plus(s(s(Y)),Z)) | (1) |
plus(s(X1),plus(X2,plus(X3,X4))) | → | plus(X1,plus(X3,plus(X2,X4))) | (2) |
There are no rules in the TRS. Hence, it is terminating.