Certification Problem
Input (TPDB SRS_Relative/Waldmann_19/random-232)
The relative rewrite relation R/S is considered where R is the following TRS
|
a(b(b(x1))) |
→ |
c(b(c(x1))) |
(1) |
|
c(a(b(x1))) |
→ |
a(c(b(x1))) |
(2) |
|
c(c(a(x1))) |
→ |
c(b(b(x1))) |
(3) |
and S is the following TRS.
|
c(c(b(x1))) |
→ |
c(a(c(x1))) |
(4) |
|
a(c(b(x1))) |
→ |
c(b(a(x1))) |
(5) |
|
b(c(c(x1))) |
→ |
b(a(c(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
|
b(b(a(x1))) |
→ |
c(b(c(x1))) |
(7) |
|
b(a(c(x1))) |
→ |
b(c(a(x1))) |
(8) |
|
a(c(c(x1))) |
→ |
b(b(c(x1))) |
(9) |
|
b(c(c(x1))) |
→ |
c(a(c(x1))) |
(10) |
|
b(c(a(x1))) |
→ |
a(b(c(x1))) |
(11) |
|
c(c(b(x1))) |
→ |
c(a(b(x1))) |
(12) |
1.1 Closure Under Flat Contexts
Using the flat contexts
{b(☐), a(☐), c(☐)}
We obtain the transformed TRS
|
b(a(c(x1))) |
→ |
b(c(a(x1))) |
(8) |
|
b(b(b(a(x1)))) |
→ |
b(c(b(c(x1)))) |
(13) |
|
a(b(b(a(x1)))) |
→ |
a(c(b(c(x1)))) |
(14) |
|
c(b(b(a(x1)))) |
→ |
c(c(b(c(x1)))) |
(15) |
|
b(a(c(c(x1)))) |
→ |
b(b(b(c(x1)))) |
(16) |
|
a(a(c(c(x1)))) |
→ |
a(b(b(c(x1)))) |
(17) |
|
c(a(c(c(x1)))) |
→ |
c(b(b(c(x1)))) |
(18) |
|
c(c(b(x1))) |
→ |
c(a(b(x1))) |
(12) |
|
b(b(c(c(x1)))) |
→ |
b(c(a(c(x1)))) |
(19) |
|
a(b(c(c(x1)))) |
→ |
a(c(a(c(x1)))) |
(20) |
|
c(b(c(c(x1)))) |
→ |
c(c(a(c(x1)))) |
(21) |
|
b(b(c(a(x1)))) |
→ |
b(a(b(c(x1)))) |
(22) |
|
a(b(c(a(x1)))) |
→ |
a(a(b(c(x1)))) |
(23) |
|
c(b(c(a(x1)))) |
→ |
c(a(b(c(x1)))) |
(24) |
1.1.1 Semantic Labeling
Root-labeling is applied.
We obtain the labeled TRS
|
ba(ac(cb(x1))) |
→ |
bc(ca(ab(x1))) |
(25) |
|
ba(ac(ca(x1))) |
→ |
bc(ca(aa(x1))) |
(26) |
|
ba(ac(cc(x1))) |
→ |
bc(ca(ac(x1))) |
(27) |
|
bb(bb(ba(ab(x1)))) |
→ |
bc(cb(bc(cb(x1)))) |
(28) |
|
bb(bb(ba(aa(x1)))) |
→ |
bc(cb(bc(ca(x1)))) |
(29) |
|
bb(bb(ba(ac(x1)))) |
→ |
bc(cb(bc(cc(x1)))) |
(30) |
|
ab(bb(ba(ab(x1)))) |
→ |
ac(cb(bc(cb(x1)))) |
(31) |
|
ab(bb(ba(aa(x1)))) |
→ |
ac(cb(bc(ca(x1)))) |
(32) |
|
ab(bb(ba(ac(x1)))) |
→ |
ac(cb(bc(cc(x1)))) |
(33) |
|
cb(bb(ba(ab(x1)))) |
→ |
cc(cb(bc(cb(x1)))) |
(34) |
|
cb(bb(ba(aa(x1)))) |
→ |
cc(cb(bc(ca(x1)))) |
(35) |
|
cb(bb(ba(ac(x1)))) |
→ |
cc(cb(bc(cc(x1)))) |
(36) |
|
ba(ac(cc(cb(x1)))) |
→ |
bb(bb(bc(cb(x1)))) |
(37) |
|
ba(ac(cc(ca(x1)))) |
→ |
bb(bb(bc(ca(x1)))) |
(38) |
|
ba(ac(cc(cc(x1)))) |
→ |
bb(bb(bc(cc(x1)))) |
(39) |
|
aa(ac(cc(cb(x1)))) |
→ |
ab(bb(bc(cb(x1)))) |
(40) |
|
aa(ac(cc(ca(x1)))) |
→ |
ab(bb(bc(ca(x1)))) |
(41) |
|
aa(ac(cc(cc(x1)))) |
→ |
ab(bb(bc(cc(x1)))) |
(42) |
|
ca(ac(cc(cb(x1)))) |
→ |
cb(bb(bc(cb(x1)))) |
(43) |
|
ca(ac(cc(ca(x1)))) |
→ |
cb(bb(bc(ca(x1)))) |
(44) |
|
ca(ac(cc(cc(x1)))) |
→ |
cb(bb(bc(cc(x1)))) |
(45) |
|
cc(cb(bb(x1))) |
→ |
ca(ab(bb(x1))) |
(46) |
|
cc(cb(ba(x1))) |
→ |
ca(ab(ba(x1))) |
(47) |
|
cc(cb(bc(x1))) |
→ |
ca(ab(bc(x1))) |
(48) |
|
bb(bc(cc(cb(x1)))) |
→ |
bc(ca(ac(cb(x1)))) |
(49) |
|
bb(bc(cc(ca(x1)))) |
→ |
bc(ca(ac(ca(x1)))) |
(50) |
|
bb(bc(cc(cc(x1)))) |
→ |
bc(ca(ac(cc(x1)))) |
(51) |
|
ab(bc(cc(cb(x1)))) |
→ |
ac(ca(ac(cb(x1)))) |
(52) |
|
ab(bc(cc(ca(x1)))) |
→ |
ac(ca(ac(ca(x1)))) |
(53) |
|
ab(bc(cc(cc(x1)))) |
→ |
ac(ca(ac(cc(x1)))) |
(54) |
|
cb(bc(cc(cb(x1)))) |
→ |
cc(ca(ac(cb(x1)))) |
(55) |
|
cb(bc(cc(ca(x1)))) |
→ |
cc(ca(ac(ca(x1)))) |
(56) |
|
cb(bc(cc(cc(x1)))) |
→ |
cc(ca(ac(cc(x1)))) |
(57) |
|
bb(bc(ca(ab(x1)))) |
→ |
ba(ab(bc(cb(x1)))) |
(58) |
|
bb(bc(ca(aa(x1)))) |
→ |
ba(ab(bc(ca(x1)))) |
(59) |
|
bb(bc(ca(ac(x1)))) |
→ |
ba(ab(bc(cc(x1)))) |
(60) |
|
ab(bc(ca(ab(x1)))) |
→ |
aa(ab(bc(cb(x1)))) |
(61) |
|
ab(bc(ca(aa(x1)))) |
→ |
aa(ab(bc(ca(x1)))) |
(62) |
|
ab(bc(ca(ac(x1)))) |
→ |
aa(ab(bc(cc(x1)))) |
(63) |
|
cb(bc(ca(ab(x1)))) |
→ |
ca(ab(bc(cb(x1)))) |
(64) |
|
cb(bc(ca(aa(x1)))) |
→ |
ca(ab(bc(ca(x1)))) |
(65) |
|
cb(bc(ca(ac(x1)))) |
→ |
ca(ab(bc(cc(x1)))) |
(66) |
1.1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
| [ba(x1)] |
= |
1 · x1
|
| [ac(x1)] |
= |
1 + 1 · x1
|
| [cb(x1)] |
= |
1 + 1 · x1
|
| [bc(x1)] |
= |
1 · x1
|
| [ca(x1)] |
= |
1 · x1
|
| [ab(x1)] |
= |
1 + 1 · x1
|
| [aa(x1)] |
= |
1 · x1
|
| [cc(x1)] |
= |
1 + 1 · x1
|
| [bb(x1)] |
= |
1 + 1 · x1
|
all of the following rules can be deleted.
|
ba(ac(cb(x1))) |
→ |
bc(ca(ab(x1))) |
(25) |
|
ba(ac(ca(x1))) |
→ |
bc(ca(aa(x1))) |
(26) |
|
ba(ac(cc(x1))) |
→ |
bc(ca(ac(x1))) |
(27) |
|
bb(bb(ba(ab(x1)))) |
→ |
bc(cb(bc(cb(x1)))) |
(28) |
|
bb(bb(ba(aa(x1)))) |
→ |
bc(cb(bc(ca(x1)))) |
(29) |
|
bb(bb(ba(ac(x1)))) |
→ |
bc(cb(bc(cc(x1)))) |
(30) |
|
cc(cb(bb(x1))) |
→ |
ca(ab(bb(x1))) |
(46) |
|
cc(cb(ba(x1))) |
→ |
ca(ab(ba(x1))) |
(47) |
|
cc(cb(bc(x1))) |
→ |
ca(ab(bc(x1))) |
(48) |
|
bb(bc(cc(cb(x1)))) |
→ |
bc(ca(ac(cb(x1)))) |
(49) |
|
bb(bc(cc(ca(x1)))) |
→ |
bc(ca(ac(ca(x1)))) |
(50) |
|
bb(bc(cc(cc(x1)))) |
→ |
bc(ca(ac(cc(x1)))) |
(51) |
1.1.1.1.1 Rule Removal
Using the
matrix interpretations of dimension 2 with strict dimension 1 over the integers
| [ab(x1)] |
= |
+ · x1
|
| [bb(x1)] |
= |
+ · x1
|
| [ba(x1)] |
= |
+ · x1
|
| [ac(x1)] |
= |
+ · x1
|
| [cb(x1)] |
= |
+ · x1
|
| [bc(x1)] |
= |
+ · x1
|
| [aa(x1)] |
= |
+ · x1
|
| [ca(x1)] |
= |
+ · x1
|
| [cc(x1)] |
= |
+ · x1
|
all of the following rules can be deleted.
|
ab(bb(ba(ab(x1)))) |
→ |
ac(cb(bc(cb(x1)))) |
(31) |
|
ab(bb(ba(aa(x1)))) |
→ |
ac(cb(bc(ca(x1)))) |
(32) |
|
ab(bb(ba(ac(x1)))) |
→ |
ac(cb(bc(cc(x1)))) |
(33) |
|
cb(bb(ba(ab(x1)))) |
→ |
cc(cb(bc(cb(x1)))) |
(34) |
|
cb(bb(ba(aa(x1)))) |
→ |
cc(cb(bc(ca(x1)))) |
(35) |
|
cb(bb(ba(ac(x1)))) |
→ |
cc(cb(bc(cc(x1)))) |
(36) |
|
ba(ac(cc(cb(x1)))) |
→ |
bb(bb(bc(cb(x1)))) |
(37) |
|
ba(ac(cc(ca(x1)))) |
→ |
bb(bb(bc(ca(x1)))) |
(38) |
|
ba(ac(cc(cc(x1)))) |
→ |
bb(bb(bc(cc(x1)))) |
(39) |
|
aa(ac(cc(cb(x1)))) |
→ |
ab(bb(bc(cb(x1)))) |
(40) |
|
aa(ac(cc(cc(x1)))) |
→ |
ab(bb(bc(cc(x1)))) |
(42) |
|
ca(ac(cc(cb(x1)))) |
→ |
cb(bb(bc(cb(x1)))) |
(43) |
|
ca(ac(cc(ca(x1)))) |
→ |
cb(bb(bc(ca(x1)))) |
(44) |
|
ca(ac(cc(cc(x1)))) |
→ |
cb(bb(bc(cc(x1)))) |
(45) |
1.1.1.1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
| [aa(x1)] |
= |
1 · x1
|
| [ac(x1)] |
= |
1 + 1 · x1
|
| [cc(x1)] |
= |
1 + 1 · x1
|
| [ca(x1)] |
= |
1 · x1
|
| [ab(x1)] |
= |
1 · x1
|
| [bb(x1)] |
= |
1 + 1 · x1
|
| [bc(x1)] |
= |
1 + 1 · x1
|
| [cb(x1)] |
= |
1 · x1
|
| [ba(x1)] |
= |
1 · x1
|
all of the following rules can be deleted.
|
bb(bc(ca(ab(x1)))) |
→ |
ba(ab(bc(cb(x1)))) |
(58) |
|
bb(bc(ca(aa(x1)))) |
→ |
ba(ab(bc(ca(x1)))) |
(59) |
|
bb(bc(ca(ac(x1)))) |
→ |
ba(ab(bc(cc(x1)))) |
(60) |
1.1.1.1.1.1.1 Rule Removal
Using the
Knuth Bendix order with w0 = 1 and the following precedence and weight functions
| prec(aa) |
= |
6 |
|
weight(aa) |
= |
1 |
|
|
|
| prec(ac) |
= |
5 |
|
weight(ac) |
= |
3 |
|
|
|
| prec(cc) |
= |
0 |
|
weight(cc) |
= |
4 |
|
|
|
| prec(ca) |
= |
1 |
|
weight(ca) |
= |
2 |
|
|
|
| prec(ab) |
= |
7 |
|
weight(ab) |
= |
2 |
|
|
|
| prec(bb) |
= |
4 |
|
weight(bb) |
= |
2 |
|
|
|
| prec(bc) |
= |
2 |
|
weight(bc) |
= |
2 |
|
|
|
| prec(cb) |
= |
3 |
|
weight(cb) |
= |
3 |
|
|
|
all of the following rules can be deleted.
|
aa(ac(cc(ca(x1)))) |
→ |
ab(bb(bc(ca(x1)))) |
(41) |
|
ab(bc(cc(cb(x1)))) |
→ |
ac(ca(ac(cb(x1)))) |
(52) |
|
ab(bc(cc(ca(x1)))) |
→ |
ac(ca(ac(ca(x1)))) |
(53) |
|
ab(bc(cc(cc(x1)))) |
→ |
ac(ca(ac(cc(x1)))) |
(54) |
|
cb(bc(cc(cb(x1)))) |
→ |
cc(ca(ac(cb(x1)))) |
(55) |
|
cb(bc(cc(ca(x1)))) |
→ |
cc(ca(ac(ca(x1)))) |
(56) |
|
cb(bc(cc(cc(x1)))) |
→ |
cc(ca(ac(cc(x1)))) |
(57) |
|
ab(bc(ca(ab(x1)))) |
→ |
aa(ab(bc(cb(x1)))) |
(61) |
|
ab(bc(ca(aa(x1)))) |
→ |
aa(ab(bc(ca(x1)))) |
(62) |
|
ab(bc(ca(ac(x1)))) |
→ |
aa(ab(bc(cc(x1)))) |
(63) |
|
cb(bc(ca(ab(x1)))) |
→ |
ca(ab(bc(cb(x1)))) |
(64) |
|
cb(bc(ca(aa(x1)))) |
→ |
ca(ab(bc(ca(x1)))) |
(65) |
|
cb(bc(ca(ac(x1)))) |
→ |
ca(ab(bc(cc(x1)))) |
(66) |
1.1.1.1.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.