The rewrite relation of the following TRS is considered.
The dependency pairs are split into 9
components.
-
The
1st
component contains the
pair
top#(ok(X)) |
→ |
top#(active(X)) |
(72) |
top#(mark(X)) |
→ |
top#(proper(X)) |
(70) |
1.1.1.1.1.1 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[proper(x1)] |
= |
1 · x1
|
[nats] |
= |
0 |
[ok(x1)] |
= |
1 · x1
|
[adx(x1)] |
= |
1 · x1
|
[zeros] |
= |
0 |
[cons(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[0] |
= |
0 |
[incr(x1)] |
= |
1 · x1
|
[s(x1)] |
= |
1 · x1
|
[hd(x1)] |
= |
1 · x1
|
[tl(x1)] |
= |
1 · x1
|
[mark(x1)] |
= |
1 · x1
|
[active(x1)] |
= |
1 · x1
|
[top#(x1)] |
= |
1 · x1
|
together with the usable
rules
proper(nats) |
→ |
ok(nats) |
(15) |
proper(adx(X)) |
→ |
adx(proper(X)) |
(16) |
proper(zeros) |
→ |
ok(zeros) |
(17) |
proper(cons(X1,X2)) |
→ |
cons(proper(X1),proper(X2)) |
(18) |
proper(0) |
→ |
ok(0) |
(19) |
proper(incr(X)) |
→ |
incr(proper(X)) |
(20) |
proper(s(X)) |
→ |
s(proper(X)) |
(21) |
proper(hd(X)) |
→ |
hd(proper(X)) |
(22) |
proper(tl(X)) |
→ |
tl(proper(X)) |
(23) |
tl(mark(X)) |
→ |
mark(tl(X)) |
(14) |
tl(ok(X)) |
→ |
ok(tl(X)) |
(29) |
hd(mark(X)) |
→ |
mark(hd(X)) |
(13) |
hd(ok(X)) |
→ |
ok(hd(X)) |
(28) |
s(ok(X)) |
→ |
ok(s(X)) |
(27) |
incr(mark(X)) |
→ |
mark(incr(X)) |
(12) |
incr(ok(X)) |
→ |
ok(incr(X)) |
(26) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(25) |
adx(mark(X)) |
→ |
mark(adx(X)) |
(11) |
adx(ok(X)) |
→ |
ok(adx(X)) |
(24) |
active(zeros) |
→ |
mark(cons(0,zeros)) |
(2) |
active(incr(cons(X,Y))) |
→ |
mark(cons(s(X),incr(Y))) |
(3) |
active(adx(cons(X,Y))) |
→ |
mark(incr(cons(X,adx(Y)))) |
(4) |
active(adx(X)) |
→ |
adx(active(X)) |
(7) |
active(incr(X)) |
→ |
incr(active(X)) |
(8) |
active(hd(X)) |
→ |
hd(active(X)) |
(9) |
active(tl(X)) |
→ |
tl(active(X)) |
(10) |
(w.r.t. the implicit argument filter of the reduction pair),
the
rule
could be deleted.
1.1.1.1.1.1.1 Reduction Pair Processor
Using the
prec(top#) |
= |
0 |
|
stat(top#) |
= |
lex
|
prec(mark) |
= |
1 |
|
stat(mark) |
= |
lex
|
prec(zeros) |
= |
6 |
|
stat(zeros) |
= |
lex
|
prec(cons) |
= |
4 |
|
stat(cons) |
= |
lex
|
prec(0) |
= |
5 |
|
stat(0) |
= |
lex
|
prec(incr) |
= |
2 |
|
stat(incr) |
= |
lex
|
prec(s) |
= |
7 |
|
stat(s) |
= |
lex
|
prec(adx) |
= |
3 |
|
stat(adx) |
= |
lex
|
prec(hd) |
= |
8 |
|
stat(hd) |
= |
lex
|
prec(nats) |
= |
9 |
|
stat(nats) |
= |
lex
|
π(top#) |
= |
[1] |
π(ok) |
= |
1 |
π(active) |
= |
1 |
π(mark) |
= |
[1] |
π(proper) |
= |
1 |
π(zeros) |
= |
[] |
π(cons) |
= |
[] |
π(0) |
= |
[] |
π(incr) |
= |
[1] |
π(s) |
= |
[] |
π(adx) |
= |
[1] |
π(hd) |
= |
[1] |
π(tl) |
= |
1 |
π(nats) |
= |
[] |
the
pair
top#(mark(X)) |
→ |
top#(proper(X)) |
(70) |
could be deleted.
1.1.1.1.1.1.1.1 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[active(x1)] |
= |
1 · x1
|
[zeros] |
= |
0 |
[mark(x1)] |
= |
1 · x1
|
[cons(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[0] |
= |
0 |
[incr(x1)] |
= |
1 · x1
|
[s(x1)] |
= |
1 · x1
|
[adx(x1)] |
= |
1 · x1
|
[hd(x1)] |
= |
1 · x1
|
[tl(x1)] |
= |
1 · x1
|
[ok(x1)] |
= |
1 · x1
|
[top#(x1)] |
= |
1 · x1
|
together with the usable
rules
active(zeros) |
→ |
mark(cons(0,zeros)) |
(2) |
active(incr(cons(X,Y))) |
→ |
mark(cons(s(X),incr(Y))) |
(3) |
active(adx(cons(X,Y))) |
→ |
mark(incr(cons(X,adx(Y)))) |
(4) |
active(adx(X)) |
→ |
adx(active(X)) |
(7) |
active(incr(X)) |
→ |
incr(active(X)) |
(8) |
active(hd(X)) |
→ |
hd(active(X)) |
(9) |
active(tl(X)) |
→ |
tl(active(X)) |
(10) |
tl(mark(X)) |
→ |
mark(tl(X)) |
(14) |
tl(ok(X)) |
→ |
ok(tl(X)) |
(29) |
hd(mark(X)) |
→ |
mark(hd(X)) |
(13) |
hd(ok(X)) |
→ |
ok(hd(X)) |
(28) |
incr(mark(X)) |
→ |
mark(incr(X)) |
(12) |
incr(ok(X)) |
→ |
ok(incr(X)) |
(26) |
adx(mark(X)) |
→ |
mark(adx(X)) |
(11) |
adx(ok(X)) |
→ |
ok(adx(X)) |
(24) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(25) |
s(ok(X)) |
→ |
ok(s(X)) |
(27) |
(w.r.t. the implicit argument filter of the reduction pair),
the
rule
could be deleted.
1.1.1.1.1.1.1.1.1 Monotonic Reduction Pair Processor
Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(zeros) |
= |
8 |
|
weight(zeros) |
= |
1 |
|
|
|
prec(0) |
= |
4 |
|
weight(0) |
= |
3 |
|
|
|
prec(active) |
= |
11 |
|
weight(active) |
= |
6 |
|
|
|
prec(mark) |
= |
1 |
|
weight(mark) |
= |
2 |
|
|
|
prec(incr) |
= |
10 |
|
weight(incr) |
= |
3 |
|
|
|
prec(s) |
= |
3 |
|
weight(s) |
= |
3 |
|
|
|
prec(adx) |
= |
9 |
|
weight(adx) |
= |
8 |
|
|
|
prec(hd) |
= |
7 |
|
weight(hd) |
= |
1 |
|
|
|
prec(tl) |
= |
2 |
|
weight(tl) |
= |
1 |
|
|
|
prec(ok) |
= |
0 |
|
weight(ok) |
= |
7 |
|
|
|
prec(top#) |
= |
5 |
|
weight(top#) |
= |
1 |
|
|
|
prec(cons) |
= |
6 |
|
weight(cons) |
= |
0 |
|
|
|
the
pair
top#(ok(X)) |
→ |
top#(active(X)) |
(72) |
and
the
rules
active(zeros) |
→ |
mark(cons(0,zeros)) |
(2) |
active(incr(cons(X,Y))) |
→ |
mark(cons(s(X),incr(Y))) |
(3) |
active(adx(cons(X,Y))) |
→ |
mark(incr(cons(X,adx(Y)))) |
(4) |
active(adx(X)) |
→ |
adx(active(X)) |
(7) |
active(incr(X)) |
→ |
incr(active(X)) |
(8) |
active(hd(X)) |
→ |
hd(active(X)) |
(9) |
active(tl(X)) |
→ |
tl(active(X)) |
(10) |
tl(mark(X)) |
→ |
mark(tl(X)) |
(14) |
tl(ok(X)) |
→ |
ok(tl(X)) |
(29) |
hd(mark(X)) |
→ |
mark(hd(X)) |
(13) |
hd(ok(X)) |
→ |
ok(hd(X)) |
(28) |
incr(mark(X)) |
→ |
mark(incr(X)) |
(12) |
incr(ok(X)) |
→ |
ok(incr(X)) |
(26) |
adx(mark(X)) |
→ |
mark(adx(X)) |
(11) |
adx(ok(X)) |
→ |
ok(adx(X)) |
(24) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(25) |
s(ok(X)) |
→ |
ok(s(X)) |
(27) |
could be deleted.
1.1.1.1.1.1.1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
active#(incr(X)) |
→ |
active#(X) |
(42) |
active#(adx(X)) |
→ |
active#(X) |
(40) |
active#(hd(X)) |
→ |
active#(X) |
(44) |
active#(tl(X)) |
→ |
active#(X) |
(46) |
1.1.1.1.1.2 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[incr(x1)] |
= |
1 · x1
|
[adx(x1)] |
= |
1 · x1
|
[hd(x1)] |
= |
1 · x1
|
[tl(x1)] |
= |
1 · x1
|
[active#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.2.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
active#(incr(X)) |
→ |
active#(X) |
(42) |
|
1 |
> |
1 |
active#(adx(X)) |
→ |
active#(X) |
(40) |
|
1 |
> |
1 |
active#(hd(X)) |
→ |
active#(X) |
(44) |
|
1 |
> |
1 |
active#(tl(X)) |
→ |
active#(X) |
(46) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(54) |
proper#(adx(X)) |
→ |
proper#(X) |
(52) |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(55) |
proper#(incr(X)) |
→ |
proper#(X) |
(57) |
proper#(s(X)) |
→ |
proper#(X) |
(59) |
proper#(hd(X)) |
→ |
proper#(X) |
(61) |
proper#(tl(X)) |
→ |
proper#(X) |
(63) |
1.1.1.1.1.3 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[cons(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[adx(x1)] |
= |
1 · x1
|
[incr(x1)] |
= |
1 · x1
|
[s(x1)] |
= |
1 · x1
|
[hd(x1)] |
= |
1 · x1
|
[tl(x1)] |
= |
1 · x1
|
[proper#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.3.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(54) |
|
1 |
> |
1 |
proper#(adx(X)) |
→ |
proper#(X) |
(52) |
|
1 |
> |
1 |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(55) |
|
1 |
> |
1 |
proper#(incr(X)) |
→ |
proper#(X) |
(57) |
|
1 |
> |
1 |
proper#(s(X)) |
→ |
proper#(X) |
(59) |
|
1 |
> |
1 |
proper#(hd(X)) |
→ |
proper#(X) |
(61) |
|
1 |
> |
1 |
proper#(tl(X)) |
→ |
proper#(X) |
(63) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
4th
component contains the
pair
adx#(ok(X)) |
→ |
adx#(X) |
(64) |
adx#(mark(X)) |
→ |
adx#(X) |
(47) |
1.1.1.1.1.4 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[ok(x1)] |
= |
1 · x1
|
[mark(x1)] |
= |
1 · x1
|
[adx#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.4.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
adx#(ok(X)) |
→ |
adx#(X) |
(64) |
|
1 |
> |
1 |
adx#(mark(X)) |
→ |
adx#(X) |
(47) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
5th
component contains the
pair
incr#(ok(X)) |
→ |
incr#(X) |
(66) |
incr#(mark(X)) |
→ |
incr#(X) |
(48) |
1.1.1.1.1.5 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[ok(x1)] |
= |
1 · x1
|
[mark(x1)] |
= |
1 · x1
|
[incr#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.5.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
incr#(ok(X)) |
→ |
incr#(X) |
(66) |
|
1 |
> |
1 |
incr#(mark(X)) |
→ |
incr#(X) |
(48) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
6th
component contains the
pair
hd#(ok(X)) |
→ |
hd#(X) |
(68) |
hd#(mark(X)) |
→ |
hd#(X) |
(49) |
1.1.1.1.1.6 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[ok(x1)] |
= |
1 · x1
|
[mark(x1)] |
= |
1 · x1
|
[hd#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.6.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
hd#(ok(X)) |
→ |
hd#(X) |
(68) |
|
1 |
> |
1 |
hd#(mark(X)) |
→ |
hd#(X) |
(49) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
7th
component contains the
pair
tl#(ok(X)) |
→ |
tl#(X) |
(69) |
tl#(mark(X)) |
→ |
tl#(X) |
(50) |
1.1.1.1.1.7 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[ok(x1)] |
= |
1 · x1
|
[mark(x1)] |
= |
1 · x1
|
[tl#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.7.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
tl#(ok(X)) |
→ |
tl#(X) |
(69) |
|
1 |
> |
1 |
tl#(mark(X)) |
→ |
tl#(X) |
(50) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
8th
component contains the
pair
cons#(ok(X1),ok(X2)) |
→ |
cons#(X1,X2) |
(65) |
1.1.1.1.1.8 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[ok(x1)] |
= |
1 · x1
|
[cons#(x1, x2)] |
= |
1 · x1 + 1 · x2
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.8.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
cons#(ok(X1),ok(X2)) |
→ |
cons#(X1,X2) |
(65) |
|
1 |
> |
1 |
2 |
> |
2 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
9th
component contains the
pair
1.1.1.1.1.9 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[ok(x1)] |
= |
1 · x1
|
[s#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.1.1.9.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
s#(ok(X)) |
→ |
s#(X) |
(67) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.