The rewrite relation of the following TRS is considered.
The dependency pairs are split into 4
components.
-
The
1st
component contains the
pair
sum#(cons(x,l)) |
→ |
sum#(l) |
(34) |
1.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
sum#(cons(x,l)) |
→ |
sum#(l) |
(34) |
|
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
-
The
2nd
component contains the
pair
prod#(cons(x,l)) |
→ |
prod#(l) |
(36) |
1.1.2 Subterm Criterion Processor
We use the projection
and remove the pairs:
prod#(cons(x,l)) |
→ |
prod#(l) |
(36) |
1.1.2.1 P is empty
There are no pairs anymore.
-
The
3rd
component contains the
pair
*#(*(x,y),z) |
→ |
*#(x,*(y,z)) |
(32) |
*#(*(x,y),z) |
→ |
*#(y,z) |
(31) |
*#(1(x),y) |
→ |
*#(x,y) |
(28) |
*#(0(x),y) |
→ |
*#(x,y) |
(26) |
1.1.3 Subterm Criterion Processor
We use the projection
and remove the pairs:
*#(*(x,y),z) |
→ |
*#(x,*(y,z)) |
(32) |
*#(*(x,y),z) |
→ |
*#(y,z) |
(31) |
*#(1(x),y) |
→ |
*#(x,y) |
(28) |
*#(0(x),y) |
→ |
*#(x,y) |
(26) |
1.1.3.1 P is empty
There are no pairs anymore.
-
The
4th
component contains the
pair
+#(0(x),1(y)) |
→ |
+#(x,y) |
(19) |
+#(+(x,y),z) |
→ |
+#(x,+(y,z)) |
(25) |
+#(+(x,y),z) |
→ |
+#(y,z) |
(24) |
+#(1(x),1(y)) |
→ |
+#(+(x,y),1(#)) |
(22) |
+#(1(x),1(y)) |
→ |
+#(x,y) |
(21) |
+#(1(x),0(y)) |
→ |
+#(x,y) |
(20) |
+#(0(x),0(y)) |
→ |
+#(x,y) |
(17) |
1.1.4 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the naturals
[0(x1)] |
= |
1 · x1 + 0 |
[1(x1)] |
= |
1 · x1 + 1 |
[+#(x1, x2)] |
= |
1 · x1 + 1 · x2 + 0 |
[#] |
= |
1 |
[+(x1, x2)] |
= |
1 · x1 + 1 · x2 + 0 |
together with the usable
rules
+(x,#) |
→ |
x |
(2) |
+(#,x) |
→ |
x |
(3) |
+(0(x),0(y)) |
→ |
0(+(x,y)) |
(4) |
+(0(x),1(y)) |
→ |
1(+(x,y)) |
(5) |
+(1(x),0(y)) |
→ |
1(+(x,y)) |
(6) |
+(1(x),1(y)) |
→ |
0(+(+(x,y),1(#))) |
(7) |
+(+(x,y),z) |
→ |
+(x,+(y,z)) |
(8) |
0(#) |
→ |
# |
(1) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pairs
+#(0(x),1(y)) |
→ |
+#(x,y) |
(19) |
+#(1(x),1(y)) |
→ |
+#(x,y) |
(21) |
+#(1(x),0(y)) |
→ |
+#(x,y) |
(20) |
could be deleted.
1.1.4.1 Reduction Pair Processor with Usable Rules
Using the linear polynomial interpretation over the rationals with delta = 1/64
[0(x1)] |
= |
1 · x1 + 0 |
[1(x1)] |
= |
1 · x1 + 1/2 |
[+#(x1, x2)] |
= |
1 · x1 + 1 · x2 + 1/2 |
[#] |
= |
0 |
[+(x1, x2)] |
= |
1 · x1 + 1 · x2 + 0 |
together with the usable
rules
+(x,#) |
→ |
x |
(2) |
+(#,x) |
→ |
x |
(3) |
+(0(x),0(y)) |
→ |
0(+(x,y)) |
(4) |
+(0(x),1(y)) |
→ |
1(+(x,y)) |
(5) |
+(1(x),0(y)) |
→ |
1(+(x,y)) |
(6) |
+(1(x),1(y)) |
→ |
0(+(+(x,y),1(#))) |
(7) |
+(+(x,y),z) |
→ |
+(x,+(y,z)) |
(8) |
0(#) |
→ |
# |
(1) |
(w.r.t. the implicit argument filter of the reduction pair),
the
pair
+#(1(x),1(y)) |
→ |
+#(+(x,y),1(#)) |
(22) |
could be deleted.
1.1.4.1.1 Size-Change Termination
Using size-change termination in combination with
the subterm criterion
one obtains the following initial size-change graphs.
+#(+(x,y),z) |
→ |
+#(x,+(y,z)) |
(25) |
|
1 |
> |
1 |
+#(+(x,y),z) |
→ |
+#(y,z) |
(24) |
|
2 |
≥ |
2 |
1 |
> |
1 |
+#(0(x),0(y)) |
→ |
+#(x,y) |
(17) |
|
2 |
> |
2 |
1 |
> |
1 |
As there is no critical graph in the transitive closure, there are no infinite chains.