Certification Problem
Input (TPDB TRS_Equational/Mixed_C/AC45)
The rewrite relation of the following equational TRS is considered.
eq(0,0) |
→ |
true |
(1) |
eq(0,s(x)) |
→ |
false |
(2) |
eq(s(x),0) |
→ |
false |
(3) |
eq(s(x),s(y)) |
→ |
eq(x,y) |
(4) |
rm(n,nil) |
→ |
nil |
(5) |
rm(n,add(m,x)) |
→ |
if_rm(eq(n,m),n,add(m,x)) |
(6) |
if_rm(true,n,add(m,x)) |
→ |
rm(n,x) |
(7) |
if_rm(false,n,add(m,x)) |
→ |
add(m,rm(n,x)) |
(8) |
purge(nil) |
→ |
nil |
(9) |
purge(add(n,x)) |
→ |
add(n,purge(rm(n,x))) |
(10) |
Commutative symbols: eq
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 AC Dependency Pair Transformation
The following set of (strict) dependency pairs is constructed for the TRS.
eq#(s(x),s(y)) |
→ |
eq#(x,y) |
(13) |
rm#(n,add(m,x)) |
→ |
if_rm#(eq(n,m),n,add(m,x)) |
(14) |
rm#(n,add(m,x)) |
→ |
eq#(n,m) |
(15) |
if_rm#(true,n,add(m,x)) |
→ |
rm#(n,x) |
(16) |
if_rm#(false,n,add(m,x)) |
→ |
rm#(n,x) |
(17) |
purge#(add(n,x)) |
→ |
purge#(rm(n,x)) |
(18) |
purge#(add(n,x)) |
→ |
rm#(n,x) |
(19) |
The extended rules of the TRS
There are no rules.
give rise to even more dependency pairs (by sharping the root symbols of each rule).
Finiteness for all DPs in combination with the equational DPs is proven as follows.
1.1 Dependency Graph Processor
The dependency pairs are split into 3
components.
-
The
1st
component contains the
pair
purge#(add(n,x)) |
→ |
purge#(rm(n,x)) |
(18) |
1.1.1 AC Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[purge#(x1)] |
= |
2 · x1
|
[add(x1, x2)] |
= |
1 + 3 · x2
|
[rm(x1, x2)] |
= |
2 · x2
|
[eq(x1, x2)] |
= |
0 |
[0] |
= |
0 |
[s(x1)] |
= |
0 |
[false] |
= |
0 |
[true] |
= |
0 |
[nil] |
= |
0 |
[if_rm(x1, x2, x3)] |
= |
2 · x3
|
together with the usable
rules
rm(n,nil) |
→ |
nil |
(5) |
rm(n,add(m,x)) |
→ |
if_rm(eq(n,m),n,add(m,x)) |
(6) |
if_rm(true,n,add(m,x)) |
→ |
rm(n,x) |
(7) |
if_rm(false,n,add(m,x)) |
→ |
add(m,rm(n,x)) |
(8) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
purge#(add(n,x)) |
→ |
purge#(rm(n,x)) |
(18) |
could be deleted.
1.1.1.1 AC Dependency Pair Problem is trivial
There are no strict pairs and rules remaining, or there are no DPs remaining. Therefore, finiteness is trivially satisfied.
-
The
2nd
component contains the
pair
rm#(n,add(m,x)) |
→ |
if_rm#(eq(n,m),n,add(m,x)) |
(14) |
if_rm#(true,n,add(m,x)) |
→ |
rm#(n,x) |
(16) |
if_rm#(false,n,add(m,x)) |
→ |
rm#(n,x) |
(17) |
1.1.2 AC Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[if_rm#(x1, x2, x3)] |
= |
3 · x2 + 2 · x3
|
[true] |
= |
0 |
[add(x1, x2)] |
= |
2 + 1 · x2
|
[rm#(x1, x2)] |
= |
3 + 3 · x1 + 2 · x2
|
[eq(x1, x2)] |
= |
0 |
[false] |
= |
0 |
[0] |
= |
0 |
[s(x1)] |
= |
0 |
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
pairs
if_rm#(true,n,add(m,x)) |
→ |
rm#(n,x) |
(16) |
rm#(n,add(m,x)) |
→ |
if_rm#(eq(n,m),n,add(m,x)) |
(14) |
if_rm#(false,n,add(m,x)) |
→ |
rm#(n,x) |
(17) |
could be deleted.
1.1.2.1 AC Dependency Pair Problem is trivial
There are no strict pairs and rules remaining, or there are no DPs remaining. Therefore, finiteness is trivially satisfied.
-
The
3rd
component contains the
pair
eq#(x,y) |
→ |
eq#(y,x) |
(12) |
eq#(s(x),s(y)) |
→ |
eq#(x,y) |
(13) |
1.1.3 AC Monotonic Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[eq#(x1, x2)] |
= |
3 · x1 + 3 · x2
|
[s(x1)] |
= |
3 · x1
|
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
pair
eq#(s(x),s(y)) |
→ |
eq#(x,y) |
(13) |
and
the
rules
eq(0,0) |
→ |
true |
(1) |
eq(0,s(x)) |
→ |
false |
(2) |
eq(s(x),0) |
→ |
false |
(3) |
eq(s(x),s(y)) |
→ |
eq(x,y) |
(4) |
rm(n,nil) |
→ |
nil |
(5) |
rm(n,add(m,x)) |
→ |
if_rm(eq(n,m),n,add(m,x)) |
(6) |
if_rm(true,n,add(m,x)) |
→ |
rm(n,x) |
(7) |
if_rm(false,n,add(m,x)) |
→ |
add(m,rm(n,x)) |
(8) |
purge(nil) |
→ |
nil |
(9) |
purge(add(n,x)) |
→ |
add(n,purge(rm(n,x))) |
(10) |
could be deleted.
1.1.3.1 AC Dependency Pair Problem is trivial
There are no strict pairs and rules remaining, or there are no DPs remaining. Therefore, finiteness is trivially satisfied.