The rewrite relation of the following TRS is considered.
The dependency pairs are split into 5
components.
-
The
1st
component contains the
pair
mark#(2nd(X)) |
→ |
active#(2nd(mark(X))) |
(22) |
active#(2nd(cons(X,cons(Y,Z)))) |
→ |
mark#(Y) |
(17) |
mark#(2nd(X)) |
→ |
mark#(X) |
(24) |
mark#(cons(X1,X2)) |
→ |
active#(cons(mark(X1),X2)) |
(25) |
active#(from(X)) |
→ |
mark#(cons(X,from(s(X)))) |
(18) |
mark#(cons(X1,X2)) |
→ |
mark#(X1) |
(27) |
mark#(from(X)) |
→ |
active#(from(mark(X))) |
(28) |
mark#(from(X)) |
→ |
mark#(X) |
(30) |
mark#(s(X)) |
→ |
active#(s(mark(X))) |
(31) |
mark#(s(X)) |
→ |
mark#(X) |
(33) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the
prec(mark#) |
= |
3 |
|
stat(mark#) |
= |
lex
|
prec(2nd) |
= |
3 |
|
stat(2nd) |
= |
lex
|
prec(mark) |
= |
1 |
|
stat(mark) |
= |
lex
|
prec(cons) |
= |
3 |
|
stat(cons) |
= |
lex
|
prec(from) |
= |
3 |
|
stat(from) |
= |
lex
|
prec(s) |
= |
2 |
|
stat(s) |
= |
lex
|
prec(active) |
= |
0 |
|
stat(active) |
= |
lex
|
π(mark#) |
= |
[] |
π(2nd) |
= |
[] |
π(active#) |
= |
1 |
π(mark) |
= |
[] |
π(cons) |
= |
[] |
π(from) |
= |
[] |
π(s) |
= |
[] |
π(active) |
= |
[1] |
together with the usable
rules
2nd(active(X)) |
→ |
2nd(X) |
(8) |
2nd(mark(X)) |
→ |
2nd(X) |
(7) |
cons(X1,mark(X2)) |
→ |
cons(X1,X2) |
(10) |
cons(mark(X1),X2) |
→ |
cons(X1,X2) |
(9) |
cons(active(X1),X2) |
→ |
cons(X1,X2) |
(11) |
cons(X1,active(X2)) |
→ |
cons(X1,X2) |
(12) |
from(active(X)) |
→ |
from(X) |
(14) |
from(mark(X)) |
→ |
from(X) |
(13) |
s(active(X)) |
→ |
s(X) |
(16) |
s(mark(X)) |
→ |
s(X) |
(15) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
mark#(s(X)) |
→ |
active#(s(mark(X))) |
(31) |
could be deleted.
1.1.1.1 Reduction Pair Processor with Usable Rules
Using the
prec(mark#) |
= |
1 |
|
stat(mark#) |
= |
lex
|
prec(2nd) |
= |
1 |
|
stat(2nd) |
= |
lex
|
prec(mark) |
= |
2 |
|
stat(mark) |
= |
lex
|
prec(cons) |
= |
0 |
|
stat(cons) |
= |
lex
|
prec(from) |
= |
1 |
|
stat(from) |
= |
lex
|
prec(s) |
= |
1 |
|
stat(s) |
= |
lex
|
π(mark#) |
= |
[] |
π(2nd) |
= |
[] |
π(active#) |
= |
1 |
π(mark) |
= |
[] |
π(cons) |
= |
[] |
π(from) |
= |
[] |
π(s) |
= |
[1] |
π(active) |
= |
1 |
together with the usable
rules
2nd(active(X)) |
→ |
2nd(X) |
(8) |
2nd(mark(X)) |
→ |
2nd(X) |
(7) |
cons(X1,mark(X2)) |
→ |
cons(X1,X2) |
(10) |
cons(mark(X1),X2) |
→ |
cons(X1,X2) |
(9) |
cons(active(X1),X2) |
→ |
cons(X1,X2) |
(11) |
cons(X1,active(X2)) |
→ |
cons(X1,X2) |
(12) |
from(active(X)) |
→ |
from(X) |
(14) |
from(mark(X)) |
→ |
from(X) |
(13) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
mark#(cons(X1,X2)) |
→ |
active#(cons(mark(X1),X2)) |
(25) |
could be deleted.
1.1.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the rationals with delta = 4
[mark#(x1)] |
= |
0 + 4 · x1
|
[2nd(x1)] |
= |
0 + 4 · x1
|
[active#(x1)] |
= |
0 + 4 · x1
|
[mark(x1)] |
= |
0 + 1 · x1
|
[cons(x1, x2)] |
= |
0 + 2 · x1 + 1/2 · x2
|
[from(x1)] |
= |
4 + 4 · x1
|
[s(x1)] |
= |
1 + 1 · x1
|
[active(x1)] |
= |
0 + 1 · x1
|
the
pairs
mark#(from(X)) |
→ |
mark#(X) |
(30) |
mark#(s(X)) |
→ |
mark#(X) |
(33) |
could be deleted.
1.1.1.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[2nd(x1)] |
= |
1 + 2 · x1
|
[active#(x1)] |
= |
x1 |
[from(x1)] |
= |
2 · x1
|
[mark(x1)] |
= |
2 · x1
|
[active(x1)] |
= |
x1 |
[cons(x1, x2)] |
= |
x1 + 2 · x2
|
[s(x1)] |
= |
-2 |
[mark#(x1)] |
= |
2 · x1
|
the
pairs
mark#(2nd(X)) |
→ |
active#(2nd(mark(X))) |
(22) |
active#(2nd(cons(X,cons(Y,Z)))) |
→ |
mark#(Y) |
(17) |
mark#(2nd(X)) |
→ |
mark#(X) |
(24) |
could be deleted.
1.1.1.1.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the rationals with delta = 3/64
[active#(x1)] |
= |
0 + 1/4 · x1
|
[from(x1)] |
= |
1/4 + 4 · x1
|
[mark#(x1)] |
= |
0 + 1/4 · x1
|
[cons(x1, x2)] |
= |
0 + 1 · x1 + 1/4 · x2
|
[s(x1)] |
= |
0 + 1/4 · x1
|
[mark(x1)] |
= |
0 + 1 · x1
|
[2nd(x1)] |
= |
0 + 4 · x1
|
[active(x1)] |
= |
0 + 1 · x1
|
the
pair
active#(from(X)) |
→ |
mark#(cons(X,from(s(X)))) |
(18) |
could be deleted.
1.1.1.1.1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 1
component.
-
The
1st
component contains the
pair
mark#(cons(X1,X2)) |
→ |
mark#(X1) |
(27) |
1.1.1.1.1.1.1.1.1 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.1.1.1.1.1.1.1.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
cons(mark(x0),x1) |
cons(x0,mark(x1)) |
cons(active(x0),x1) |
cons(x0,active(x1)) |
1.1.1.1.1.1.1.1.1.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
mark#(cons(X1,X2)) |
→ |
mark#(X1) |
(27) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
2nd
component contains the
pair
2nd#(active(X)) |
→ |
2nd#(X) |
(35) |
2nd#(mark(X)) |
→ |
2nd#(X) |
(34) |
1.1.2 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.2.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
active(2nd(cons(x0,cons(x1,x2)))) |
active(from(x0)) |
mark(2nd(x0)) |
mark(cons(x0,x1)) |
mark(from(x0)) |
mark(s(x0)) |
1.1.2.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
2nd#(active(X)) |
→ |
2nd#(X) |
(35) |
|
1 |
> |
1 |
2nd#(mark(X)) |
→ |
2nd#(X) |
(34) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
cons#(X1,mark(X2)) |
→ |
cons#(X1,X2) |
(37) |
cons#(mark(X1),X2) |
→ |
cons#(X1,X2) |
(36) |
cons#(active(X1),X2) |
→ |
cons#(X1,X2) |
(38) |
cons#(X1,active(X2)) |
→ |
cons#(X1,X2) |
(39) |
1.1.3 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.3.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
active(2nd(cons(x0,cons(x1,x2)))) |
active(from(x0)) |
mark(2nd(x0)) |
mark(cons(x0,x1)) |
mark(from(x0)) |
mark(s(x0)) |
1.1.3.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
cons#(X1,mark(X2)) |
→ |
cons#(X1,X2) |
(37) |
|
1 |
≥ |
1 |
2 |
> |
2 |
cons#(mark(X1),X2) |
→ |
cons#(X1,X2) |
(36) |
|
1 |
> |
1 |
2 |
≥ |
2 |
cons#(active(X1),X2) |
→ |
cons#(X1,X2) |
(38) |
|
1 |
> |
1 |
2 |
≥ |
2 |
cons#(X1,active(X2)) |
→ |
cons#(X1,X2) |
(39) |
|
1 |
≥ |
1 |
2 |
> |
2 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
4th
component contains the
pair
from#(active(X)) |
→ |
from#(X) |
(41) |
from#(mark(X)) |
→ |
from#(X) |
(40) |
1.1.4 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.4.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
active(2nd(cons(x0,cons(x1,x2)))) |
active(from(x0)) |
mark(2nd(x0)) |
mark(cons(x0,x1)) |
mark(from(x0)) |
mark(s(x0)) |
1.1.4.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
from#(active(X)) |
→ |
from#(X) |
(41) |
|
1 |
> |
1 |
from#(mark(X)) |
→ |
from#(X) |
(40) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
5th
component contains the
pair
s#(active(X)) |
→ |
s#(X) |
(43) |
s#(mark(X)) |
→ |
s#(X) |
(42) |
1.1.5 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.5.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
active(2nd(cons(x0,cons(x1,x2)))) |
active(from(x0)) |
mark(2nd(x0)) |
mark(cons(x0,x1)) |
mark(from(x0)) |
mark(s(x0)) |
1.1.5.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
s#(active(X)) |
→ |
s#(X) |
(43) |
|
1 |
> |
1 |
s#(mark(X)) |
→ |
s#(X) |
(42) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.