The rewrite relation of the following TRS is considered.
The dependency pairs are split into 7
components.
-
The
1st
component contains the
pair
top#(mark(X)) |
→ |
top#(proper(X)) |
(58) |
top#(ok(X)) |
→ |
top#(active(X)) |
(29) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the argument filter
π(proper) |
= |
1 |
π(ok) |
= |
1 |
π(sel#) |
= |
1 |
π(active) |
= |
1 |
π(active#) |
= |
1 |
in combination with the following Weighted Path Order with the following precedence and status
prec(cons#) |
= |
0 |
|
status(cons#) |
= |
[2] |
|
list-extension(cons#) |
= |
Lex |
prec(s) |
= |
4 |
|
status(s) |
= |
[1] |
|
list-extension(s) |
= |
Lex |
prec(top) |
= |
0 |
|
status(top) |
= |
[] |
|
list-extension(top) |
= |
Lex |
prec(top#) |
= |
0 |
|
status(top#) |
= |
[1] |
|
list-extension(top#) |
= |
Lex |
prec(0) |
= |
3 |
|
status(0) |
= |
[] |
|
list-extension(0) |
= |
Lex |
prec(from) |
= |
5 |
|
status(from) |
= |
[1] |
|
list-extension(from) |
= |
Lex |
prec(sel) |
= |
3 |
|
status(sel) |
= |
[1, 2] |
|
list-extension(sel) |
= |
Lex |
prec(s#) |
= |
0 |
|
status(s#) |
= |
[] |
|
list-extension(s#) |
= |
Lex |
prec(mark) |
= |
1 |
|
status(mark) |
= |
[1] |
|
list-extension(mark) |
= |
Lex |
prec(proper#) |
= |
0 |
|
status(proper#) |
= |
[] |
|
list-extension(proper#) |
= |
Lex |
prec(from#) |
= |
0 |
|
status(from#) |
= |
[] |
|
list-extension(from#) |
= |
Lex |
prec(cons) |
= |
4 |
|
status(cons) |
= |
[1] |
|
list-extension(cons) |
= |
Lex |
and the following
Max-polynomial interpretation
[cons#(x1, x2)] |
=
|
max(x2 + 1, 0) |
[s(x1)] |
=
|
x1 + 0 |
[top(x1)] |
=
|
1 |
[top#(x1)] |
=
|
x1 + 1 |
[0] |
=
|
1 |
[from(x1)] |
=
|
x1 + 46113 |
[sel(x1, x2)] |
=
|
x1 + x2 + 46111 |
[s#(x1)] |
=
|
1 |
[mark(x1)] |
=
|
x1 + 0 |
[proper#(x1)] |
=
|
1 |
[from#(x1)] |
=
|
1 |
[cons(x1, x2)] |
=
|
max(x1 + 46112, x2 + 0, 0) |
together with the usable
rules
proper(0) |
→ |
ok(0) |
(18) |
active(from(X)) |
→ |
from(active(X)) |
(4) |
proper(cons(X1,X2)) |
→ |
cons(proper(X1),proper(X2)) |
(15) |
active(sel(X1,X2)) |
→ |
sel(X1,active(X2)) |
(8) |
active(from(X)) |
→ |
mark(cons(X,from(s(X)))) |
(1) |
active(sel(s(X),cons(Y,Z))) |
→ |
mark(sel(X,Z)) |
(3) |
proper(s(X)) |
→ |
s(proper(X)) |
(16) |
s(ok(X)) |
→ |
ok(s(X)) |
(21) |
from(ok(X)) |
→ |
ok(from(X)) |
(19) |
proper(sel(X1,X2)) |
→ |
sel(proper(X1),proper(X2)) |
(17) |
sel(ok(X1),ok(X2)) |
→ |
ok(sel(X1,X2)) |
(22) |
active(cons(X1,X2)) |
→ |
cons(active(X1),X2) |
(5) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(10) |
active(sel(X1,X2)) |
→ |
sel(active(X1),X2) |
(7) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(20) |
proper(from(X)) |
→ |
from(proper(X)) |
(14) |
sel(mark(X1),X2) |
→ |
mark(sel(X1,X2)) |
(12) |
s(mark(X)) |
→ |
mark(s(X)) |
(11) |
from(mark(X)) |
→ |
mark(from(X)) |
(9) |
sel(X1,mark(X2)) |
→ |
mark(sel(X1,X2)) |
(13) |
active(s(X)) |
→ |
s(active(X)) |
(6) |
active(sel(0,cons(X,Y))) |
→ |
mark(X) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
top#(mark(X)) |
→ |
top#(proper(X)) |
(58) |
could be deleted.
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 1
component.
-
The
2nd
component contains the
pair
proper#(from(X)) |
→ |
proper#(X) |
(35) |
proper#(sel(X1,X2)) |
→ |
proper#(X1) |
(54) |
proper#(s(X)) |
→ |
proper#(X) |
(52) |
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(47) |
proper#(sel(X1,X2)) |
→ |
proper#(X2) |
(46) |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(27) |
1.1.2 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[cons#(x1, x2)] |
=
|
0 |
[s(x1)] |
=
|
x1 + 1 |
[top(x1)] |
=
|
0 |
[top#(x1)] |
=
|
0 |
[proper(x1)] |
=
|
17069 |
[ok(x1)] |
=
|
x1 + 2 |
[0] |
=
|
1 |
[sel#(x1, x2)] |
=
|
0 |
[from(x1)] |
=
|
x1 + 1 |
[sel(x1, x2)] |
=
|
x1 + x2 + 1 |
[s#(x1)] |
=
|
0 |
[mark(x1)] |
=
|
0 |
[proper#(x1)] |
=
|
x1 + 0 |
[from#(x1)] |
=
|
0 |
[active(x1)] |
=
|
x1 + 1 |
[cons(x1, x2)] |
=
|
x1 + x2 + 1 |
[active#(x1)] |
=
|
0 |
together with the usable
rules
proper(0) |
→ |
ok(0) |
(18) |
active(from(X)) |
→ |
from(active(X)) |
(4) |
active(sel(X1,X2)) |
→ |
sel(X1,active(X2)) |
(8) |
active(from(X)) |
→ |
mark(cons(X,from(s(X)))) |
(1) |
active(sel(s(X),cons(Y,Z))) |
→ |
mark(sel(X,Z)) |
(3) |
s(ok(X)) |
→ |
ok(s(X)) |
(21) |
from(ok(X)) |
→ |
ok(from(X)) |
(19) |
sel(ok(X1),ok(X2)) |
→ |
ok(sel(X1,X2)) |
(22) |
active(cons(X1,X2)) |
→ |
cons(active(X1),X2) |
(5) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(10) |
active(sel(X1,X2)) |
→ |
sel(active(X1),X2) |
(7) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(20) |
sel(mark(X1),X2) |
→ |
mark(sel(X1,X2)) |
(12) |
s(mark(X)) |
→ |
mark(s(X)) |
(11) |
from(mark(X)) |
→ |
mark(from(X)) |
(9) |
sel(X1,mark(X2)) |
→ |
mark(sel(X1,X2)) |
(13) |
active(s(X)) |
→ |
s(active(X)) |
(6) |
active(sel(0,cons(X,Y))) |
→ |
mark(X) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
proper#(from(X)) |
→ |
proper#(X) |
(35) |
proper#(sel(X1,X2)) |
→ |
proper#(X1) |
(54) |
proper#(s(X)) |
→ |
proper#(X) |
(52) |
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(47) |
proper#(sel(X1,X2)) |
→ |
proper#(X2) |
(46) |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(27) |
could be deleted.
1.1.2.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
3rd
component contains the
pair
active#(cons(X1,X2)) |
→ |
active#(X1) |
(61) |
active#(sel(X1,X2)) |
→ |
active#(X1) |
(59) |
active#(sel(X1,X2)) |
→ |
active#(X2) |
(50) |
active#(from(X)) |
→ |
active#(X) |
(28) |
active#(s(X)) |
→ |
active#(X) |
(25) |
1.1.3 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[cons#(x1, x2)] |
=
|
0 |
[s(x1)] |
=
|
x1 + 1 |
[top(x1)] |
=
|
0 |
[top#(x1)] |
=
|
0 |
[proper(x1)] |
=
|
2 |
[ok(x1)] |
=
|
x1 + 1 |
[0] |
=
|
1 |
[sel#(x1, x2)] |
=
|
0 |
[from(x1)] |
=
|
x1 + 1 |
[sel(x1, x2)] |
=
|
x1 + x2 + 1 |
[s#(x1)] |
=
|
0 |
[mark(x1)] |
=
|
0 |
[proper#(x1)] |
=
|
0 |
[from#(x1)] |
=
|
0 |
[active(x1)] |
=
|
x1 + 1 |
[cons(x1, x2)] |
=
|
x1 + x2 + 1 |
[active#(x1)] |
=
|
x1 + 0 |
together with the usable
rules
proper(0) |
→ |
ok(0) |
(18) |
active(from(X)) |
→ |
from(active(X)) |
(4) |
active(sel(X1,X2)) |
→ |
sel(X1,active(X2)) |
(8) |
active(from(X)) |
→ |
mark(cons(X,from(s(X)))) |
(1) |
active(sel(s(X),cons(Y,Z))) |
→ |
mark(sel(X,Z)) |
(3) |
s(ok(X)) |
→ |
ok(s(X)) |
(21) |
from(ok(X)) |
→ |
ok(from(X)) |
(19) |
sel(ok(X1),ok(X2)) |
→ |
ok(sel(X1,X2)) |
(22) |
active(cons(X1,X2)) |
→ |
cons(active(X1),X2) |
(5) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(10) |
active(sel(X1,X2)) |
→ |
sel(active(X1),X2) |
(7) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(20) |
sel(mark(X1),X2) |
→ |
mark(sel(X1,X2)) |
(12) |
s(mark(X)) |
→ |
mark(s(X)) |
(11) |
from(mark(X)) |
→ |
mark(from(X)) |
(9) |
sel(X1,mark(X2)) |
→ |
mark(sel(X1,X2)) |
(13) |
active(s(X)) |
→ |
s(active(X)) |
(6) |
active(sel(0,cons(X,Y))) |
→ |
mark(X) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
active#(cons(X1,X2)) |
→ |
active#(X1) |
(61) |
active#(sel(X1,X2)) |
→ |
active#(X1) |
(59) |
active#(sel(X1,X2)) |
→ |
active#(X2) |
(50) |
active#(from(X)) |
→ |
active#(X) |
(28) |
active#(s(X)) |
→ |
active#(X) |
(25) |
could be deleted.
1.1.3.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
4th
component contains the
pair
cons#(mark(X1),X2) |
→ |
cons#(X1,X2) |
(55) |
cons#(ok(X1),ok(X2)) |
→ |
cons#(X1,X2) |
(30) |
1.1.4 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[cons#(x1, x2)] |
=
|
x2 + 0 |
[s(x1)] |
=
|
x1 + 1 |
[top(x1)] |
=
|
0 |
[top#(x1)] |
=
|
0 |
[proper(x1)] |
=
|
29261 |
[ok(x1)] |
=
|
x1 + 1 |
[0] |
=
|
29260 |
[sel#(x1, x2)] |
=
|
0 |
[from(x1)] |
=
|
x1 + 19265 |
[sel(x1, x2)] |
=
|
x1 + x2 + 22115 |
[s#(x1)] |
=
|
0 |
[mark(x1)] |
=
|
0 |
[proper#(x1)] |
=
|
0 |
[from#(x1)] |
=
|
0 |
[active(x1)] |
=
|
x1 + 1 |
[cons(x1, x2)] |
=
|
x1 + x2 + 14137 |
[active#(x1)] |
=
|
0 |
together with the usable
rules
proper(0) |
→ |
ok(0) |
(18) |
active(from(X)) |
→ |
from(active(X)) |
(4) |
active(sel(X1,X2)) |
→ |
sel(X1,active(X2)) |
(8) |
active(from(X)) |
→ |
mark(cons(X,from(s(X)))) |
(1) |
active(sel(s(X),cons(Y,Z))) |
→ |
mark(sel(X,Z)) |
(3) |
s(ok(X)) |
→ |
ok(s(X)) |
(21) |
from(ok(X)) |
→ |
ok(from(X)) |
(19) |
sel(ok(X1),ok(X2)) |
→ |
ok(sel(X1,X2)) |
(22) |
active(cons(X1,X2)) |
→ |
cons(active(X1),X2) |
(5) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(10) |
active(sel(X1,X2)) |
→ |
sel(active(X1),X2) |
(7) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(20) |
sel(mark(X1),X2) |
→ |
mark(sel(X1,X2)) |
(12) |
s(mark(X)) |
→ |
mark(s(X)) |
(11) |
from(mark(X)) |
→ |
mark(from(X)) |
(9) |
sel(X1,mark(X2)) |
→ |
mark(sel(X1,X2)) |
(13) |
active(s(X)) |
→ |
s(active(X)) |
(6) |
active(sel(0,cons(X,Y))) |
→ |
mark(X) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
cons#(ok(X1),ok(X2)) |
→ |
cons#(X1,X2) |
(30) |
could be deleted.
1.1.4.1 Dependency Graph Processor
The dependency pairs are split into 1
component.
-
The
5th
component contains the
pair
s#(ok(X)) |
→ |
s#(X) |
(33) |
s#(mark(X)) |
→ |
s#(X) |
(44) |
1.1.5 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[cons#(x1, x2)] |
=
|
0 |
[s(x1)] |
=
|
x1 + 1 |
[top(x1)] |
=
|
0 |
[top#(x1)] |
=
|
0 |
[proper(x1)] |
=
|
2 |
[ok(x1)] |
=
|
x1 + 1 |
[0] |
=
|
1 |
[sel#(x1, x2)] |
=
|
0 |
[from(x1)] |
=
|
x1 + 0 |
[sel(x1, x2)] |
=
|
x1 + x2 + 28493 |
[s#(x1)] |
=
|
x1 + 0 |
[mark(x1)] |
=
|
x1 + 1 |
[proper#(x1)] |
=
|
0 |
[from#(x1)] |
=
|
0 |
[active(x1)] |
=
|
x1 + 3154 |
[cons(x1, x2)] |
=
|
x1 + x2 + 0 |
[active#(x1)] |
=
|
0 |
together with the usable
rules
proper(0) |
→ |
ok(0) |
(18) |
active(sel(s(X),cons(Y,Z))) |
→ |
mark(sel(X,Z)) |
(3) |
s(ok(X)) |
→ |
ok(s(X)) |
(21) |
from(ok(X)) |
→ |
ok(from(X)) |
(19) |
sel(ok(X1),ok(X2)) |
→ |
ok(sel(X1,X2)) |
(22) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(10) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(20) |
sel(mark(X1),X2) |
→ |
mark(sel(X1,X2)) |
(12) |
s(mark(X)) |
→ |
mark(s(X)) |
(11) |
from(mark(X)) |
→ |
mark(from(X)) |
(9) |
sel(X1,mark(X2)) |
→ |
mark(sel(X1,X2)) |
(13) |
active(sel(0,cons(X,Y))) |
→ |
mark(X) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
s#(ok(X)) |
→ |
s#(X) |
(33) |
s#(mark(X)) |
→ |
s#(X) |
(44) |
could be deleted.
1.1.5.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
6th
component contains the
pair
from#(mark(X)) |
→ |
from#(X) |
(60) |
from#(ok(X)) |
→ |
from#(X) |
(34) |
1.1.6 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[cons#(x1, x2)] |
=
|
0 |
[s(x1)] |
=
|
x1 + 2805 |
[top(x1)] |
=
|
0 |
[top#(x1)] |
=
|
0 |
[proper(x1)] |
=
|
2 |
[ok(x1)] |
=
|
x1 + 1 |
[0] |
=
|
1 |
[sel#(x1, x2)] |
=
|
0 |
[from(x1)] |
=
|
x1 + 0 |
[sel(x1, x2)] |
=
|
x1 + x2 + 1 |
[s#(x1)] |
=
|
0 |
[mark(x1)] |
=
|
x1 + 1 |
[proper#(x1)] |
=
|
0 |
[from#(x1)] |
=
|
x1 + 0 |
[active(x1)] |
=
|
x1 + 6992 |
[cons(x1, x2)] |
=
|
x1 + x2 + 0 |
[active#(x1)] |
=
|
0 |
together with the usable
rules
proper(0) |
→ |
ok(0) |
(18) |
active(sel(s(X),cons(Y,Z))) |
→ |
mark(sel(X,Z)) |
(3) |
s(ok(X)) |
→ |
ok(s(X)) |
(21) |
from(ok(X)) |
→ |
ok(from(X)) |
(19) |
sel(ok(X1),ok(X2)) |
→ |
ok(sel(X1,X2)) |
(22) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(10) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(20) |
sel(mark(X1),X2) |
→ |
mark(sel(X1,X2)) |
(12) |
s(mark(X)) |
→ |
mark(s(X)) |
(11) |
from(mark(X)) |
→ |
mark(from(X)) |
(9) |
sel(X1,mark(X2)) |
→ |
mark(sel(X1,X2)) |
(13) |
active(sel(0,cons(X,Y))) |
→ |
mark(X) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
from#(mark(X)) |
→ |
from#(X) |
(60) |
from#(ok(X)) |
→ |
from#(X) |
(34) |
could be deleted.
1.1.6.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
7th
component contains the
pair
sel#(X1,mark(X2)) |
→ |
sel#(X1,X2) |
(56) |
sel#(ok(X1),ok(X2)) |
→ |
sel#(X1,X2) |
(51) |
sel#(mark(X1),X2) |
→ |
sel#(X1,X2) |
(42) |
1.1.7 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[cons#(x1, x2)] |
=
|
0 |
[s(x1)] |
=
|
x1 + 1 |
[top(x1)] |
=
|
0 |
[top#(x1)] |
=
|
0 |
[proper(x1)] |
=
|
2 |
[ok(x1)] |
=
|
x1 + 1 |
[0] |
=
|
1 |
[sel#(x1, x2)] |
=
|
x2 + 0 |
[from(x1)] |
=
|
x1 + 0 |
[sel(x1, x2)] |
=
|
x1 + x2 + 37558 |
[s#(x1)] |
=
|
0 |
[mark(x1)] |
=
|
x1 + 1 |
[proper#(x1)] |
=
|
0 |
[from#(x1)] |
=
|
0 |
[active(x1)] |
=
|
x1 + 2 |
[cons(x1, x2)] |
=
|
x1 + x2 + 0 |
[active#(x1)] |
=
|
0 |
together with the usable
rules
proper(0) |
→ |
ok(0) |
(18) |
active(sel(s(X),cons(Y,Z))) |
→ |
mark(sel(X,Z)) |
(3) |
s(ok(X)) |
→ |
ok(s(X)) |
(21) |
from(ok(X)) |
→ |
ok(from(X)) |
(19) |
sel(ok(X1),ok(X2)) |
→ |
ok(sel(X1,X2)) |
(22) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(10) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(20) |
sel(mark(X1),X2) |
→ |
mark(sel(X1,X2)) |
(12) |
s(mark(X)) |
→ |
mark(s(X)) |
(11) |
from(mark(X)) |
→ |
mark(from(X)) |
(9) |
sel(X1,mark(X2)) |
→ |
mark(sel(X1,X2)) |
(13) |
active(sel(0,cons(X,Y))) |
→ |
mark(X) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
sel#(X1,mark(X2)) |
→ |
sel#(X1,X2) |
(56) |
sel#(ok(X1),ok(X2)) |
→ |
sel#(X1,X2) |
(51) |
could be deleted.
1.1.7.1 Dependency Graph Processor
The dependency pairs are split into 1
component.