Certification Problem
Input (TPDB SRS_Standard/Zantema_06/beans5)
The rewrite relation of the following TRS is considered.
b(a(a(x1))) |
→ |
a(b(c(x1))) |
(1) |
c(a(x1)) |
→ |
a(c(x1)) |
(2) |
c(b(x1)) |
→ |
b(a(x1)) |
(3) |
a(a(x1)) |
→ |
a(b(a(x1))) |
(4) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by matchbox @ termCOMP 2023)
1 Split
We split R in the relative problem D/R-D and R-D, where the rules D
a(a(x1)) |
→ |
a(b(a(x1))) |
(4) |
are deleted.
1.1 Closure Under Flat Contexts
Using the flat contexts
{c(☐), b(☐), a(☐)}
We obtain the transformed TRS
c(a(a(x1))) |
→ |
c(a(b(a(x1)))) |
(5) |
b(a(a(x1))) |
→ |
b(a(b(a(x1)))) |
(6) |
a(a(a(x1))) |
→ |
a(a(b(a(x1)))) |
(7) |
c(b(a(a(x1)))) |
→ |
c(a(b(c(x1)))) |
(8) |
c(c(a(x1))) |
→ |
c(a(c(x1))) |
(9) |
c(c(b(x1))) |
→ |
c(b(a(x1))) |
(10) |
b(b(a(a(x1)))) |
→ |
b(a(b(c(x1)))) |
(11) |
b(c(a(x1))) |
→ |
b(a(c(x1))) |
(12) |
b(c(b(x1))) |
→ |
b(b(a(x1))) |
(13) |
a(b(a(a(x1)))) |
→ |
a(a(b(c(x1)))) |
(14) |
a(c(a(x1))) |
→ |
a(a(c(x1))) |
(15) |
a(c(b(x1))) |
→ |
a(b(a(x1))) |
(16) |
1.1.1 Closure Under Flat Contexts
Using the flat contexts
{c(☐), b(☐), a(☐)}
We obtain the transformed TRS
c(c(a(a(x1)))) |
→ |
c(c(a(b(a(x1))))) |
(17) |
c(b(a(a(x1)))) |
→ |
c(b(a(b(a(x1))))) |
(18) |
c(a(a(a(x1)))) |
→ |
c(a(a(b(a(x1))))) |
(19) |
b(c(a(a(x1)))) |
→ |
b(c(a(b(a(x1))))) |
(20) |
b(b(a(a(x1)))) |
→ |
b(b(a(b(a(x1))))) |
(21) |
b(a(a(a(x1)))) |
→ |
b(a(a(b(a(x1))))) |
(22) |
a(c(a(a(x1)))) |
→ |
a(c(a(b(a(x1))))) |
(23) |
a(b(a(a(x1)))) |
→ |
a(b(a(b(a(x1))))) |
(24) |
a(a(a(a(x1)))) |
→ |
a(a(a(b(a(x1))))) |
(25) |
c(c(b(a(a(x1))))) |
→ |
c(c(a(b(c(x1))))) |
(26) |
c(c(c(a(x1)))) |
→ |
c(c(a(c(x1)))) |
(27) |
c(c(c(b(x1)))) |
→ |
c(c(b(a(x1)))) |
(28) |
c(b(b(a(a(x1))))) |
→ |
c(b(a(b(c(x1))))) |
(29) |
c(b(c(a(x1)))) |
→ |
c(b(a(c(x1)))) |
(30) |
c(b(c(b(x1)))) |
→ |
c(b(b(a(x1)))) |
(31) |
c(a(b(a(a(x1))))) |
→ |
c(a(a(b(c(x1))))) |
(32) |
c(a(c(a(x1)))) |
→ |
c(a(a(c(x1)))) |
(33) |
c(a(c(b(x1)))) |
→ |
c(a(b(a(x1)))) |
(34) |
b(c(b(a(a(x1))))) |
→ |
b(c(a(b(c(x1))))) |
(35) |
b(c(c(a(x1)))) |
→ |
b(c(a(c(x1)))) |
(36) |
b(c(c(b(x1)))) |
→ |
b(c(b(a(x1)))) |
(37) |
b(b(b(a(a(x1))))) |
→ |
b(b(a(b(c(x1))))) |
(38) |
b(b(c(a(x1)))) |
→ |
b(b(a(c(x1)))) |
(39) |
b(b(c(b(x1)))) |
→ |
b(b(b(a(x1)))) |
(40) |
b(a(b(a(a(x1))))) |
→ |
b(a(a(b(c(x1))))) |
(41) |
b(a(c(a(x1)))) |
→ |
b(a(a(c(x1)))) |
(42) |
b(a(c(b(x1)))) |
→ |
b(a(b(a(x1)))) |
(43) |
a(c(b(a(a(x1))))) |
→ |
a(c(a(b(c(x1))))) |
(44) |
a(c(c(a(x1)))) |
→ |
a(c(a(c(x1)))) |
(45) |
a(c(c(b(x1)))) |
→ |
a(c(b(a(x1)))) |
(46) |
a(b(b(a(a(x1))))) |
→ |
a(b(a(b(c(x1))))) |
(47) |
a(b(c(a(x1)))) |
→ |
a(b(a(c(x1)))) |
(48) |
a(b(c(b(x1)))) |
→ |
a(b(b(a(x1)))) |
(49) |
a(a(b(a(a(x1))))) |
→ |
a(a(a(b(c(x1))))) |
(50) |
a(a(c(a(x1)))) |
→ |
a(a(a(c(x1)))) |
(51) |
a(a(c(b(x1)))) |
→ |
a(a(b(a(x1)))) |
(52) |
1.1.1.1 Semantic Labeling
The following interpretations form a
model
of the rules.
As carrier we take the set
{0,...,8}.
Symbols are labeled by the interpretation of their arguments using the interpretations
(modulo 9):
[c(x1)] |
= |
3x1 + 0 |
[b(x1)] |
= |
3x1 + 1 |
[a(x1)] |
= |
3x1 + 2 |
We obtain the labeled TRS
There are 324 ruless (increase limit for explicit display).
1.1.1.1.1 Rule Removal
Using the
matrix interpretations of dimension 1 with strict dimension 1 over the rationals with delta = 1
[c0(x1)] |
= |
x1 +
|
[c3(x1)] |
= |
x1 +
|
[c6(x1)] |
= |
x1 +
|
[c1(x1)] |
= |
x1 +
|
[c4(x1)] |
= |
x1 +
|
[c7(x1)] |
= |
x1 +
|
[c2(x1)] |
= |
x1 +
|
[c5(x1)] |
= |
x1 +
|
[c8(x1)] |
= |
x1 +
|
[b0(x1)] |
= |
x1 +
|
[b3(x1)] |
= |
x1 +
|
[b6(x1)] |
= |
x1 +
|
[b1(x1)] |
= |
x1 +
|
[b4(x1)] |
= |
x1 +
|
[b7(x1)] |
= |
x1 +
|
[b2(x1)] |
= |
x1 +
|
[b5(x1)] |
= |
x1 +
|
[b8(x1)] |
= |
x1 +
|
[a0(x1)] |
= |
x1 +
|
[a3(x1)] |
= |
x1 +
|
[a6(x1)] |
= |
x1 +
|
[a1(x1)] |
= |
x1 +
|
[a4(x1)] |
= |
x1 +
|
[a7(x1)] |
= |
x1 +
|
[a2(x1)] |
= |
x1 +
|
[a5(x1)] |
= |
x1 +
|
[a8(x1)] |
= |
x1 +
|
all of the following rules can be deleted.
There are 124 ruless (increase limit for explicit display).
1.1.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.
1.2 Closure Under Flat Contexts
Using the flat contexts
{c(☐), b(☐), a(☐)}
We obtain the transformed TRS
c(b(a(a(x1)))) |
→ |
c(a(b(c(x1)))) |
(8) |
c(c(a(x1))) |
→ |
c(a(c(x1))) |
(9) |
c(c(b(x1))) |
→ |
c(b(a(x1))) |
(10) |
b(b(a(a(x1)))) |
→ |
b(a(b(c(x1)))) |
(11) |
b(c(a(x1))) |
→ |
b(a(c(x1))) |
(12) |
b(c(b(x1))) |
→ |
b(b(a(x1))) |
(13) |
a(b(a(a(x1)))) |
→ |
a(a(b(c(x1)))) |
(14) |
a(c(a(x1))) |
→ |
a(a(c(x1))) |
(15) |
a(c(b(x1))) |
→ |
a(b(a(x1))) |
(16) |
1.2.1 Semantic Labeling
The following interpretations form a
model
of the rules.
As carrier we take the set
{0,1,2}.
Symbols are labeled by the interpretation of their arguments using the interpretations
(modulo 3):
[c(x1)] |
= |
3x1 + 0 |
[b(x1)] |
= |
3x1 + 1 |
[a(x1)] |
= |
3x1 + 2 |
We obtain the labeled TRS
b1(b2(a2(a1(x1)))) |
→ |
b2(a1(b0(c1(x1)))) |
(377) |
b1(b2(a2(a2(x1)))) |
→ |
b2(a1(b0(c2(x1)))) |
(378) |
b1(b2(a2(a0(x1)))) |
→ |
b2(a1(b0(c0(x1)))) |
(379) |
a1(b2(a2(a1(x1)))) |
→ |
a2(a1(b0(c1(x1)))) |
(380) |
a1(b2(a2(a2(x1)))) |
→ |
a2(a1(b0(c2(x1)))) |
(381) |
a1(b2(a2(a0(x1)))) |
→ |
a2(a1(b0(c0(x1)))) |
(382) |
c1(b2(a2(a1(x1)))) |
→ |
c2(a1(b0(c1(x1)))) |
(383) |
c1(b2(a2(a2(x1)))) |
→ |
c2(a1(b0(c2(x1)))) |
(384) |
c1(b2(a2(a0(x1)))) |
→ |
c2(a1(b0(c0(x1)))) |
(385) |
b0(c2(a1(x1))) |
→ |
b2(a0(c1(x1))) |
(386) |
b0(c2(a2(x1))) |
→ |
b2(a0(c2(x1))) |
(387) |
b0(c2(a0(x1))) |
→ |
b2(a0(c0(x1))) |
(388) |
a0(c2(a1(x1))) |
→ |
a2(a0(c1(x1))) |
(389) |
a0(c2(a2(x1))) |
→ |
a2(a0(c2(x1))) |
(390) |
a0(c2(a0(x1))) |
→ |
a2(a0(c0(x1))) |
(391) |
c0(c2(a1(x1))) |
→ |
c2(a0(c1(x1))) |
(392) |
c0(c2(a2(x1))) |
→ |
c2(a0(c2(x1))) |
(393) |
c0(c2(a0(x1))) |
→ |
c2(a0(c0(x1))) |
(394) |
b0(c1(b1(x1))) |
→ |
b1(b2(a1(x1))) |
(395) |
b0(c1(b2(x1))) |
→ |
b1(b2(a2(x1))) |
(396) |
b0(c1(b0(x1))) |
→ |
b1(b2(a0(x1))) |
(397) |
a0(c1(b1(x1))) |
→ |
a1(b2(a1(x1))) |
(398) |
a0(c1(b2(x1))) |
→ |
a1(b2(a2(x1))) |
(399) |
a0(c1(b0(x1))) |
→ |
a1(b2(a0(x1))) |
(400) |
c0(c1(b1(x1))) |
→ |
c1(b2(a1(x1))) |
(401) |
c0(c1(b2(x1))) |
→ |
c1(b2(a2(x1))) |
(402) |
c0(c1(b0(x1))) |
→ |
c1(b2(a0(x1))) |
(403) |
1.2.1.1 Rule Removal
Using the
matrix interpretations of dimension 1 with strict dimension 1 over the naturals
[c0(x1)] |
= |
· x1 +
|
[c1(x1)] |
= |
· x1 +
|
[c2(x1)] |
= |
· x1 +
|
[b0(x1)] |
= |
· x1 +
|
[b1(x1)] |
= |
· x1 +
|
[b2(x1)] |
= |
· x1 +
|
[a0(x1)] |
= |
· x1 +
|
[a1(x1)] |
= |
· x1 +
|
[a2(x1)] |
= |
· x1 +
|
all of the following rules can be deleted.
b1(b2(a2(a1(x1)))) |
→ |
b2(a1(b0(c1(x1)))) |
(377) |
b1(b2(a2(a2(x1)))) |
→ |
b2(a1(b0(c2(x1)))) |
(378) |
b1(b2(a2(a0(x1)))) |
→ |
b2(a1(b0(c0(x1)))) |
(379) |
a1(b2(a2(a1(x1)))) |
→ |
a2(a1(b0(c1(x1)))) |
(380) |
a1(b2(a2(a2(x1)))) |
→ |
a2(a1(b0(c2(x1)))) |
(381) |
a1(b2(a2(a0(x1)))) |
→ |
a2(a1(b0(c0(x1)))) |
(382) |
c1(b2(a2(a1(x1)))) |
→ |
c2(a1(b0(c1(x1)))) |
(383) |
c1(b2(a2(a2(x1)))) |
→ |
c2(a1(b0(c2(x1)))) |
(384) |
c1(b2(a2(a0(x1)))) |
→ |
c2(a1(b0(c0(x1)))) |
(385) |
b0(c2(a1(x1))) |
→ |
b2(a0(c1(x1))) |
(386) |
b0(c2(a2(x1))) |
→ |
b2(a0(c2(x1))) |
(387) |
b0(c2(a0(x1))) |
→ |
b2(a0(c0(x1))) |
(388) |
a0(c2(a1(x1))) |
→ |
a2(a0(c1(x1))) |
(389) |
a0(c2(a2(x1))) |
→ |
a2(a0(c2(x1))) |
(390) |
a0(c2(a0(x1))) |
→ |
a2(a0(c0(x1))) |
(391) |
c0(c2(a1(x1))) |
→ |
c2(a0(c1(x1))) |
(392) |
c0(c2(a2(x1))) |
→ |
c2(a0(c2(x1))) |
(393) |
c0(c2(a0(x1))) |
→ |
c2(a0(c0(x1))) |
(394) |
1.2.1.1.1 Rule Removal
Using the
matrix interpretations of dimension 1 with strict dimension 1 over the rationals with delta = 1
[c0(x1)] |
= |
x1 +
|
[c1(x1)] |
= |
x1 +
|
[b0(x1)] |
= |
x1 +
|
[b1(x1)] |
= |
x1 +
|
[b2(x1)] |
= |
x1 +
|
[a0(x1)] |
= |
x1 +
|
[a1(x1)] |
= |
x1 +
|
[a2(x1)] |
= |
x1 +
|
all of the following rules can be deleted.
b0(c1(b1(x1))) |
→ |
b1(b2(a1(x1))) |
(395) |
b0(c1(b2(x1))) |
→ |
b1(b2(a2(x1))) |
(396) |
b0(c1(b0(x1))) |
→ |
b1(b2(a0(x1))) |
(397) |
a0(c1(b1(x1))) |
→ |
a1(b2(a1(x1))) |
(398) |
a0(c1(b2(x1))) |
→ |
a1(b2(a2(x1))) |
(399) |
a0(c1(b0(x1))) |
→ |
a1(b2(a0(x1))) |
(400) |
c0(c1(b1(x1))) |
→ |
c1(b2(a1(x1))) |
(401) |
c0(c1(b2(x1))) |
→ |
c1(b2(a2(x1))) |
(402) |
c0(c1(b0(x1))) |
→ |
c1(b2(a0(x1))) |
(403) |
1.2.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.