Certification Problem
Input (TPDB TRS_Standard/HirokawaMiddeldorp_04/t010)
The rewrite relation of the following TRS is considered.
g(b) |
→ |
f(b) |
(1) |
f(a) |
→ |
g(a) |
(2) |
b |
→ |
a |
(3) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 Closure Under Flat Contexts
Using the flat contexts
{g(☐), f(☐)}
We obtain the transformed TRS
g(g(b)) |
→ |
g(f(b)) |
(4) |
f(g(b)) |
→ |
f(f(b)) |
(5) |
g(f(a)) |
→ |
g(g(a)) |
(6) |
f(f(a)) |
→ |
f(g(a)) |
(7) |
g(b) |
→ |
g(a) |
(8) |
f(b) |
→ |
f(a) |
(9) |
1.1 Semantic Labeling
Root-labeling is applied.
We obtain the labeled TRS
gg(gb(b)) |
→ |
gf(fb(b)) |
(10) |
fg(gb(b)) |
→ |
ff(fb(b)) |
(11) |
gf(fa(a)) |
→ |
gg(ga(a)) |
(12) |
ff(fa(a)) |
→ |
fg(ga(a)) |
(13) |
gb(b) |
→ |
ga(a) |
(14) |
fb(b) |
→ |
fa(a) |
(15) |
1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[gg(x1)] |
= |
1 · x1
|
[gb(x1)] |
= |
1 · x1 + 2 |
[b] |
= |
1 |
[gf(x1)] |
= |
1 · x1 + 1 |
[fb(x1)] |
= |
1 · x1
|
[fg(x1)] |
= |
1 · x1
|
[ff(x1)] |
= |
1 · x1 + 1 |
[fa(x1)] |
= |
1 · x1
|
[a] |
= |
0 |
[ga(x1)] |
= |
1 · x1
|
all of the following rules can be deleted.
gg(gb(b)) |
→ |
gf(fb(b)) |
(10) |
fg(gb(b)) |
→ |
ff(fb(b)) |
(11) |
gf(fa(a)) |
→ |
gg(ga(a)) |
(12) |
ff(fa(a)) |
→ |
fg(ga(a)) |
(13) |
gb(b) |
→ |
ga(a) |
(14) |
fb(b) |
→ |
fa(a) |
(15) |
1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.