The rewrite relation of the following TRS is considered.
Hence, it suffices to show innermost termination in the following.
The dependency pairs are split into 5
components.
-
The
1st
component contains the
pair
logIter#(x,y) |
→ |
if#(le(s(0),x),le(s(s(0)),x),quot(x,s(s(0))),inc(y)) |
(21) |
if#(true,true,x,y) |
→ |
logIter#(x,y) |
(26) |
1.1.1.1 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
le(s(x),0) |
→ |
false |
(6) |
le(s(x),s(y)) |
→ |
le(x,y) |
(7) |
quot(0,s(y)) |
→ |
0 |
(3) |
quot(s(x),s(y)) |
→ |
s(quot(minus(x,y),s(y))) |
(4) |
inc(s(x)) |
→ |
s(inc(x)) |
(8) |
inc(0) |
→ |
s(0) |
(9) |
minus(x,0) |
→ |
x |
(1) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
le(0,y) |
→ |
true |
(5) |
1.1.1.1.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
minus(x0,0) |
minus(s(x0),s(x1)) |
quot(0,s(x0)) |
quot(s(x0),s(x1)) |
le(0,x0) |
le(s(x0),0) |
le(s(x0),s(x1)) |
inc(s(x0)) |
inc(0) |
1.1.1.1.1.1 Narrowing Processor
We consider all narrowings of the pair
below position
1
to get the following set of pairs
logIter#(0,y1) |
→ |
if#(false,le(s(s(0)),0),quot(0,s(s(0))),inc(y1)) |
(27) |
logIter#(s(x1),y1) |
→ |
if#(le(0,x1),le(s(s(0)),s(x1)),quot(s(x1),s(s(0))),inc(y1)) |
(28) |
1.1.1.1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 1
component.
-
The
2nd
component contains the
pair
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(16) |
1.1.1.2 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
minus(x,0) |
→ |
x |
(1) |
minus(s(x),s(y)) |
→ |
minus(x,y) |
(2) |
1.1.1.2.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
minus(x0,0) |
minus(s(x0),s(x1)) |
1.1.1.2.1.1 Reduction Pair Processor
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 |
the
pair
quot#(s(x),s(y)) |
→ |
quot#(minus(x,y),s(y)) |
(16) |
could be deleted.
1.1.1.2.1.1.1 P is empty
There are no pairs anymore.
-
The
3rd
component contains the
pair
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(15) |
1.1.1.3 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.1.3.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
There are no lhss.
1.1.1.3.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
minus#(s(x),s(y)) |
→ |
minus#(x,y) |
(15) |
|
1 |
> |
1 |
2 |
> |
2 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
4th
component contains the
pair
le#(s(x),s(y)) |
→ |
le#(x,y) |
(18) |
1.1.1.4 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.1.4.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
There are no lhss.
1.1.1.4.1.1 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) |
(18) |
|
1 |
> |
1 |
2 |
> |
2 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
5th
component contains the
pair
inc#(s(x)) |
→ |
inc#(x) |
(19) |
1.1.1.5 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
There are no rules.
1.1.1.5.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
There are no lhss.
1.1.1.5.1.1 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) |
(19) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.