The rewrite relation of the following TRS is considered.
app(id,x) | → | x | (1) |
app(plus,0) | → | id | (2) |
app(app(plus,app(s,x)),y) | → | app(s,app(app(plus,x),y)) | (3) |
prec(id) | = | 0 | weight(id) | = | 2 | ||||
prec(plus) | = | 2 | weight(plus) | = | 1 | ||||
prec(0) | = | 3 | weight(0) | = | 1 | ||||
prec(s) | = | 4 | weight(s) | = | 1 | ||||
prec(app) | = | 1 | weight(app) | = | 0 |
app(id,x) | → | x | (1) |
app(plus,0) | → | id | (2) |
app(app(plus,app(s,x)),y) | → | app(s,app(app(plus,x),y)) | (3) |
There are no rules in the TRS. Hence, it is terminating.