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,x,y) |
→ |
log2#(half(x),y) |
(21) |
log2#(x,y) |
→ |
if#(le(x,s(0)),x,inc(y)) |
(19) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the rationals with delta = 1/64
[true] |
= |
0 |
[if#(x1, x2, x3)] |
= |
2 · x1 + 1 · x2 + 0 · x3 + 0 |
[half(x1)] |
= |
1/2 · x1 + 0 |
[le(x1, x2)] |
= |
1/2 · x1 + 0 · x2 + 0 |
[false] |
= |
1/2 |
[0] |
= |
0 |
[log2#(x1, x2)] |
= |
2 · x1 + 0 · x2 + 0 |
[inc(x1)] |
= |
0 · x1 + 2 |
[s(x1)] |
= |
1 · x1 + 2 |
together with the usable
rules
half(0) |
→ |
0 |
(1) |
half(s(0)) |
→ |
0 |
(2) |
half(s(s(x))) |
→ |
s(half(x)) |
(3) |
le(0,y) |
→ |
true |
(4) |
le(s(x),s(y)) |
→ |
le(x,y) |
(6) |
le(s(x),0) |
→ |
false |
(5) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
if#(false,x,y) |
→ |
log2#(half(x),y) |
(21) |
could be deleted.
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
2nd
component contains the
pair
half#(s(s(x))) |
→ |
half#(x) |
(13) |
1.1.2 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
half#(s(s(x))) |
→ |
half#(x) |
(13) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
3rd
component contains the
pair
le#(s(x),s(y)) |
→ |
le#(x,y) |
(14) |
1.1.3 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
le#(s(x),s(y)) |
→ |
le#(x,y) |
(14) |
|
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
inc#(s(x)) |
→ |
inc#(x) |
(15) |
1.1.4 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
inc#(s(x)) |
→ |
inc#(x) |
(15) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.