The rewrite relation of the following TRS is considered.
| g(c(x,s(y))) | → | g(c(s(x),y)) | (1) |
| f(c(s(x),y)) | → | f(c(x,s(y))) | (2) |
| f(f(x)) | → | f(d(f(x))) | (3) |
| f(x) | → | x | (4) |
| [d(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [c(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [f(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [g(x1)] | = |
|
| f(f(x)) | → | f(d(f(x))) | (3) |
| [c(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [f(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [g(x1)] | = |
|
| f(x) | → | x | (4) |
| [c(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [f(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [g(x1)] | = |
|
| f(c(s(x),y)) | → | f(c(x,s(y))) | (2) |
| [c(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||
| [s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||
| [g(x1)] | = |
|
| g(c(x,s(y))) | → | g(c(s(x),y)) | (1) |
There are no rules in the TRS. Hence, it is terminating.