The relative rewrite relation R/S is considered where R is the following TRS
d(d(n(n(x1)))) | → | d(d(x1)) | (1) |
d(d(o(o(x1)))) | → | d(d(x1)) | (2) |
o(o(u(u(x1)))) | → | u(u(x1)) | (3) |
and S is the following TRS.
t(t(u(u(x1)))) | → | t(t(c(c(d(d(x1)))))) | (4) |
d(d(f(f(x1)))) | → | f(f(d(d(x1)))) | (5) |
d(d(g(g(x1)))) | → | u(u(g(g(x1)))) | (6) |
f(f(u(u(x1)))) | → | u(u(f(f(x1)))) | (7) |
n(n(u(u(x1)))) | → | u(u(x1)) | (8) |
f(f(x1)) | → | f(f(n(n(x1)))) | (9) |
t(t(x1)) | → | t(t(c(c(n(n(x1)))))) | (10) |
c(c(n(n(x1)))) | → | n(n(c(c(x1)))) | (11) |
c(c(o(o(x1)))) | → | o(o(c(c(x1)))) | (12) |
c(c(o(o(x1)))) | → | o(o(x1)) | (13) |
c(c(f(f(x1)))) | → | f(f(c(c(x1)))) | (14) |
c(c(u(u(x1)))) | → | u(u(c(c(x1)))) | (15) |
c(c(d(d(x1)))) | → | d(d(c(c(x1)))) | (16) |
[o(x1)] | = |
x1 +
|
||||
[n(x1)] | = |
x1 +
|
||||
[g(x1)] | = |
x1 +
|
||||
[f(x1)] | = |
x1 +
|
||||
[d(x1)] | = |
x1 +
|
||||
[c(x1)] | = |
x1 +
|
||||
[u(x1)] | = |
x1 +
|
||||
[t(x1)] | = |
x1 +
|
d(d(o(o(x1)))) | → | d(d(x1)) | (2) |
o(o(u(u(x1)))) | → | u(u(x1)) | (3) |
[o(x1)] | = |
|
||||||||||||||||||
[n(x1)] | = |
|
||||||||||||||||||
[g(x1)] | = |
|
||||||||||||||||||
[f(x1)] | = |
|
||||||||||||||||||
[d(x1)] | = |
|
||||||||||||||||||
[c(x1)] | = |
|
||||||||||||||||||
[u(x1)] | = |
|
||||||||||||||||||
[t(x1)] | = |
|
d(d(g(g(x1)))) | → | u(u(g(g(x1)))) | (6) |
[o(x1)] | = |
x1 +
|
||||
[n(x1)] | = |
x1 +
|
||||
[f(x1)] | = |
x1 +
|
||||
[d(x1)] | = |
x1 +
|
||||
[c(x1)] | = |
x1 +
|
||||
[u(x1)] | = |
x1 +
|
||||
[t(x1)] | = |
x1 +
|
t(t(u(u(x1)))) | → | t(t(c(c(d(d(x1)))))) | (4) |
n(n(d(d(x1)))) | → | d(d(x1)) | (17) |
f(f(d(d(x1)))) | → | d(d(f(f(x1)))) | (18) |
u(u(f(f(x1)))) | → | f(f(u(u(x1)))) | (19) |
u(u(n(n(x1)))) | → | u(u(x1)) | (20) |
f(f(x1)) | → | n(n(f(f(x1)))) | (21) |
t(t(x1)) | → | n(n(c(c(t(t(x1)))))) | (22) |
n(n(c(c(x1)))) | → | c(c(n(n(x1)))) | (23) |
o(o(c(c(x1)))) | → | c(c(o(o(x1)))) | (24) |
o(o(c(c(x1)))) | → | o(o(x1)) | (25) |
f(f(c(c(x1)))) | → | c(c(f(f(x1)))) | (26) |
u(u(c(c(x1)))) | → | c(c(u(u(x1)))) | (27) |
d(d(c(c(x1)))) | → | c(c(d(d(x1)))) | (28) |
[o(x1)] | = |
|
||||||||
[n(x1)] | = |
|
||||||||
[f(x1)] | = |
|
||||||||
[d(x1)] | = |
|
||||||||
[c(x1)] | = |
|
||||||||
[u(x1)] | = |
|
||||||||
[t(x1)] | = |
|
f(f(d(d(x1)))) | → | d(d(f(f(x1)))) | (18) |
[o(x1)] | = |
|
||||||||
[n(x1)] | = |
|
||||||||
[f(x1)] | = |
|
||||||||
[d(x1)] | = |
|
||||||||
[c(x1)] | = |
|
||||||||
[u(x1)] | = |
|
||||||||
[t(x1)] | = |
|
u(u(f(f(x1)))) | → | f(f(u(u(x1)))) | (19) |
[o(x1)] | = |
|
||||||||||||
[n(x1)] | = |
|
||||||||||||
[f(x1)] | = |
|
||||||||||||
[d(x1)] | = |
|
||||||||||||
[c(x1)] | = |
|
||||||||||||
[u(x1)] | = |
|
||||||||||||
[t(x1)] | = |
|
n(n(d(d(x1)))) | → | d(d(x1)) | (17) |
There are no rules in the TRS. Hence, it is terminating.