The rewrite relation of the following TRS is considered.
The dependency pairs are split into 3
components.
-
The
1st
component contains the
pair
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(9) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(s) |
= |
0 |
|
weight(s) |
= |
1 |
|
|
|
in combination with the following argument filter
π(quot#) |
= |
1 |
π(s) |
= |
[1] |
π(minus) |
= |
1 |
together with the usable
rules
minus(x,0) |
→ |
x |
(1) |
minus(minus(x,y),z) |
→ |
minus(x,plus(y,z)) |
(7) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(9) |
could be deleted.
1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(12) |
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(8) |
1.1.2 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[plus(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[0] |
= |
0 |
[s(x1)] |
= |
1 · x1
|
[minus(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[minus#(x1, x2)] |
= |
1 · x1 + 1 · x2
|
together with the usable
rules
plus(0,y) |
→ |
y |
(5) |
plus(s(x),y) |
→ |
s(plus(x,y)) |
(6) |
(w.r.t. the implicit argument filter of the reduction pair),
the
rule
could be deleted.
1.1.2.1 Switch to Innermost Termination
The TRS does not have overlaps with the pairs and is locally confluent:
20
Hence, it suffices to show innermost termination in the following.
1.1.2.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
minus#(minus(x,y),z) |
→ |
minus#(x,plus(y,z)) |
(12) |
|
1 |
> |
1 |
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(8) |
|
1 |
> |
1 |
2 |
> |
2 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
plus#(s(x),y) |
→ |
plus#(x,y) |
(11) |
1.1.3 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[s(x1)] |
= |
1 · x1
|
[plus#(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.3.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
plus#(s(x),y) |
→ |
plus#(x,y) |
(11) |
|
1 |
> |
1 |
2 |
≥ |
2 |
As there is no critical graph in the transitive closure, there are no infinite chains.