The rewrite relation of the following TRS is considered.
The dependency pairs are split into 3
components.
-
The
1st
component contains the
pair
cond2#(false,x) |
→ |
cond1#(neq(x,0),p(x)) |
(23) |
cond1#(true,x) |
→ |
cond2#(even(x),x) |
(17) |
cond2#(true,x) |
→ |
cond1#(neq(x,0),div2(x)) |
(20) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the rationals with delta = 1/64
[0] |
= |
0 |
[p(x1)] |
= |
1/2 · x1 + 0 |
[neq(x1, x2)] |
= |
1/2 · x1 + 0 · x2 + 1/2 |
[true] |
= |
2 |
[false] |
= |
0 |
[cond1#(x1, x2)] |
= |
2 · x1 + 2 · x2 + 1 |
[s(x1)] |
= |
2 · x1 + 3 |
[cond2#(x1, x2)] |
= |
0 · x1 + 2 · x2 + 2 |
[div2(x1)] |
= |
1/2 · x1 + 0 |
[even(x1)] |
= |
0 · x1 + 0 |
together with the usable
rules
p(0) |
→ |
0 |
(14) |
p(s(x)) |
→ |
x |
(15) |
neq(0,0) |
→ |
false |
(4) |
neq(s(x),0) |
→ |
true |
(6) |
div2(0) |
→ |
0 |
(11) |
div2(s(0)) |
→ |
0 |
(12) |
div2(s(s(x))) |
→ |
s(div2(x)) |
(13) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
cond1#(true,x) |
→ |
cond2#(even(x),x) |
(17) |
could be deleted.
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
2nd
component contains the
pair
even#(s(s(x))) |
→ |
even#(x) |
(25) |
1.1.2 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
even#(s(s(x))) |
→ |
even#(x) |
(25) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
div2#(s(s(x))) |
→ |
div2#(x) |
(26) |
1.1.3 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
div2#(s(s(x))) |
→ |
div2#(x) |
(26) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.