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#(min(X,Y),s(Y)) |
(12) |
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] |
π(min) |
= |
1 |
together with the usable
rules
min(X,0) |
→ |
X |
(3) |
min(min(X,Y),Z) |
→ |
min(X,plus(Y,Z)) |
(5) |
min(s(X),s(Y)) |
→ |
min(X,Y) |
(4) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
quot#(s(X),s(Y)) |
→ |
quot#(min(X,Y),s(Y)) |
(12) |
could be deleted.
1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
min#(min(X,Y),Z) |
→ |
min#(X,plus(Y,Z)) |
(10) |
min#(s(X),s(Y)) |
→ |
min#(X,Y) |
(9) |
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
|
[min(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[Z] |
= |
0 |
[min#(x1, x2)] |
= |
1 · x1 + 1 · x2
|
together with the usable
rules
plus(0,Y) |
→ |
Y |
(1) |
plus(s(X),Y) |
→ |
s(plus(X,Y)) |
(2) |
(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.
min#(min(X,Y),Z) |
→ |
min#(X,plus(Y,Z)) |
(10) |
|
1 |
> |
1 |
min#(s(X),s(Y)) |
→ |
min#(X,Y) |
(9) |
|
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) |
(8) |
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) |
(8) |
|
1 |
> |
1 |
2 |
≥ |
2 |
As there is no critical graph in the transitive closure, there are no infinite chains.