Certification Problem
Input (TPDB TRS_Standard/CiME_04/list-sum-prod-assoc)
The rewrite relation of the following TRS is considered.
+(x,0) |
→ |
x |
(1) |
+(0,x) |
→ |
x |
(2) |
+(s(x),s(y)) |
→ |
s(s(+(x,y))) |
(3) |
+(+(x,y),z) |
→ |
+(x,+(y,z)) |
(4) |
*(x,0) |
→ |
0 |
(5) |
*(0,x) |
→ |
0 |
(6) |
*(s(x),s(y)) |
→ |
s(+(*(x,y),+(x,y))) |
(7) |
*(*(x,y),z) |
→ |
*(x,*(y,z)) |
(8) |
sum(nil) |
→ |
0 |
(9) |
sum(cons(x,l)) |
→ |
+(x,sum(l)) |
(10) |
prod(nil) |
→ |
s(0) |
(11) |
prod(cons(x,l)) |
→ |
*(x,prod(l)) |
(12) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by NaTT @ termCOMP 2023)
1 Dependency Pair Transformation
The following set of initial dependency pairs has been identified.
prod#(cons(x,l)) |
→ |
prod#(l) |
(13) |
sum#(cons(x,l)) |
→ |
+#(x,sum(l)) |
(14) |
*#(*(x,y),z) |
→ |
*#(x,*(y,z)) |
(15) |
+#(+(x,y),z) |
→ |
+#(x,+(y,z)) |
(16) |
+#(+(x,y),z) |
→ |
+#(y,z) |
(17) |
sum#(cons(x,l)) |
→ |
sum#(l) |
(18) |
*#(*(x,y),z) |
→ |
*#(y,z) |
(19) |
*#(s(x),s(y)) |
→ |
+#(x,y) |
(20) |
*#(s(x),s(y)) |
→ |
+#(*(x,y),+(x,y)) |
(21) |
prod#(cons(x,l)) |
→ |
*#(x,prod(l)) |
(22) |
+#(s(x),s(y)) |
→ |
+#(x,y) |
(23) |
*#(s(x),s(y)) |
→ |
*#(x,y) |
(24) |
1.1 Dependency Graph Processor
The dependency pairs are split into 4
components.
-
The
1st
component contains the
pair
sum#(cons(x,l)) |
→ |
sum#(l) |
(18) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[prod(x1)] |
=
|
0 |
[s(x1)] |
=
|
0 |
[prod#(x1)] |
=
|
0 |
[*#(x1, x2)] |
=
|
0 |
[sum(x1)] |
=
|
0 |
[0] |
=
|
0 |
[nil] |
=
|
0 |
[cons(x1, x2)] |
=
|
x2 + 1 |
[+(x1, x2)] |
=
|
0 |
[sum#(x1)] |
=
|
x1 + 0 |
[+#(x1, x2)] |
=
|
0 |
[*(x1, x2)] |
=
|
0 |
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
pair
sum#(cons(x,l)) |
→ |
sum#(l) |
(18) |
could be deleted.
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
2nd
component contains the
pair
prod#(cons(x,l)) |
→ |
prod#(l) |
(13) |
1.1.2 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[prod(x1)] |
=
|
0 |
[s(x1)] |
=
|
0 |
[prod#(x1)] |
=
|
x1 + 0 |
[*#(x1, x2)] |
=
|
0 |
[sum(x1)] |
=
|
0 |
[0] |
=
|
0 |
[nil] |
=
|
0 |
[cons(x1, x2)] |
=
|
x2 + 1 |
[+(x1, x2)] |
=
|
0 |
[sum#(x1)] |
=
|
0 |
[+#(x1, x2)] |
=
|
0 |
[*(x1, x2)] |
=
|
0 |
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
pair
prod#(cons(x,l)) |
→ |
prod#(l) |
(13) |
could be deleted.
1.1.2.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
3rd
component contains the
pair
*#(s(x),s(y)) |
→ |
*#(x,y) |
(24) |
*#(*(x,y),z) |
→ |
*#(x,*(y,z)) |
(15) |
*#(*(x,y),z) |
→ |
*#(y,z) |
(19) |
1.1.3 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[prod(x1)] |
=
|
0 |
[s(x1)] |
=
|
x1 + 1 |
[prod#(x1)] |
=
|
0 |
[*#(x1, x2)] |
=
|
x1 + 0 |
[sum(x1)] |
=
|
0 |
[0] |
=
|
1 |
[nil] |
=
|
0 |
[cons(x1, x2)] |
=
|
1 |
[+(x1, x2)] |
=
|
x1 + x2 + 1 |
[sum#(x1)] |
=
|
0 |
[+#(x1, x2)] |
=
|
0 |
[*(x1, x2)] |
=
|
x1 + x2 + 2438 |
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
pairs
*#(s(x),s(y)) |
→ |
*#(x,y) |
(24) |
*#(*(x,y),z) |
→ |
*#(x,*(y,z)) |
(15) |
*#(*(x,y),z) |
→ |
*#(y,z) |
(19) |
could be deleted.
1.1.3.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
4th
component contains the
pair
+#(+(x,y),z) |
→ |
+#(y,z) |
(17) |
+#(s(x),s(y)) |
→ |
+#(x,y) |
(23) |
+#(+(x,y),z) |
→ |
+#(x,+(y,z)) |
(16) |
1.1.4 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[prod(x1)] |
=
|
0 |
[s(x1)] |
=
|
x1 + 1 |
[prod#(x1)] |
=
|
0 |
[*#(x1, x2)] |
=
|
0 |
[sum(x1)] |
=
|
0 |
[0] |
=
|
42736 |
[nil] |
=
|
0 |
[cons(x1, x2)] |
=
|
1 |
[+(x1, x2)] |
=
|
x1 + x2 + 1 |
[sum#(x1)] |
=
|
0 |
[+#(x1, x2)] |
=
|
x1 + 0 |
[*(x1, x2)] |
=
|
x1 + x2 + 1 |
together with the usable
rules
+(+(x,y),z) |
→ |
+(x,+(y,z)) |
(4) |
+(x,0) |
→ |
x |
(1) |
+(s(x),s(y)) |
→ |
s(s(+(x,y))) |
(3) |
+(0,x) |
→ |
x |
(2) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
+#(+(x,y),z) |
→ |
+#(y,z) |
(17) |
+#(s(x),s(y)) |
→ |
+#(x,y) |
(23) |
+#(+(x,y),z) |
→ |
+#(x,+(y,z)) |
(16) |
could be deleted.
1.1.4.1 Dependency Graph Processor
The dependency pairs are split into 0
components.