The rewrite relation of the following TRS is considered.
| top(sent(x)) | → | top(check(rest(x))) | (1) |
| rest(nil) | → | sent(nil) | (2) |
| rest(cons(x,y)) | → | sent(y) | (3) |
| check(sent(x)) | → | sent(check(x)) | (4) |
| check(rest(x)) | → | rest(check(x)) | (5) |
| check(cons(x,y)) | → | cons(check(x),y) | (6) |
| check(cons(x,y)) | → | cons(x,check(y)) | (7) |
| check(cons(x,y)) | → | cons(x,y) | (8) |
| [nil] | = |
|
||||||||||||||||||||||||||||||||||||
| [top(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [check(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [cons(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [sent(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [rest(x1)] | = |
|
| rest(cons(x,y)) | → | sent(y) | (3) |
| [nil] | = |
|
||||||||||||||||||||||||||||||||||||
| [top(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [check(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [cons(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [sent(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [rest(x1)] | = |
|
| top(sent(x)) | → | top(check(rest(x))) | (1) |
| prec(cons) | = | 2 | weight(cons) | = | 0 | ||||
| prec(nil) | = | 4 | weight(nil) | = | 1 | ||||
| prec(check) | = | 3 | weight(check) | = | 4 | ||||
| prec(rest) | = | 1 | weight(rest) | = | 4 | ||||
| prec(sent) | = | 0 | weight(sent) | = | 4 |
| rest(nil) | → | sent(nil) | (2) |
| check(sent(x)) | → | sent(check(x)) | (4) |
| check(rest(x)) | → | rest(check(x)) | (5) |
| check(cons(x,y)) | → | cons(check(x),y) | (6) |
| check(cons(x,y)) | → | cons(x,check(y)) | (7) |
| check(cons(x,y)) | → | cons(x,y) | (8) |
There are no rules in the TRS. Hence, it is terminating.