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