Certification Problem
Input (TPDB SRS_Standard/Zantema_04/z125)
The rewrite relation of the following TRS is considered.
f(x1) |
→ |
n(c(n(a(x1)))) |
(1) |
c(f(x1)) |
→ |
f(n(a(c(x1)))) |
(2) |
n(a(x1)) |
→ |
c(x1) |
(3) |
c(c(x1)) |
→ |
c(x1) |
(4) |
n(s(x1)) |
→ |
f(s(s(x1))) |
(5) |
n(f(x1)) |
→ |
f(n(x1)) |
(6) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 String Reversal
Since only unary symbols occur, one can reverse all terms and obtains the TRS
f(x1) |
→ |
a(n(c(n(x1)))) |
(7) |
f(c(x1)) |
→ |
c(a(n(f(x1)))) |
(8) |
a(n(x1)) |
→ |
c(x1) |
(9) |
c(c(x1)) |
→ |
c(x1) |
(4) |
s(n(x1)) |
→ |
s(s(f(x1))) |
(10) |
f(n(x1)) |
→ |
n(f(x1)) |
(11) |
1.1 Dependency Pair Transformation
The following set of initial dependency pairs has been identified.
f#(x1) |
→ |
a#(n(c(n(x1)))) |
(12) |
f#(x1) |
→ |
c#(n(x1)) |
(13) |
f#(c(x1)) |
→ |
c#(a(n(f(x1)))) |
(14) |
f#(c(x1)) |
→ |
a#(n(f(x1))) |
(15) |
f#(c(x1)) |
→ |
f#(x1) |
(16) |
a#(n(x1)) |
→ |
c#(x1) |
(17) |
s#(n(x1)) |
→ |
s#(s(f(x1))) |
(18) |
s#(n(x1)) |
→ |
s#(f(x1)) |
(19) |
s#(n(x1)) |
→ |
f#(x1) |
(20) |
f#(n(x1)) |
→ |
f#(x1) |
(21) |
1.1.1 Dependency Graph Processor
The dependency pairs are split into 2
components.
-
The
1st
component contains the
pair
s#(n(x1)) |
→ |
s#(f(x1)) |
(19) |
s#(n(x1)) |
→ |
s#(s(f(x1))) |
(18) |
1.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[s#(x1)] |
= |
1 · x1
|
[n(x1)] |
= |
1 |
[f(x1)] |
= |
1 |
[s(x1)] |
= |
0 |
[a(x1)] |
= |
1 · x1
|
[c(x1)] |
= |
1 |
the
pair
s#(n(x1)) |
→ |
s#(s(f(x1))) |
(18) |
could be deleted.
1.1.1.1.1 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[f(x1)] |
= |
1 · x1
|
[a(x1)] |
= |
1 · x1
|
[n(x1)] |
= |
1 · x1
|
[c(x1)] |
= |
1 · x1
|
[s#(x1)] |
= |
1 · x1
|
together with the usable
rules
f(x1) |
→ |
a(n(c(n(x1)))) |
(7) |
f(c(x1)) |
→ |
c(a(n(f(x1)))) |
(8) |
f(n(x1)) |
→ |
n(f(x1)) |
(11) |
a(n(x1)) |
→ |
c(x1) |
(9) |
c(c(x1)) |
→ |
c(x1) |
(4) |
(w.r.t. the implicit argument filter of the reduction pair),
the
rule
could be deleted.
1.1.1.1.1.1 Reduction Pair Processor
Using the linear polynomial interpretation over the naturals
[s#(x1)] |
= |
1 · x1
|
[n(x1)] |
= |
1 + 1 · x1
|
[f(x1)] |
= |
1 · x1
|
[a(x1)] |
= |
0 |
[c(x1)] |
= |
0 |
the
pair
s#(n(x1)) |
→ |
s#(f(x1)) |
(19) |
could be deleted.
1.1.1.1.1.1.1 P is empty
There are no pairs anymore.
-
The
2nd
component contains the
pair
f#(n(x1)) |
→ |
f#(x1) |
(21) |
f#(c(x1)) |
→ |
f#(x1) |
(16) |
1.1.1.2 Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[n(x1)] |
= |
1 · x1
|
[c(x1)] |
= |
1 · x1
|
[f#(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.2.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
f#(n(x1)) |
→ |
f#(x1) |
(21) |
|
1 |
> |
1 |
f#(c(x1)) |
→ |
f#(x1) |
(16) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.