Certification Problem
Input (TPDB TRS_Standard/Transformed_CSR_04/MYNAT_nosorts_iGM)
The rewrite relation of the following TRS is considered.
active(and(tt,X)) |
→ |
mark(X) |
(1) |
active(plus(N,0)) |
→ |
mark(N) |
(2) |
active(plus(N,s(M))) |
→ |
mark(s(plus(N,M))) |
(3) |
active(x(N,0)) |
→ |
mark(0) |
(4) |
active(x(N,s(M))) |
→ |
mark(plus(x(N,M),N)) |
(5) |
mark(and(X1,X2)) |
→ |
active(and(mark(X1),X2)) |
(6) |
mark(tt) |
→ |
active(tt) |
(7) |
mark(plus(X1,X2)) |
→ |
active(plus(mark(X1),mark(X2))) |
(8) |
mark(0) |
→ |
active(0) |
(9) |
mark(s(X)) |
→ |
active(s(mark(X))) |
(10) |
mark(x(X1,X2)) |
→ |
active(x(mark(X1),mark(X2))) |
(11) |
and(mark(X1),X2) |
→ |
and(X1,X2) |
(12) |
and(X1,mark(X2)) |
→ |
and(X1,X2) |
(13) |
and(active(X1),X2) |
→ |
and(X1,X2) |
(14) |
and(X1,active(X2)) |
→ |
and(X1,X2) |
(15) |
plus(mark(X1),X2) |
→ |
plus(X1,X2) |
(16) |
plus(X1,mark(X2)) |
→ |
plus(X1,X2) |
(17) |
plus(active(X1),X2) |
→ |
plus(X1,X2) |
(18) |
plus(X1,active(X2)) |
→ |
plus(X1,X2) |
(19) |
s(mark(X)) |
→ |
s(X) |
(20) |
s(active(X)) |
→ |
s(X) |
(21) |
x(mark(X1),X2) |
→ |
x(X1,X2) |
(22) |
x(X1,mark(X2)) |
→ |
x(X1,X2) |
(23) |
x(active(X1),X2) |
→ |
x(X1,X2) |
(24) |
x(X1,active(X2)) |
→ |
x(X1,X2) |
(25) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 Rule Removal
Using the
prec(and) |
= |
0 |
|
stat(and) |
= |
mul
|
prec(tt) |
= |
1 |
|
stat(tt) |
= |
mul
|
prec(plus) |
= |
3 |
|
stat(plus) |
= |
mul
|
prec(0) |
= |
4 |
|
stat(0) |
= |
mul
|
prec(s) |
= |
2 |
|
stat(s) |
= |
mul
|
prec(x) |
= |
4 |
|
stat(x) |
= |
mul
|
π(active) |
= |
1 |
π(and) |
= |
[1,2] |
π(tt) |
= |
[] |
π(mark) |
= |
1 |
π(plus) |
= |
[1,2] |
π(0) |
= |
[] |
π(s) |
= |
[1] |
π(x) |
= |
[1,2] |
all of the following rules can be deleted.
active(and(tt,X)) |
→ |
mark(X) |
(1) |
active(plus(N,0)) |
→ |
mark(N) |
(2) |
active(plus(N,s(M))) |
→ |
mark(s(plus(N,M))) |
(3) |
active(x(N,0)) |
→ |
mark(0) |
(4) |
active(x(N,s(M))) |
→ |
mark(plus(x(N,M),N)) |
(5) |
1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[mark(x1)] |
= |
2 · x1
|
[and(x1, x2)] |
= |
2 + 2 · x1 + 2 · x2
|
[active(x1)] |
= |
2 + 1 · x1
|
[tt] |
= |
2 |
[plus(x1, x2)] |
= |
2 + 2 · x1 + 2 · x2
|
[0] |
= |
2 |
[s(x1)] |
= |
2 + 2 · x1
|
[x(x1, x2)] |
= |
2 + 2 · x1 + 1 · x2
|
all of the following rules can be deleted.
and(active(X1),X2) |
→ |
and(X1,X2) |
(14) |
and(X1,active(X2)) |
→ |
and(X1,X2) |
(15) |
plus(active(X1),X2) |
→ |
plus(X1,X2) |
(18) |
plus(X1,active(X2)) |
→ |
plus(X1,X2) |
(19) |
s(active(X)) |
→ |
s(X) |
(21) |
x(active(X1),X2) |
→ |
x(X1,X2) |
(24) |
x(X1,active(X2)) |
→ |
x(X1,X2) |
(25) |
1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[mark(x1)] |
= |
2 · x1
|
[and(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[active(x1)] |
= |
1 · x1
|
[tt] |
= |
1 |
[plus(x1, x2)] |
= |
1 + 2 · x1 + 1 · x2
|
[0] |
= |
1 |
[s(x1)] |
= |
2 · x1
|
[x(x1, x2)] |
= |
1 + 2 · x1 + 2 · x2
|
all of the following rules can be deleted.
mark(tt) |
→ |
active(tt) |
(7) |
mark(plus(X1,X2)) |
→ |
active(plus(mark(X1),mark(X2))) |
(8) |
mark(0) |
→ |
active(0) |
(9) |
mark(x(X1,X2)) |
→ |
active(x(mark(X1),mark(X2))) |
(11) |
1.1.1.1 Rule Removal
Using the
prec(mark) |
= |
3 |
|
stat(mark) |
= |
mul
|
prec(and) |
= |
3 |
|
stat(and) |
= |
mul
|
prec(active) |
= |
1 |
|
stat(active) |
= |
mul
|
prec(s) |
= |
2 |
|
stat(s) |
= |
mul
|
prec(plus) |
= |
0 |
|
stat(plus) |
= |
lex
|
prec(x) |
= |
0 |
|
stat(x) |
= |
lex
|
π(mark) |
= |
[1] |
π(and) |
= |
[1,2] |
π(active) |
= |
[1] |
π(s) |
= |
[1] |
π(plus) |
= |
[2,1] |
π(x) |
= |
[2,1] |
all of the following rules can be deleted.
mark(and(X1,X2)) |
→ |
active(and(mark(X1),X2)) |
(6) |
mark(s(X)) |
→ |
active(s(mark(X))) |
(10) |
and(mark(X1),X2) |
→ |
and(X1,X2) |
(12) |
and(X1,mark(X2)) |
→ |
and(X1,X2) |
(13) |
plus(mark(X1),X2) |
→ |
plus(X1,X2) |
(16) |
plus(X1,mark(X2)) |
→ |
plus(X1,X2) |
(17) |
s(mark(X)) |
→ |
s(X) |
(20) |
x(mark(X1),X2) |
→ |
x(X1,X2) |
(22) |
x(X1,mark(X2)) |
→ |
x(X1,X2) |
(23) |
1.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.