Certification Problem
Input (TPDB TRS_Innermost/Transformed_CSR_innermost_04/PALINDROME_nosorts_iGM)
The rewrite relation of the following TRS is considered.
active(__(__(X,Y),Z)) |
→ |
mark(__(X,__(Y,Z))) |
(1) |
active(__(X,nil)) |
→ |
mark(X) |
(2) |
active(__(nil,X)) |
→ |
mark(X) |
(3) |
active(and(tt,X)) |
→ |
mark(X) |
(4) |
active(isNePal(__(I,__(P,I)))) |
→ |
mark(tt) |
(5) |
mark(__(X1,X2)) |
→ |
active(__(mark(X1),mark(X2))) |
(6) |
mark(nil) |
→ |
active(nil) |
(7) |
mark(and(X1,X2)) |
→ |
active(and(mark(X1),X2)) |
(8) |
mark(tt) |
→ |
active(tt) |
(9) |
mark(isNePal(X)) |
→ |
active(isNePal(mark(X))) |
(10) |
__(mark(X1),X2) |
→ |
__(X1,X2) |
(11) |
__(X1,mark(X2)) |
→ |
__(X1,X2) |
(12) |
__(active(X1),X2) |
→ |
__(X1,X2) |
(13) |
__(X1,active(X2)) |
→ |
__(X1,X2) |
(14) |
and(mark(X1),X2) |
→ |
and(X1,X2) |
(15) |
and(X1,mark(X2)) |
→ |
and(X1,X2) |
(16) |
and(active(X1),X2) |
→ |
and(X1,X2) |
(17) |
and(X1,active(X2)) |
→ |
and(X1,X2) |
(18) |
isNePal(mark(X)) |
→ |
isNePal(X) |
(19) |
isNePal(active(X)) |
→ |
isNePal(X) |
(20) |
The evaluation strategy is innermost.Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[active(x1)] |
= |
1 · x1
|
[__(x1, x2)] |
= |
1 · x1 + 1 · x2
|
[mark(x1)] |
= |
1 · x1
|
[nil] |
= |
0 |
[and(x1, x2)] |
= |
1 + 1 · x1 + 2 · x2
|
[tt] |
= |
0 |
[isNePal(x1)] |
= |
1 · x1
|
all of the following rules can be deleted.
active(and(tt,X)) |
→ |
mark(X) |
(4) |
1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[active(x1)] |
= |
1 · x1
|
[__(x1, x2)] |
= |
2 + 1 · x1 + 1 · x2
|
[mark(x1)] |
= |
1 · x1
|
[nil] |
= |
0 |
[isNePal(x1)] |
= |
1 · x1
|
[tt] |
= |
0 |
[and(x1, x2)] |
= |
2 · x1 + 2 · x2
|
all of the following rules can be deleted.
active(__(X,nil)) |
→ |
mark(X) |
(2) |
active(__(nil,X)) |
→ |
mark(X) |
(3) |
active(isNePal(__(I,__(P,I)))) |
→ |
mark(tt) |
(5) |
1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[active(x1)] |
= |
1 · x1
|
[__(x1, x2)] |
= |
2 + 2 · x1 + 1 · x2
|
[mark(x1)] |
= |
1 · x1
|
[nil] |
= |
0 |
[and(x1, x2)] |
= |
2 · x1 + 1 · x2
|
[tt] |
= |
0 |
[isNePal(x1)] |
= |
1 · x1
|
all of the following rules can be deleted.
active(__(__(X,Y),Z)) |
→ |
mark(__(X,__(Y,Z))) |
(1) |
1.1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[mark(x1)] |
= |
2 · x1
|
[__(x1, x2)] |
= |
2 + 1 · x1 + 2 · x2
|
[active(x1)] |
= |
2 + 1 · x1
|
[nil] |
= |
2 |
[and(x1, x2)] |
= |
2 + 2 · x1 + 1 · x2
|
[tt] |
= |
2 |
[isNePal(x1)] |
= |
2 + 2 · x1
|
all of the following rules can be deleted.
__(active(X1),X2) |
→ |
__(X1,X2) |
(13) |
__(X1,active(X2)) |
→ |
__(X1,X2) |
(14) |
and(active(X1),X2) |
→ |
and(X1,X2) |
(17) |
and(X1,active(X2)) |
→ |
and(X1,X2) |
(18) |
isNePal(active(X)) |
→ |
isNePal(X) |
(20) |
1.1.1.1.1 Rule Removal
Using the
linear polynomial interpretation over the naturals
[mark(x1)] |
= |
1 + 2 · x1
|
[__(x1, x2)] |
= |
2 + 1 · x1 + 1 · x2
|
[active(x1)] |
= |
1 · x1
|
[nil] |
= |
2 |
[and(x1, x2)] |
= |
1 + 1 · x1 + 1 · x2
|
[tt] |
= |
2 |
[isNePal(x1)] |
= |
1 + 1 · x1
|
all of the following rules can be deleted.
mark(__(X1,X2)) |
→ |
active(__(mark(X1),mark(X2))) |
(6) |
mark(nil) |
→ |
active(nil) |
(7) |
mark(and(X1,X2)) |
→ |
active(and(mark(X1),X2)) |
(8) |
mark(tt) |
→ |
active(tt) |
(9) |
mark(isNePal(X)) |
→ |
active(isNePal(mark(X))) |
(10) |
__(mark(X1),X2) |
→ |
__(X1,X2) |
(11) |
__(X1,mark(X2)) |
→ |
__(X1,X2) |
(12) |
and(mark(X1),X2) |
→ |
and(X1,X2) |
(15) |
and(X1,mark(X2)) |
→ |
and(X1,X2) |
(16) |
isNePal(mark(X)) |
→ |
isNePal(X) |
(19) |
1.1.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.