The rewrite relation of the following TRS is considered.
[cons(x1, x2)] |
= |
· x1 + · x2 +
|
[zeros] |
= |
|
[incr(x1)] |
= |
· x1 +
|
[mark(x1)] |
= |
· x1 +
|
[s(x1)] |
= |
· x1 +
|
[head(x1)] |
= |
· x1 +
|
[nil] |
= |
|
[nats] |
= |
|
[top(x1)] |
= |
· x1 +
|
[proper(x1)] |
= |
· x1 +
|
[tail(x1)] |
= |
· x1 +
|
[0] |
= |
|
[ok(x1)] |
= |
· x1 +
|
[adx(x1)] |
= |
· x1 +
|
[active(x1)] |
= |
· x1 +
|
all of the following rules can be deleted.
[cons(x1, x2)] |
= |
· x1 + · x2 +
|
[zeros] |
= |
|
[incr(x1)] |
= |
· x1 +
|
[mark(x1)] |
= |
· x1 +
|
[s(x1)] |
= |
· x1 +
|
[head(x1)] |
= |
· x1 +
|
[nil] |
= |
|
[nats] |
= |
|
[top(x1)] |
= |
· x1 +
|
[proper(x1)] |
= |
· x1 +
|
[tail(x1)] |
= |
· x1 +
|
[0] |
= |
|
[ok(x1)] |
= |
· x1 +
|
[adx(x1)] |
= |
· x1 +
|
[active(x1)] |
= |
· x1 +
|
all of the following rules can be deleted.
The dependency pairs are split into 9
components.
-
The
1st
component contains the
pair
top#(ok(X)) |
→ |
top#(active(X)) |
(86) |
top#(mark(X)) |
→ |
top#(proper(X)) |
(84) |
1.1.1.1.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the rationals with delta = 1/64
[cons(x1, x2)] |
= |
1 · x1 + 1/2 · x2 + 0 |
[zeros] |
= |
2 |
[incr(x1)] |
= |
1 · x1 + 1 |
[mark(x1)] |
= |
1 · x1 + 1/2 |
[s(x1)] |
= |
1 · x1 + 0 |
[head(x1)] |
= |
3 · x1 + 2 |
[nil] |
= |
0 |
[nats] |
= |
0 |
[proper(x1)] |
= |
1 · x1 + 0 |
[top#(x1)] |
= |
1 · x1 + 1/2 |
[tail(x1)] |
= |
3 · x1 + 1/2 |
[0] |
= |
1/2 |
[ok(x1)] |
= |
1 · x1 + 0 |
[adx(x1)] |
= |
1 · x1 + 3 |
[active(x1)] |
= |
1 · x1 + 0 |
together with the usable
rules
active(incr(nil)) |
→ |
mark(nil) |
(1) |
active(incr(cons(X,L))) |
→ |
mark(cons(s(X),incr(L))) |
(2) |
active(adx(cons(X,L))) |
→ |
mark(incr(cons(X,adx(L)))) |
(4) |
active(zeros) |
→ |
mark(cons(0,zeros)) |
(6) |
active(head(cons(X,L))) |
→ |
mark(X) |
(7) |
active(tail(cons(X,L))) |
→ |
mark(L) |
(8) |
active(incr(X)) |
→ |
incr(active(X)) |
(9) |
active(cons(X1,X2)) |
→ |
cons(active(X1),X2) |
(10) |
active(s(X)) |
→ |
s(active(X)) |
(11) |
active(adx(X)) |
→ |
adx(active(X)) |
(12) |
active(head(X)) |
→ |
head(active(X)) |
(13) |
active(tail(X)) |
→ |
tail(active(X)) |
(14) |
incr(mark(X)) |
→ |
mark(incr(X)) |
(15) |
incr(ok(X)) |
→ |
ok(incr(X)) |
(31) |
s(mark(X)) |
→ |
mark(s(X)) |
(17) |
s(ok(X)) |
→ |
ok(s(X)) |
(33) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(16) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(32) |
adx(mark(X)) |
→ |
mark(adx(X)) |
(18) |
adx(ok(X)) |
→ |
ok(adx(X)) |
(34) |
head(mark(X)) |
→ |
mark(head(X)) |
(19) |
head(ok(X)) |
→ |
ok(head(X)) |
(35) |
tail(mark(X)) |
→ |
mark(tail(X)) |
(20) |
tail(ok(X)) |
→ |
ok(tail(X)) |
(36) |
proper(incr(X)) |
→ |
incr(proper(X)) |
(21) |
proper(nil) |
→ |
ok(nil) |
(22) |
proper(cons(X1,X2)) |
→ |
cons(proper(X1),proper(X2)) |
(23) |
proper(s(X)) |
→ |
s(proper(X)) |
(24) |
proper(adx(X)) |
→ |
adx(proper(X)) |
(25) |
proper(nats) |
→ |
ok(nats) |
(26) |
proper(zeros) |
→ |
ok(zeros) |
(27) |
proper(0) |
→ |
ok(0) |
(28) |
proper(head(X)) |
→ |
head(proper(X)) |
(29) |
proper(tail(X)) |
→ |
tail(proper(X)) |
(30) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
top#(mark(X)) |
→ |
top#(proper(X)) |
(84) |
could be deleted.
1.1.1.1.1.1 Reduction Pair Processor with Usable Rules
Using the
prec(top#) |
= |
0 |
|
stat(top#) |
= |
lex
|
prec(ok) |
= |
0 |
|
stat(ok) |
= |
lex
|
prec(tail) |
= |
0 |
|
stat(tail) |
= |
lex
|
prec(head) |
= |
0 |
|
stat(head) |
= |
lex
|
prec(0) |
= |
0 |
|
stat(0) |
= |
lex
|
prec(zeros) |
= |
2 |
|
stat(zeros) |
= |
lex
|
prec(adx) |
= |
0 |
|
stat(adx) |
= |
lex
|
prec(s) |
= |
0 |
|
stat(s) |
= |
lex
|
prec(cons) |
= |
1 |
|
stat(cons) |
= |
lex
|
prec(mark) |
= |
0 |
|
stat(mark) |
= |
lex
|
prec(active) |
= |
0 |
|
stat(active) |
= |
lex
|
prec(incr) |
= |
0 |
|
stat(incr) |
= |
lex
|
prec(nil) |
= |
1 |
|
stat(nil) |
= |
lex
|
π(top#) |
= |
1 |
π(ok) |
= |
[1] |
π(tail) |
= |
1 |
π(head) |
= |
1 |
π(0) |
= |
[] |
π(zeros) |
= |
[] |
π(adx) |
= |
1 |
π(s) |
= |
1 |
π(cons) |
= |
[2] |
π(mark) |
= |
[] |
π(active) |
= |
1 |
π(incr) |
= |
1 |
π(nil) |
= |
[] |
together with the usable
rules
active(incr(nil)) |
→ |
mark(nil) |
(1) |
active(incr(cons(X,L))) |
→ |
mark(cons(s(X),incr(L))) |
(2) |
active(adx(cons(X,L))) |
→ |
mark(incr(cons(X,adx(L)))) |
(4) |
active(zeros) |
→ |
mark(cons(0,zeros)) |
(6) |
active(head(cons(X,L))) |
→ |
mark(X) |
(7) |
active(tail(cons(X,L))) |
→ |
mark(L) |
(8) |
active(incr(X)) |
→ |
incr(active(X)) |
(9) |
active(cons(X1,X2)) |
→ |
cons(active(X1),X2) |
(10) |
active(s(X)) |
→ |
s(active(X)) |
(11) |
active(adx(X)) |
→ |
adx(active(X)) |
(12) |
active(head(X)) |
→ |
head(active(X)) |
(13) |
active(tail(X)) |
→ |
tail(active(X)) |
(14) |
incr(mark(X)) |
→ |
mark(incr(X)) |
(15) |
incr(ok(X)) |
→ |
ok(incr(X)) |
(31) |
s(mark(X)) |
→ |
mark(s(X)) |
(17) |
s(ok(X)) |
→ |
ok(s(X)) |
(33) |
cons(mark(X1),X2) |
→ |
mark(cons(X1,X2)) |
(16) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(32) |
adx(mark(X)) |
→ |
mark(adx(X)) |
(18) |
adx(ok(X)) |
→ |
ok(adx(X)) |
(34) |
head(mark(X)) |
→ |
mark(head(X)) |
(19) |
head(ok(X)) |
→ |
ok(head(X)) |
(35) |
tail(mark(X)) |
→ |
mark(tail(X)) |
(20) |
tail(ok(X)) |
→ |
ok(tail(X)) |
(36) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
top#(ok(X)) |
→ |
top#(active(X)) |
(86) |
could be deleted.
1.1.1.1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
proper#(tail(X)) |
→ |
proper#(X) |
(75) |
proper#(head(X)) |
→ |
proper#(X) |
(73) |
proper#(adx(X)) |
→ |
proper#(X) |
(71) |
proper#(s(X)) |
→ |
proper#(X) |
(69) |
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(67) |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(66) |
proper#(incr(X)) |
→ |
proper#(X) |
(64) |
1.1.1.1.2 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
proper#(tail(X)) |
→ |
proper#(X) |
(75) |
|
1 |
> |
1 |
proper#(head(X)) |
→ |
proper#(X) |
(73) |
|
1 |
> |
1 |
proper#(adx(X)) |
→ |
proper#(X) |
(71) |
|
1 |
> |
1 |
proper#(s(X)) |
→ |
proper#(X) |
(69) |
|
1 |
> |
1 |
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(67) |
|
1 |
> |
1 |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(66) |
|
1 |
> |
1 |
proper#(incr(X)) |
→ |
proper#(X) |
(64) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
active#(tail(X)) |
→ |
active#(X) |
(56) |
active#(head(X)) |
→ |
active#(X) |
(54) |
active#(adx(X)) |
→ |
active#(X) |
(52) |
active#(s(X)) |
→ |
active#(X) |
(50) |
active#(cons(X1,X2)) |
→ |
active#(X1) |
(48) |
active#(incr(X)) |
→ |
active#(X) |
(46) |
1.1.1.1.3 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
active#(tail(X)) |
→ |
active#(X) |
(56) |
|
1 |
> |
1 |
active#(head(X)) |
→ |
active#(X) |
(54) |
|
1 |
> |
1 |
active#(adx(X)) |
→ |
active#(X) |
(52) |
|
1 |
> |
1 |
active#(s(X)) |
→ |
active#(X) |
(50) |
|
1 |
> |
1 |
active#(cons(X1,X2)) |
→ |
active#(X1) |
(48) |
|
1 |
> |
1 |
active#(incr(X)) |
→ |
active#(X) |
(46) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
4th
component contains the
pair
incr#(ok(X)) |
→ |
incr#(X) |
(77) |
incr#(mark(X)) |
→ |
incr#(X) |
(58) |
1.1.1.1.4 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) |
(77) |
|
1 |
> |
1 |
incr#(mark(X)) |
→ |
incr#(X) |
(58) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
5th
component contains the
pair
cons#(ok(X1),ok(X2)) |
→ |
cons#(X1,X2) |
(78) |
cons#(mark(X1),X2) |
→ |
cons#(X1,X2) |
(59) |
1.1.1.1.5 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) |
(78) |
|
2 |
> |
2 |
1 |
> |
1 |
cons#(mark(X1),X2) |
→ |
cons#(X1,X2) |
(59) |
|
2 |
≥ |
2 |
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
6th
component contains the
pair
s#(ok(X)) |
→ |
s#(X) |
(79) |
s#(mark(X)) |
→ |
s#(X) |
(60) |
1.1.1.1.6 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) |
(79) |
|
1 |
> |
1 |
s#(mark(X)) |
→ |
s#(X) |
(60) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
7th
component contains the
pair
adx#(ok(X)) |
→ |
adx#(X) |
(80) |
adx#(mark(X)) |
→ |
adx#(X) |
(61) |
1.1.1.1.7 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) |
(80) |
|
1 |
> |
1 |
adx#(mark(X)) |
→ |
adx#(X) |
(61) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
8th
component contains the
pair
head#(ok(X)) |
→ |
head#(X) |
(81) |
head#(mark(X)) |
→ |
head#(X) |
(62) |
1.1.1.1.8 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
head#(ok(X)) |
→ |
head#(X) |
(81) |
|
1 |
> |
1 |
head#(mark(X)) |
→ |
head#(X) |
(62) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
9th
component contains the
pair
tail#(ok(X)) |
→ |
tail#(X) |
(82) |
tail#(mark(X)) |
→ |
tail#(X) |
(63) |
1.1.1.1.9 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
tail#(ok(X)) |
→ |
tail#(X) |
(82) |
|
1 |
> |
1 |
tail#(mark(X)) |
→ |
tail#(X) |
(63) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.