The rewrite relation of the following TRS is considered.
| eq(0,0) | → | true | (1) |
| eq(0,s(x)) | → | false | (2) |
| eq(s(x),0) | → | false | (3) |
| eq(s(x),s(y)) | → | eq(x,y) | (4) |
| or(true,y) | → | true | (5) |
| or(false,y) | → | y | (6) |
| union(empty,h) | → | h | (7) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| reach(x,y,empty,h) | → | false | (9) |
| reach(x,y,edge(u,v,i),h) | → | if_reach_1(eq(x,u),x,y,edge(u,v,i),h) | (10) |
| if_reach_1(true,x,y,edge(u,v,i),h) | → | if_reach_2(eq(y,v),x,y,edge(u,v,i),h) | (11) |
| if_reach_2(true,x,y,edge(u,v,i),h) | → | true | (12) |
| if_reach_2(false,x,y,edge(u,v,i),h) | → | or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (13) |
| if_reach_1(false,x,y,edge(u,v,i),h) | → | reach(x,y,i,edge(u,v,h)) | (14) |
| eq#(s(x),s(y)) | → | eq#(x,y) | (15) |
| union#(edge(x,y,i),h) | → | union#(i,h) | (16) |
| reach#(x,y,edge(u,v,i),h) | → | eq#(x,u) | (17) |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (18) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | eq#(y,v) | (19) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (20) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | union#(i,h) | (21) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (22) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (23) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | or#(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (24) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (25) |
The dependency pairs are split into 3 components.
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (22) |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (18) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (20) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (23) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (25) |
| [false] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [reach#(x1,...,x4)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [edge(x1, x2, x3)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [eq(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [s(x1)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [if_reach_1#(x1,...,x5)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [if_reach_2#(x1,...,x5)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [0] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [union(x1, x2)] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [empty] | = |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [true] | = |
|
| union(empty,h) | → | h | (7) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| eq(0,0) | → | true | (1) |
| eq(0,s(x)) | → | false | (2) |
| eq(s(x),0) | → | false | (3) |
| eq(s(x),s(y)) | → | eq(x,y) | (4) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (22) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (23) |
The dependency pairs are split into 1 component.
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (25) |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (18) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (25) |
| 4 | > | 3 | |
| 3 | ≥ | 2 | |
| 2 | ≥ | 1 | |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (18) |
| 4 | ≥ | 5 | |
| 3 | ≥ | 4 | |
| 2 | ≥ | 3 | |
| 1 | ≥ | 2 |
As there is no critical graph in the transitive closure, there are no infinite chains.
| union#(edge(x,y,i),h) | → | union#(i,h) | (16) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
| union#(edge(x,y,i),h) | → | union#(i,h) | (16) |
| 2 | ≥ | 2 | |
| 1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
| eq#(s(x),s(y)) | → | eq#(x,y) | (15) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
| eq#(s(x),s(y)) | → | eq#(x,y) | (15) |
| 2 | > | 2 | |
| 1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.