The rewrite relation of the following TRS is considered.
[cons(x1, x2)] |
= |
· x1 + · x2 +
|
[ok(x1)] |
= |
· x1 +
|
[f(x1)] |
= |
· x1 +
|
[s(x1)] |
= |
· x1 +
|
[mark(x1)] |
= |
· x1 +
|
[0] |
= |
|
[proper(x1)] |
= |
· x1 +
|
[top(x1)] |
= |
· x1 +
|
[p(x1)] |
= |
· x1 +
|
[active(x1)] |
= |
· x1 +
|
all of the following rules can be deleted.
The dependency pairs are split into 7
components.
-
The
1st
component contains the
pair
top#(ok(X)) |
→ |
top#(active(X)) |
(55) |
top#(mark(X)) |
→ |
top#(proper(X)) |
(53) |
1.1.1.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over (3 x 3)-matrices with strict dimension 1
over the naturals
[cons(x1, x2)] |
= |
· x1 + · x2 +
|
[ok(x1)] |
= |
· x1 +
|
[f(x1)] |
= |
· x1 +
|
[s(x1)] |
= |
· x1 +
|
[top#(x1)] |
= |
· x1 +
|
[mark(x1)] |
= |
· x1 +
|
[0] |
= |
|
[proper(x1)] |
= |
· x1 +
|
[p(x1)] |
= |
· x1 +
|
[active(x1)] |
= |
· x1 +
|
together with the usable
rules
active(f(0)) |
→ |
mark(cons(0,f(s(0)))) |
(1) |
active(f(s(0))) |
→ |
mark(f(p(s(0)))) |
(2) |
active(p(s(X))) |
→ |
mark(X) |
(3) |
active(f(X)) |
→ |
f(active(X)) |
(4) |
active(cons(X1,X2)) |
→ |
cons(active(X1),X2) |
(5) |
active(s(X)) |
→ |
s(active(X)) |
(6) |
active(p(X)) |
→ |
p(active(X)) |
(7) |
f(mark(X)) |
→ |
mark(f(X)) |
(8) |
f(ok(X)) |
→ |
ok(f(X)) |
(17) |
cons(ok(X1),ok(X2)) |
→ |
ok(cons(X1,X2)) |
(18) |
s(mark(X)) |
→ |
mark(s(X)) |
(10) |
s(ok(X)) |
→ |
ok(s(X)) |
(19) |
p(mark(X)) |
→ |
mark(p(X)) |
(11) |
p(ok(X)) |
→ |
ok(p(X)) |
(20) |
proper(f(X)) |
→ |
f(proper(X)) |
(12) |
proper(0) |
→ |
ok(0) |
(13) |
proper(cons(X1,X2)) |
→ |
cons(proper(X1),proper(X2)) |
(14) |
proper(s(X)) |
→ |
s(proper(X)) |
(15) |
proper(p(X)) |
→ |
p(proper(X)) |
(16) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
top#(mark(X)) |
→ |
top#(proper(X)) |
(53) |
could be deleted.
1.1.1.1.1 Subterm Criterion Processor
We use the projection to multisets
π(top#)
|
= |
{
1
}
|
π(ok)
|
= |
{
1, 1, 1
}
|
π(p)
|
= |
{
1, 1
}
|
π(mark)
|
= |
{
1
}
|
π(cons)
|
= |
{
2
}
|
π(s)
|
= |
{
1, 1
}
|
π(active)
|
= |
{
1, 1
}
|
π(f)
|
= |
{
1, 1
}
|
to remove the pairs:
top#(ok(X)) |
→ |
top#(active(X)) |
(55) |
1.1.1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
proper#(p(X)) |
→ |
proper#(X) |
(46) |
proper#(s(X)) |
→ |
proper#(X) |
(44) |
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(42) |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(41) |
proper#(f(X)) |
→ |
proper#(X) |
(39) |
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#(p(X)) |
→ |
proper#(X) |
(46) |
|
1 |
> |
1 |
proper#(s(X)) |
→ |
proper#(X) |
(44) |
|
1 |
> |
1 |
proper#(cons(X1,X2)) |
→ |
proper#(X1) |
(42) |
|
1 |
> |
1 |
proper#(cons(X1,X2)) |
→ |
proper#(X2) |
(41) |
|
1 |
> |
1 |
proper#(f(X)) |
→ |
proper#(X) |
(39) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
active#(p(X)) |
→ |
active#(X) |
(34) |
active#(s(X)) |
→ |
active#(X) |
(32) |
active#(cons(X1,X2)) |
→ |
active#(X1) |
(30) |
active#(f(X)) |
→ |
active#(X) |
(28) |
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#(p(X)) |
→ |
active#(X) |
(34) |
|
1 |
> |
1 |
active#(s(X)) |
→ |
active#(X) |
(32) |
|
1 |
> |
1 |
active#(cons(X1,X2)) |
→ |
active#(X1) |
(30) |
|
1 |
> |
1 |
active#(f(X)) |
→ |
active#(X) |
(28) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
4th
component contains the
pair
f#(ok(X)) |
→ |
f#(X) |
(48) |
f#(mark(X)) |
→ |
f#(X) |
(36) |
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.
f#(ok(X)) |
→ |
f#(X) |
(48) |
|
1 |
> |
1 |
f#(mark(X)) |
→ |
f#(X) |
(36) |
|
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) |
(49) |
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) |
(49) |
|
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) |
(50) |
s#(mark(X)) |
→ |
s#(X) |
(37) |
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) |
(50) |
|
1 |
> |
1 |
s#(mark(X)) |
→ |
s#(X) |
(37) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
7th
component contains the
pair
p#(ok(X)) |
→ |
p#(X) |
(51) |
p#(mark(X)) |
→ |
p#(X) |
(38) |
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.
p#(ok(X)) |
→ |
p#(X) |
(51) |
|
1 |
> |
1 |
p#(mark(X)) |
→ |
p#(X) |
(38) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.