The relative rewrite relation R/S is considered where R is the following TRS
| top(left(car(x,y),car(old,z))) | → | top(right(y,car(old,z))) | (1) |
| top(left(car(x,car(old,y)),z)) | → | top(right(car(old,y),z)) | (2) |
| top(right(x,car(y,car(old,z)))) | → | top(left(x,car(old,z))) | (3) |
| top(right(car(old,x),car(y,z))) | → | top(left(car(old,x),z)) | (4) |
| top(left(bot,car(old,x))) | → | top(right(bot,car(old,x))) | (5) |
| top(right(car(old,x),bot)) | → | top(left(car(old,x),bot)) | (6) |
and S is the following TRS.
| bot | → | car(new,bot) | (7) |
| top(right(x,car(y,z))) | → | top(right(x,z)) | (8) |
| top(left(car(x,y),z)) | → | top(left(y,z)) | (9) |
| [top(x1)] | = |
|
|||||||||||||||||||
| [left(x1, x2)] | = |
|
|||||||||||||||||||
| [car(x1, x2)] | = |
|
|||||||||||||||||||
| [old] | = |
|
|||||||||||||||||||
| [right(x1, x2)] | = |
|
|||||||||||||||||||
| [bot] | = |
|
|||||||||||||||||||
| [new] | = |
|
| top(left(car(x,car(old,y)),z)) | → | top(right(car(old,y),z)) | (2) |
| [top(x1)] | = |
|
|||||||||||||||||||
| [left(x1, x2)] | = |
|
|||||||||||||||||||
| [car(x1, x2)] | = |
|
|||||||||||||||||||
| [old] | = |
|
|||||||||||||||||||
| [right(x1, x2)] | = |
|
|||||||||||||||||||
| [bot] | = |
|
|||||||||||||||||||
| [new] | = |
|
| top(left(car(x,y),car(old,z))) | → | top(right(y,car(old,z))) | (1) |
| top(left(bot,car(old,x))) | → | top(right(bot,car(old,x))) | (5) |
| [top(x1)] | = |
|
|||||||||||||||||||
| [right(x1, x2)] | = |
|
|||||||||||||||||||
| [car(x1, x2)] | = |
|
|||||||||||||||||||
| [old] | = |
|
|||||||||||||||||||
| [left(x1, x2)] | = |
|
|||||||||||||||||||
| [bot] | = |
|
|||||||||||||||||||
| [new] | = |
|
| top(right(x,car(y,car(old,z)))) | → | top(left(x,car(old,z))) | (3) |
| [top(x1)] | = |
|
|||||||||||||||||||
| [right(x1, x2)] | = |
|
|||||||||||||||||||
| [car(x1, x2)] | = |
|
|||||||||||||||||||
| [old] | = |
|
|||||||||||||||||||
| [left(x1, x2)] | = |
|
|||||||||||||||||||
| [bot] | = |
|
|||||||||||||||||||
| [new] | = |
|
| top(right(car(old,x),car(y,z))) | → | top(left(car(old,x),z)) | (4) |
| top(right(car(old,x),bot)) | → | top(left(car(old,x),bot)) | (6) |
There are no rules in the TRS. Hence, it is terminating.