Certification Problem
Input (TPDB TRS_Standard/Secret_07_TRS/secret4)
The rewrite relation of the following TRS is considered.
a(h,h,h,x) |
→ |
s(x) |
(1) |
a(l,x,s(y),h) |
→ |
a(l,x,y,s(h)) |
(2) |
a(l,x,s(y),s(z)) |
→ |
a(l,x,y,a(l,x,s(y),z)) |
(3) |
a(l,s(x),h,z) |
→ |
a(l,x,z,z) |
(4) |
a(s(l),h,h,z) |
→ |
a(l,z,h,z) |
(5) |
+(x,h) |
→ |
x |
(6) |
+(h,x) |
→ |
x |
(7) |
+(s(x),s(y)) |
→ |
s(s(+(x,y))) |
(8) |
+(+(x,y),z) |
→ |
+(x,+(y,z)) |
(9) |
s(h) |
→ |
1 |
(10) |
app(nil,k) |
→ |
k |
(11) |
app(l,nil) |
→ |
l |
(12) |
app(cons(x,l),k) |
→ |
cons(x,app(l,k)) |
(13) |
sum(cons(x,nil)) |
→ |
cons(x,nil) |
(14) |
sum(cons(x,cons(y,l))) |
→ |
sum(cons(a(x,y,h,h),l)) |
(15) |
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.
a#(l,x,s(y),h) |
→ |
s#(h) |
(16) |
a#(s(l),h,h,z) |
→ |
a#(l,z,h,z) |
(17) |
sum#(cons(x,cons(y,l))) |
→ |
sum#(cons(a(x,y,h,h),l)) |
(18) |
a#(h,h,h,x) |
→ |
s#(x) |
(19) |
+#(s(x),s(y)) |
→ |
s#(+(x,y)) |
(20) |
+#(s(x),s(y)) |
→ |
+#(x,y) |
(21) |
sum#(cons(x,cons(y,l))) |
→ |
a#(x,y,h,h) |
(22) |
a#(l,x,s(y),s(z)) |
→ |
a#(l,x,y,a(l,x,s(y),z)) |
(23) |
+#(s(x),s(y)) |
→ |
s#(s(+(x,y))) |
(24) |
+#(+(x,y),z) |
→ |
+#(y,z) |
(25) |
app#(cons(x,l),k) |
→ |
app#(l,k) |
(26) |
a#(l,x,s(y),h) |
→ |
a#(l,x,y,s(h)) |
(27) |
a#(l,x,s(y),s(z)) |
→ |
a#(l,x,s(y),z) |
(28) |
a#(l,s(x),h,z) |
→ |
a#(l,x,z,z) |
(29) |
+#(+(x,y),z) |
→ |
+#(x,+(y,z)) |
(30) |
1.1 Dependency Graph Processor
The dependency pairs are split into 4
components.
-
The
1st
component contains the
pair
app#(cons(x,l),k) |
→ |
app#(l,k) |
(26) |
1.1.1 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[a(x1,...,x4)] |
=
|
0 |
[h] |
=
|
0 |
[1] |
=
|
0 |
[s(x1)] |
=
|
0 |
[sum(x1)] |
=
|
0 |
[s#(x1)] |
=
|
0 |
[nil] |
=
|
0 |
[app#(x1, x2)] |
=
|
x1 + 0 |
[cons(x1, x2)] |
=
|
x2 + 1 |
[a#(x1,...,x4)] |
=
|
0 |
[+(x1, x2)] |
=
|
0 |
[sum#(x1)] |
=
|
0 |
[+#(x1, x2)] |
=
|
0 |
[app(x1, x2)] |
=
|
0 |
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
pair
app#(cons(x,l),k) |
→ |
app#(l,k) |
(26) |
could be deleted.
1.1.1.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
2nd
component contains the
pair
sum#(cons(x,cons(y,l))) |
→ |
sum#(cons(a(x,y,h,h),l)) |
(18) |
1.1.2 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[a(x1,...,x4)] |
=
|
x1 + x3 + x4 + 2 |
[h] |
=
|
1 |
[1] |
=
|
3 |
[s(x1)] |
=
|
x1 + 1 |
[sum(x1)] |
=
|
0 |
[s#(x1)] |
=
|
0 |
[nil] |
=
|
0 |
[app#(x1, x2)] |
=
|
0 |
[cons(x1, x2)] |
=
|
x2 + 1 |
[a#(x1,...,x4)] |
=
|
0 |
[+(x1, x2)] |
=
|
0 |
[sum#(x1)] |
=
|
x1 + 0 |
[+#(x1, x2)] |
=
|
0 |
[app(x1, x2)] |
=
|
0 |
having no usable rules (w.r.t. the implicit argument filter of the
reduction pair),
the
pair
sum#(cons(x,cons(y,l))) |
→ |
sum#(cons(a(x,y,h,h),l)) |
(18) |
could be deleted.
1.1.2.1 Dependency Graph Processor
The dependency pairs are split into 0
components.
-
The
3rd
component contains the
pair
+#(+(x,y),z) |
→ |
+#(x,+(y,z)) |
(30) |
+#(s(x),s(y)) |
→ |
+#(x,y) |
(21) |
+#(+(x,y),z) |
→ |
+#(y,z) |
(25) |
1.1.3 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[a(x1,...,x4)] |
=
|
x1 + x3 + x4 + 2 |
[h] |
=
|
1 |
[1] |
=
|
2 |
[s(x1)] |
=
|
x1 + 1 |
[sum(x1)] |
=
|
0 |
[s#(x1)] |
=
|
0 |
[nil] |
=
|
0 |
[app#(x1, x2)] |
=
|
0 |
[cons(x1, x2)] |
=
|
1 |
[a#(x1,...,x4)] |
=
|
0 |
[+(x1, x2)] |
=
|
x1 + x2 + 1 |
[sum#(x1)] |
=
|
x1 + 0 |
[+#(x1, x2)] |
=
|
x1 + x2 + 0 |
[app(x1, x2)] |
=
|
0 |
together with the usable
rules
+(s(x),s(y)) |
→ |
s(s(+(x,y))) |
(8) |
s(h) |
→ |
1 |
(10) |
+(h,x) |
→ |
x |
(7) |
+(+(x,y),z) |
→ |
+(x,+(y,z)) |
(9) |
+(x,h) |
→ |
x |
(6) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
+#(s(x),s(y)) |
→ |
+#(x,y) |
(21) |
+#(+(x,y),z) |
→ |
+#(y,z) |
(25) |
could be deleted.
1.1.3.1 Dependency Graph Processor
The dependency pairs are split into 1
component.
-
The
4th
component contains the
pair
a#(l,s(x),h,z) |
→ |
a#(l,x,z,z) |
(29) |
a#(l,x,s(y),s(z)) |
→ |
a#(l,x,s(y),z) |
(28) |
a#(l,x,s(y),h) |
→ |
a#(l,x,y,s(h)) |
(27) |
a#(s(l),h,h,z) |
→ |
a#(l,z,h,z) |
(17) |
a#(l,x,s(y),s(z)) |
→ |
a#(l,x,y,a(l,x,s(y),z)) |
(23) |
1.1.4 Reduction Pair Processor with Usable Rules
Using the Max-polynomial interpretation
[a(x1,...,x4)] |
=
|
x1 + x3 + x4 + 2 |
[h] |
=
|
1 |
[1] |
=
|
3 |
[s(x1)] |
=
|
x1 + 1 |
[sum(x1)] |
=
|
0 |
[s#(x1)] |
=
|
0 |
[nil] |
=
|
0 |
[app#(x1, x2)] |
=
|
0 |
[cons(x1, x2)] |
=
|
1 |
[a#(x1,...,x4)] |
=
|
x1 + 0 |
[+(x1, x2)] |
=
|
x1 + x2 + 1 |
[sum#(x1)] |
=
|
x1 + 0 |
[+#(x1, x2)] |
=
|
0 |
[app(x1, x2)] |
=
|
0 |
together with the usable
rules
+(h,x) |
→ |
x |
(7) |
+(x,h) |
→ |
x |
(6) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
a#(s(l),h,h,z) |
→ |
a#(l,z,h,z) |
(17) |
could be deleted.
1.1.4.1 Dependency Graph Processor
The dependency pairs are split into 1
component.