Certification Problem
Input (TPDB TRS_Innermost/AG01_innermost/#4.20)
The rewrite relation of the following TRS is considered.
f(f(x)) |
→ |
f(x) |
(1) |
g(0) |
→ |
g(f(0)) |
(2) |
The evaluation strategy is innermost.Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 Semantic Labeling
Root-labeling is applied.
We obtain the labeled TRS
ff(ff(x)) |
→ |
ff(x) |
(3) |
ff(fg(x)) |
→ |
fg(x) |
(4) |
ff(f0(x)) |
→ |
f0(x) |
(5) |
g0(0) |
→ |
gf(f0(0)) |
(6) |
1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[ff(x1)] |
= |
1 · x1
|
[fg(x1)] |
= |
1 · x1
|
[f0(x1)] |
= |
1 · x1
|
[g0(x1)] |
= |
1 · x1 + 1 |
[0] |
= |
0 |
[gf(x1)] |
= |
1 · x1
|
all of the following rules can be deleted.
1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[ff(x1)] |
= |
1 · x1 + 1 |
[fg(x1)] |
= |
1 · x1
|
[f0(x1)] |
= |
1 · x1
|
all of the following rules can be deleted.
ff(ff(x)) |
→ |
ff(x) |
(3) |
ff(fg(x)) |
→ |
fg(x) |
(4) |
ff(f0(x)) |
→ |
f0(x) |
(5) |
1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.