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(s) | = | 0 | weight(s) | = | 4 | ||||
| prec(0) | = | 3 | weight(0) | = | 1 | ||||
| prec(plus) | = | 1 | weight(plus) | = | 1 | ||||
| prec(app) | = | 5 | weight(app) | = | 0 | ||||
| prec(id) | = | 4 | weight(id) | = | 2 |
| 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.