We consider the TRS containing the following rules:
+(x,y) | → | if(y,x,s(+(x,-(y,s(0))))) | (1) |
+(x,y) | → | +(y,x) | (2) |
if(0,y,z) | → | y | (3) |
if(s(x),y,z) | → | z | (4) |
if(x,y,y) | → | y | (5) |
-(x,0) | → | x | (6) |
-(0,s(y)) | → | 0 | (7) |
-(s(x),s(y)) | → | -(x,y) | (8) |
The underlying signature is as follows:
{+/2, if/3, s/1, -/2, 0/0}t0 | = | +(0,c_1) |
→ | if(c_1,0,s(+(0,-(c_1,s(0))))) | |
→ | if(c_1,0,s(+(-(c_1,s(0)),0))) | |
→ | if(c_1,0,s(if(0,-(c_1,s(0)),s(+(-(c_1,s(0)),-(0,s(0))))))) | |
→ | if(c_1,0,s(-(c_1,s(0)))) | |
= | t4 |
t0 | = | +(0,c_1) |
→ | +(c_1,0) | |
→ | if(0,c_1,s(+(c_1,-(0,s(0))))) | |
→ | c_1 | |
= | t3 |
π(-) | = | [1,2] |
π(0) | = | [] |
π(s) | = | [] |
π(if) | = | [] |
π(c_1) | = | [] |