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