We consider the TRS containing the following rules:
g(x) | → | h(k(x),x) | (1) |
g(x) | → | x | (2) |
h(k(x),x) | → | x | (3) |
k(c) | → | c | (4) |
h(k(c),c) | → | g(c) | (5) |
h(c,c) | → | c | (6) |
The underlying signature is as follows:
{g/1, h/2, k/1, c/0}To prove that the TRS is (non-)confluent, we show (non-)confluence of the following modified system:
g(x) | → | x | (2) |
h(k(x),x) | → | x | (3) |
k(c) | → | c | (4) |
h(c,c) | → | c | (6) |
All redundant rules that were added or removed can be simulated in 4 steps .
[k(x1)] | = | 2 · x1 + 1 |
[c] | = | 0 |
[g(x1)] | = | 2 · x1 + 1 |
[h(x1, x2)] | = | 6 · x1 + 3 · x2 + 6 |
g(x) | → | x | (2) |
h(k(x),x) | → | x | (3) |
k(c) | → | c | (4) |
h(c,c) | → | c | (6) |
There are no rules in the TRS. Hence, it is terminating.