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.
if_reach_1#(true,x,y,edge(u,v,i),h) | → | eq#(y,v) | (22) |
if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (23) |
union#(edge(x,y,i),h) | → | union#(i,h) | (24) |
reach#(x,y,edge(u,v,i),h) | → | eq#(x,u) | (25) |
if_reach_2#(false,x,y,edge(u,v,i),h) | → | union#(i,h) | (26) |
if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (27) |
if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (28) |
if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (29) |
reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (30) |
eq#(s(x),s(y)) | → | eq#(x,y) | (31) |
if_reach_2#(false,x,y,edge(u,v,i),h) | → | or#(reach(x,y,i,h),reach(v,y,union(i,h),empty)) | (32) |
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) | (30) |
if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (29) |
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) | → | reach#(v,y,union(i,h),empty) | (23) |
if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (27) |
[s(x1)] | = | 20818 |
[if_reach_1#(x1,...,x5)] | = | x2 + x3 + x4 + x5 + 1 |
[edge(x1, x2, x3)] | = | x1 + x2 + x3 + 17067 |
[if_reach_2#(x1,...,x5)] | = | x2 + x3 + x4 + x5 + 0 |
[eq(x1, x2)] | = | x1 + x2 + 1 |
[false] | = | 20821 |
[reach(x1,...,x4)] | = | 0 |
[if_reach_2(x1,...,x5)] | = | 0 |
[true] | = | 4 |
[reach#(x1,...,x4)] | = | x1 + x2 + x3 + x4 + 1 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[union(x1, x2)] | = | x1 + x2 + 1 |
[or(x1, x2)] | = | 0 |
[empty] | = | 17064 |
[if_reach_1(x1,...,x5)] | = | 0 |
[or#(x1, x2)] | = | 0 |
[union#(x1, x2)] | = | 0 |
union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
union(empty,h) | → | h | (7) |
if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,h) | (27) |
if_reach_2#(false,x,y,edge(u,v,i),h) | → | reach#(v,y,union(i,h),empty) | (23) |
if_reach_1#(true,x,y,edge(u,v,i),h) | → | if_reach_2#(eq(y,v),x,y,edge(u,v,i),h) | (29) |
The dependency pairs are split into 1 component.
reach#(x,y,edge(u,v,i),h) | → | if_reach_1#(eq(x,u),x,y,edge(u,v,i),h) | (30) |
if_reach_1#(false,x,y,edge(u,v,i),h) | → | reach#(x,y,i,edge(u,v,h)) | (28) |
[s(x1)] | = | 20818 |
[if_reach_1#(x1,...,x5)] | = | x2 + x4 + 1 |
[edge(x1, x2, x3)] | = | x1 + x2 + x3 + 2 |
[if_reach_2#(x1,...,x5)] | = | 0 |
[eq(x1, x2)] | = | x1 + x2 + 1 |
[false] | = | 20821 |
[reach(x1,...,x4)] | = | 0 |
[if_reach_2(x1,...,x5)] | = | 0 |
[true] | = | 4 |
[reach#(x1,...,x4)] | = | x1 + x3 + 2 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[union(x1, x2)] | = | x1 + x2 + 1 |
[or(x1, x2)] | = | 0 |
[empty] | = | 17064 |
[if_reach_1(x1,...,x5)] | = | 0 |
[or#(x1, x2)] | = | 0 |
[union#(x1, x2)] | = | 0 |
union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
union(empty,h) | → | h | (7) |
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) | (30) |
The dependency pairs are split into 0 components.
or#(x,or(y,z)) | → | or#(x,y) | (19) |
or#(x,or(y,z)) | → | or#(or(x,y),z) | (18) |
or#(x,y) | → | or#(y,x) | (21) |
union#(edge(x,y,i),h) | → | union#(i,h) | (24) |
[s(x1)] | = | 20818 |
[if_reach_1#(x1,...,x5)] | = | 1 |
[edge(x1, x2, x3)] | = | x1 + x2 + x3 + 2 |
[if_reach_2#(x1,...,x5)] | = | 0 |
[eq(x1, x2)] | = | x1 + x2 + 1 |
[false] | = | 20821 |
[reach(x1,...,x4)] | = | 0 |
[if_reach_2(x1,...,x5)] | = | 0 |
[true] | = | 4 |
[reach#(x1,...,x4)] | = | x3 + 2 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 1 |
[union(x1, x2)] | = | x1 + x2 + 1 |
[or(x1, x2)] | = | 0 |
[empty] | = | 17678 |
[if_reach_1(x1,...,x5)] | = | 0 |
[or#(x1, x2)] | = | 0 |
[union#(x1, x2)] | = | x1 + 0 |
union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
union(empty,h) | → | h | (7) |
union#(edge(x,y,i),h) | → | union#(i,h) | (24) |
The dependency pairs are split into 0 components.
eq#(x,y) | → | eq#(y,x) | (20) |
eq#(s(x),s(y)) | → | eq#(x,y) | (31) |
[s(x1)] | = | x1 + 20818 |
[if_reach_1#(x1,...,x5)] | = | 1 |
[edge(x1, x2, x3)] | = | x1 + x2 + x3 + 2 |
[if_reach_2#(x1,...,x5)] | = | 0 |
[eq(x1, x2)] | = | x1 + x2 + 1 |
[false] | = | 20821 |
[reach(x1,...,x4)] | = | 0 |
[if_reach_2(x1,...,x5)] | = | 0 |
[true] | = | 4 |
[reach#(x1,...,x4)] | = | x3 + 2 |
[eq#(x1, x2)] | = | x1 + x2 + 0 |
[0] | = | 1 |
[union(x1, x2)] | = | x1 + x2 + 1 |
[or(x1, x2)] | = | 0 |
[empty] | = | 52868 |
[if_reach_1(x1,...,x5)] | = | 0 |
[or#(x1, x2)] | = | 0 |
[union#(x1, x2)] | = | 0 |
union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
union(empty,h) | → | h | (7) |
eq#(s(x),s(y)) | → | eq#(x,y) | (31) |
The dependency pairs are split into 1 component.
eq#(x,y) | → | eq#(y,x) | (20) |
The extended rules of the TRS
or(or(false,y),_1) | → | or(y,_1) | (33) |
or(or(true,y),_1) | → | or(true,_1) | (34) |
The dependency pairs are split into 2 components.
eq#(x,y) | → | eq#(y,x) | (20) |
or#(x,y) | → | or#(y,x) | (21) |
or#(or(false,y),_1) | → | or#(y,_1) | (35) |
or#(x,or(y,z)) | → | or#(or(x,y),z) | (18) |
or#(or(true,y),_1) | → | or#(true,_1) | (36) |
or#(x,or(y,z)) | → | or#(x,y) | (19) |
[s(x1)] | = | x1 + 18578 |
[if_reach_1#(x1,...,x5)] | = | 1 |
[edge(x1, x2, x3)] | = | x1 + x2 + x3 + 2 |
[if_reach_2#(x1,...,x5)] | = | 0 |
[eq(x1, x2)] | = | x1 + x2 + 1 |
[false] | = | 20821 |
[reach(x1,...,x4)] | = | 0 |
[if_reach_2(x1,...,x5)] | = | 0 |
[true] | = | 4484 |
[reach#(x1,...,x4)] | = | x3 + 2 |
[eq#(x1, x2)] | = | 0 |
[0] | = | 2241 |
[union(x1, x2)] | = | x1 + x2 + 1 |
[or(x1, x2)] | = | x1 + x2 + 1 |
[empty] | = | 52868 |
[if_reach_1(x1,...,x5)] | = | 0 |
[or#(x1, x2)] | = | x1 + x2 + 0 |
[union#(x1, x2)] | = | 0 |
union(edge(x,y,i),h) | → | edge(x,y,union(i,h)) | (8) |
or(x,or(y,z)) | → | or(or(x,y),z) | (16) |
or(x,y) | → | or(y,x) | (15) |
or(true,y) | → | true | (5) |
union(empty,h) | → | h | (7) |
or(false,y) | → | y | (6) |
or#(x,or(y,z)) | → | or#(x,y) | (19) |
or#(or(true,y),_1) | → | or#(true,_1) | (36) |
or#(or(false,y),_1) | → | or#(y,_1) | (35) |
The dependency pairs are split into 1 component.
or#(x,or(y,z)) | → | or#(or(x,y),z) | (18) |
or#(x,y) | → | or#(y,x) | (21) |