The rewrite relation of the following equational 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_1(false,x,y,edge(u,v,i),h) | → | reach(x,y,i,edge(u,v,h)) | (12) |
| if_reach_2(true,x,y,edge(u,v,i),h) | → | true | (13) |
| if_reach_2(false,x,y,edge(u,v,i),h) | → | or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (14) |
Associative symbols: or
Commutative symbols: eq, or
The following set of (strict) dependency pairs is constructed for the TRS.
| eq#(s(x),s(y)) | → | eq#(x,y) | (22) |
| union#(edge(x,y,i),h) | → | union#(i,h) | (23) |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
| reach#(x,y,edge(u,v,i),h) | → | eq#(x,u) | (25) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (26) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | eq#(y,v) | (27) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (28) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | or#(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (29) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (30) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (31) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | union#(i,h) | (32) |
| or#(or(true,y),ext) | → | or#(true,ext) | (33) |
| or#(or(false,y),ext) | → | or#(y,ext) | (34) |
| or(or(true,y),ext) | → | or(true,ext) | (35) |
| or(or(false,y),ext) | → | or(y,ext) | (36) |
The dependency pairs are split into 4 components.
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
| if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (26) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (30) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (31) |
| if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (28) |
| [if_reach_1#(x1,...,x5)] | = | 3 · x3 + 2 · x4 + 2 · x5 |
| [true] | = | 0 |
| [edge(x1, x2, x3)] | = | 1 + 1 · x3 |
| [if_reach_2#(x1,...,x5)] | = | 3 · x3 + 2 · x4 + 2 · x5 |
| [eq(x1, x2)] | = | 0 |
| [false] | = | 0 |
| [reach#(x1,...,x4)] | = | 3 · x2 + 2 · x3 + 2 · x4 |
| [union(x1, x2)] | = | 1 · x1 + 1 · x2 |
| [empty] | = | 0 |
| [0] | = | 0 |
| [s(x1)] | = | 0 |
| union(empty,h) | → | h | (7) |
| union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (31) |
| if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (30) |
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)) | (28) |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
| [if_reach_1#(x1,...,x5)] | = | 1 + 3 · x2 + 1 · x4 |
| [false] | = | 0 |
| [edge(x1, x2, x3)] | = | 1 + 2 · x2 + 3 · x3 |
| [reach#(x1,...,x4)] | = | 2 + 3 · x1 + 3 · x3 |
| [eq(x1, x2)] | = | 0 |
| [0] | = | 0 |
| [s(x1)] | = | 0 |
| [true] | = | 3 |
| reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (24) |
The dependency pairs are split into 0 components.
| eq#(x,y) | → | eq#(y,x) | (18) |
| eq#(s(x),s(y)) | → | eq#(x,y) | (22) |
| [eq#(x1, x2)] | = | 3 · x1 + 3 · x2 |
| [s(x1)] | = | 3 · x1 |
| eq#(s(x),s(y)) | → | eq#(x,y) | (22) |
| 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_1(false,x,y,edge(u,v,i),h) | → | reach(x,y,i,edge(u,v,h)) | (12) |
| if_reach_2(true,x,y,edge(u,v,i),h) | → | true | (13) |
| if_reach_2(false,x,y,edge(u,v,i),h) | → | or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (14) |
| or(or(true,y),ext) | → | or(true,ext) | (35) |
| or(or(false,y),ext) | → | or(y,ext) | (36) |
| union#(edge(x,y,i),h) | → | union#(i,h) | (23) |
| [union#(x1, x2)] | = | 3 · x1 + 1 · x2 |
| [edge(x1, x2, x3)] | = | 1 · x1 + 1 · x2 + 3 · x3 |
| union#(edge(x,y,i),h) | → | union#(i,h) | (23) |
| 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_1(false,x,y,edge(u,v,i),h) | → | reach(x,y,i,edge(u,v,h)) | (12) |
| if_reach_2(true,x,y,edge(u,v,i),h) | → | true | (13) |
| if_reach_2(false,x,y,edge(u,v,i),h) | → | or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (14) |
| or(or(true,y),ext) | → | or(true,ext) | (35) |
| or(or(false,y),ext) | → | or(y,ext) | (36) |
| or#(or(false,y),ext) | → | or#(y,ext) | (34) |
| or#(or(true,y),ext) | → | or#(true,ext) | (33) |
| or#(or(x,y),z) | → | or#(y,z) | (21) |
| or#(x,y) | → | or#(y,x) | (19) |
| or#(or(x,y),z) | → | or#(x,or(y,z)) | (20) |
| [or#(x1, x2)] | = | 2 · x1 + 2 · x2 |
| [or(x1, x2)] | = | 2 + 1 · x1 + 1 · x2 |
| [true] | = | 0 |
| [false] | = | 0 |
| or(true,y) | → | true | (5) |
| or(false,y) | → | y | (6) |
| or(or(true,y),ext) | → | or(true,ext) | (35) |
| or(or(false,y),ext) | → | or(y,ext) | (36) |
| or(or(x,y),z) | → | or(x,or(y,z)) | (17) |
| or(x,y) | → | or(y,x) | (16) |
| or#(or(x,y),z) | → | or#(y,z) | (21) |
| or#(or(true,y),ext) | → | or#(true,ext) | (33) |
| or#(or(false,y),ext) | → | or#(y,ext) | (34) |
| 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_1(false,x,y,edge(u,v,i),h) | → | reach(x,y,i,edge(u,v,h)) | (12) |
| if_reach_2(true,x,y,edge(u,v,i),h) | → | true | (13) |
| if_reach_2(false,x,y,edge(u,v,i),h) | → | or(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (14) |
| or(or(true,y),ext) | → | or(true,ext) | (35) |
| or(or(false,y),ext) | → | or(y,ext) | (36) |