The rewrite relation of the following TRS is considered.
The dependency pairs are split into 4
components.
-
The
1st
component contains the
pair
if#(false,xs,ys,zs) |
→ |
rev#(xs,ys) |
(23) |
rev#(xs,ys) |
→ |
if#(isEmpty(xs),dropLast(xs),append(ys,last(xs)),ys) |
(22) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the arctic semiring over the integers
[false] |
= |
2 |
[isEmpty(x1)] |
= |
0 · x1 +
-∞ |
[cons(x1, x2)] |
= |
-∞ · x1 + 1 · x2 + 2 |
[rev#(x1, x2)] |
= |
1 · x1 +
-∞ · x2 + 2 |
[if#(x1,...,x4)] |
= |
0 · x1 + 1 · x2 +
-∞ · x3 +
-∞ · x4 +
-∞ |
[last(x1)] |
= |
-4 · x1 + 0 |
[nil] |
= |
0 |
[append(x1, x2)] |
= |
0 · x1 +
-∞ · x2 +
-∞ |
[dropLast(x1)] |
= |
-1 · x1 + 0 |
[true] |
= |
0 |
together with the usable
rules
dropLast(nil) |
→ |
nil |
(5) |
dropLast(cons(x,nil)) |
→ |
nil |
(6) |
dropLast(cons(x,cons(y,ys))) |
→ |
cons(x,dropLast(cons(y,ys))) |
(7) |
isEmpty(nil) |
→ |
true |
(1) |
isEmpty(cons(x,xs)) |
→ |
false |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
rev#(xs,ys) |
→ |
if#(isEmpty(xs),dropLast(xs),append(ys,last(xs)),ys) |
(22) |
could be deleted.
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
2nd
component contains the
pair
dropLast#(cons(x,cons(y,ys))) |
→ |
dropLast#(cons(y,ys)) |
(15) |
1.1.2 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
dropLast#(cons(x,cons(y,ys))) |
→ |
dropLast#(cons(y,ys)) |
(15) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
append#(cons(x,xs),ys) |
→ |
append#(xs,ys) |
(16) |
1.1.3 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
append#(cons(x,xs),ys) |
→ |
append#(xs,ys) |
(16) |
|
2 |
≥ |
2 |
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
4th
component contains the
pair
last#(cons(x,cons(y,ys))) |
→ |
last#(cons(y,ys)) |
(14) |
1.1.4 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
last#(cons(x,cons(y,ys))) |
→ |
last#(cons(y,ys)) |
(14) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.