Certification Problem
Input (TPDB TRS_Standard/Transformed_CSR_04/Ex15_Luc06_iGM)
The rewrite relation of the following TRS is considered.
active(f(f(a))) |
→ |
mark(f(g(f(a)))) |
(1) |
mark(f(X)) |
→ |
active(f(X)) |
(2) |
mark(a) |
→ |
active(a) |
(3) |
mark(g(X)) |
→ |
active(g(mark(X))) |
(4) |
f(mark(X)) |
→ |
f(X) |
(5) |
f(active(X)) |
→ |
f(X) |
(6) |
g(mark(X)) |
→ |
g(X) |
(7) |
g(active(X)) |
→ |
g(X) |
(8) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by ttt2 @ termCOMP 2023)
1 Rule Removal
Using the
linear polynomial interpretation over (3 x 3)-matrices with strict dimension 1
over the naturals
[mark(x1)] |
= |
· x1 +
|
[f(x1)] |
= |
· x1 +
|
[g(x1)] |
= |
· x1 +
|
[a] |
= |
|
[active(x1)] |
= |
· x1 +
|
all of the following rules can be deleted.
f(mark(X)) |
→ |
f(X) |
(5) |
f(active(X)) |
→ |
f(X) |
(6) |
1.1 Rule Removal
Using the
linear polynomial interpretation over (3 x 3)-matrices with strict dimension 1
over the naturals
[mark(x1)] |
= |
· x1 +
|
[f(x1)] |
= |
· x1 +
|
[g(x1)] |
= |
· x1 +
|
[a] |
= |
|
[active(x1)] |
= |
· x1 +
|
all of the following rules can be deleted.
1.1.1 Rule Removal
Using the
linear polynomial interpretation over (3 x 3)-matrices with strict dimension 1
over the naturals
[mark(x1)] |
= |
· x1 +
|
[f(x1)] |
= |
· x1 +
|
[g(x1)] |
= |
· x1 +
|
[a] |
= |
|
[active(x1)] |
= |
· x1 +
|
all of the following rules can be deleted.
active(f(f(a))) |
→ |
mark(f(g(f(a)))) |
(1) |
mark(g(X)) |
→ |
active(g(mark(X))) |
(4) |
1.1.1.1 Rule Removal
Using the
Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(mark) |
= |
5 |
|
weight(mark) |
= |
2 |
|
|
|
prec(g) |
= |
2 |
|
weight(g) |
= |
2 |
|
|
|
prec(active) |
= |
4 |
|
weight(active) |
= |
2 |
|
|
|
prec(f) |
= |
0 |
|
weight(f) |
= |
1 |
|
|
|
prec(a) |
= |
1 |
|
weight(a) |
= |
1 |
|
|
|
all of the following rules can be deleted.
mark(f(X)) |
→ |
active(f(X)) |
(2) |
mark(a) |
→ |
active(a) |
(3) |
g(active(X)) |
→ |
g(X) |
(8) |
1.1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.