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