We consider the TRS containing the following rules:
f(x) | → | g(a) | (1) |
g(x) | → | x | (2) |
h(x,x) | → | 0 | (3) |
a | → | 1 | (4) |
The underlying signature is as follows:
{f/1, g/1, a/0, h/2, 0/0, 1/0}f | : | 3 → 2 |
g | : | 2 → 2 |
a | : | 2 |
h | : | 1 ⨯ 1 → 0 |
0 | : | 0 |
1 | : | 2 |
h(x,x) | → | 0 | (3) |
f(x) | → | g(a) | (1) |
g(x) | → | x | (2) |
a | → | 1 | (4) |
To prove that the TRS is (non-)confluent, we show (non-)confluence of the following modified system:
h(x,x) | → | 0 | (3) |
All redundant rules that were added or removed can be simulated in 2 steps .
[0] | = | 0 |
[h(x1, x2)] | = | 1 · x1 + 2 · x2 + 1 |
h(x,x) | → | 0 | (3) |
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.