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