The rewrite relation of the following TRS is considered.
tower#(s(x1)) |
→ |
p#(s(p(s(twoto(p(s(p(s(tower(p(s(p(s(x1)))))))))))))) |
(10) |
tower#(s(x1)) |
→ |
p#(s(twoto(p(s(p(s(tower(p(s(p(s(x1)))))))))))) |
(11) |
tower#(s(x1)) |
→ |
twoto#(p(s(p(s(tower(p(s(p(s(x1)))))))))) |
(12) |
tower#(s(x1)) |
→ |
p#(s(p(s(tower(p(s(p(s(x1))))))))) |
(13) |
tower#(s(x1)) |
→ |
p#(s(tower(p(s(p(s(x1))))))) |
(14) |
tower#(s(x1)) |
→ |
tower#(p(s(p(s(x1))))) |
(15) |
tower#(s(x1)) |
→ |
p#(s(p(s(x1)))) |
(16) |
tower#(s(x1)) |
→ |
p#(s(x1)) |
(17) |
twoto#(s(x1)) |
→ |
p#(p(s(p(p(p(s(s(p(s(s(p(s(s(p(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1)))))))))))))))))))))))))))))))) |
(18) |
twoto#(s(x1)) |
→ |
p#(s(p(p(p(s(s(p(s(s(p(s(s(p(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1))))))))))))))))))))))))))))))) |
(19) |
twoto#(s(x1)) |
→ |
p#(p(p(s(s(p(s(s(p(s(s(p(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1))))))))))))))))))))))))))))) |
(20) |
twoto#(s(x1)) |
→ |
p#(p(s(s(p(s(s(p(s(s(p(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1)))))))))))))))))))))))))))) |
(21) |
twoto#(s(x1)) |
→ |
p#(s(s(p(s(s(p(s(s(p(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1))))))))))))))))))))))))))) |
(22) |
twoto#(s(x1)) |
→ |
p#(s(s(p(s(s(p(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1)))))))))))))))))))))))) |
(23) |
twoto#(s(x1)) |
→ |
p#(s(s(p(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1))))))))))))))))))))) |
(24) |
twoto#(s(x1)) |
→ |
p#(s(twice(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1)))))))))))))))))) |
(25) |
twoto#(s(x1)) |
→ |
twice#(p(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1)))))))))))))))) |
(26) |
twoto#(s(x1)) |
→ |
p#(s(p(s(p(p(p(s(s(s(twoto(p(s(p(s(x1))))))))))))))) |
(27) |
twoto#(s(x1)) |
→ |
p#(s(p(p(p(s(s(s(twoto(p(s(p(s(x1))))))))))))) |
(28) |
twoto#(s(x1)) |
→ |
p#(p(p(s(s(s(twoto(p(s(p(s(x1))))))))))) |
(29) |
twoto#(s(x1)) |
→ |
p#(p(s(s(s(twoto(p(s(p(s(x1)))))))))) |
(30) |
twoto#(s(x1)) |
→ |
p#(s(s(s(twoto(p(s(p(s(x1))))))))) |
(31) |
twoto#(s(x1)) |
→ |
twoto#(p(s(p(s(x1))))) |
(32) |
twoto#(s(x1)) |
→ |
p#(s(p(s(x1)))) |
(33) |
twoto#(s(x1)) |
→ |
p#(s(x1)) |
(34) |
twice#(s(x1)) |
→ |
p#(p(p(s(s(s(s(s(twice(p(p(p(s(s(s(x1))))))))))))))) |
(35) |
twice#(s(x1)) |
→ |
p#(p(s(s(s(s(s(twice(p(p(p(s(s(s(x1)))))))))))))) |
(36) |
twice#(s(x1)) |
→ |
p#(s(s(s(s(s(twice(p(p(p(s(s(s(x1))))))))))))) |
(37) |
twice#(s(x1)) |
→ |
twice#(p(p(p(s(s(s(x1))))))) |
(38) |
twice#(s(x1)) |
→ |
p#(p(p(s(s(s(x1)))))) |
(39) |
twice#(s(x1)) |
→ |
p#(p(s(s(s(x1))))) |
(40) |
twice#(s(x1)) |
→ |
p#(s(s(s(x1)))) |
(41) |
p#(p(s(x1))) |
→ |
p#(x1) |
(42) |
The dependency pairs are split into 4
components.
-
The
1st
component contains the
pair
tower#(s(x1)) |
→ |
tower#(p(s(p(s(x1))))) |
(15) |
1.1.1.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.1.1.1 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
1.1.1.1.1.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
1.1.1.1.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[tower#(x1)] |
= |
2 + x1
|
[p(x1)] |
= |
-1 + x1
|
[s(x1)] |
= |
1 + x1
|
the
pair
tower#(s(x1)) |
→ |
tower#(p(s(p(s(x1))))) |
(15) |
could be deleted.
1.1.1.1.1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
twoto#(s(x1)) |
→ |
twoto#(p(s(p(s(x1))))) |
(32) |
1.1.1.2 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.1.2.1 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
1.1.1.2.1.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
1.1.1.2.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[twoto#(x1)] |
= |
2 + x1
|
[p(x1)] |
= |
-1 + x1
|
[s(x1)] |
= |
1 + x1
|
the
pair
twoto#(s(x1)) |
→ |
twoto#(p(s(p(s(x1))))) |
(32) |
could be deleted.
1.1.1.2.1.1.1.1 P is empty
There are no pairs anymore.
-
The
3rd
component contains the
pair
twice#(s(x1)) |
→ |
twice#(p(p(p(s(s(s(x1))))))) |
(38) |
1.1.1.3 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.1.3.1 Usable Rules Processor
We restrict the rewrite rules to the following usable rules of the DP problem.
p(s(x1)) |
→ |
x1 |
(8) |
p(0(x1)) |
→ |
0(s(s(s(s(s(s(s(s(x1))))))))) |
(9) |
1.1.1.3.1.1 Innermost Lhss Removal Processor
We restrict the innermost strategy to the following left hand sides.
1.1.1.3.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[twice#(x1)] |
= |
2 · x1
|
[p(x1)] |
= |
-1 + x1
|
[s(x1)] |
= |
1 + x1
|
[0(x1)] |
= |
0 |
the
pair
twice#(s(x1)) |
→ |
twice#(p(p(p(s(s(s(x1))))))) |
(38) |
could be deleted.
1.1.1.3.1.1.1.1 P is empty
There are no pairs anymore.
-
The
4th
component contains the
pair
p#(p(s(x1))) |
→ |
p#(x1) |
(42) |
1.1.1.4 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[p(x1)] |
= |
1 · x1
|
[s(x1)] |
= |
1 · x1
|
[p#(x1)] |
= |
1 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
rule
could be deleted.
1.1.1.4.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
p#(p(s(x1))) |
→ |
p#(x1) |
(42) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.