Certification Problem
Input (TPDB TRS_Standard/Beerendonk_07/2)
The rewrite relation of the following TRS is considered.
cond(true,x,y) |
→ |
cond(gr(x,y),p(x),s(y)) |
(1) |
gr(0,x) |
→ |
false |
(2) |
gr(s(x),0) |
→ |
true |
(3) |
gr(s(x),s(y)) |
→ |
gr(x,y) |
(4) |
p(0) |
→ |
0 |
(5) |
p(s(x)) |
→ |
x |
(6) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by ttt2 @ termCOMP 2023)
1 Dependency Pair Transformation
The following set of initial dependency pairs has been identified.
cond#(true,x,y) |
→ |
p#(x) |
(7) |
cond#(true,x,y) |
→ |
gr#(x,y) |
(8) |
cond#(true,x,y) |
→ |
cond#(gr(x,y),p(x),s(y)) |
(9) |
gr#(s(x),s(y)) |
→ |
gr#(x,y) |
(10) |
1.1 Dependency Graph Processor
The dependency pairs are split into 2
components.
-
The
1st
component contains the
pair
cond#(true,x,y) |
→ |
cond#(gr(x,y),p(x),s(y)) |
(9) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the arctic semiring over the integers
[s(x1)] |
= |
10 · x1 + 10 |
[p(x1)] |
= |
-8 · x1 + 0 |
[0] |
= |
0 |
[true] |
= |
4 |
[cond#(x1, x2, x3)] |
= |
0 · x1 + 0 · x2 +
-∞ · x3 + 0 |
[false] |
= |
0 |
[gr(x1, x2)] |
= |
-6 · x1 +
-∞ · x2 + 0 |
together with the usable
rules
p(0) |
→ |
0 |
(5) |
p(s(x)) |
→ |
x |
(6) |
gr(0,x) |
→ |
false |
(2) |
gr(s(x),0) |
→ |
true |
(3) |
gr(s(x),s(y)) |
→ |
gr(x,y) |
(4) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
cond#(true,x,y) |
→ |
cond#(gr(x,y),p(x),s(y)) |
(9) |
could be deleted.
1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
gr#(s(x),s(y)) |
→ |
gr#(x,y) |
(10) |
1.1.2 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
gr#(s(x),s(y)) |
→ |
gr#(x,y) |
(10) |
|
2 |
> |
2 |
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.