Certification Problem

Input (TPDB TRS_Standard/CiME_04/list-sum-prod-bin-assoc)

The rewrite relation of the following TRS is considered.

0(#) # (1)
+(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)
*(#,x) # (9)
*(0(x),y) 0(*(x,y)) (10)
*(1(x),y) +(0(*(x,y)),y) (11)
*(*(x,y),z) *(x,*(y,z)) (12)
sum(nil) 0(#) (13)
sum(cons(x,l)) +(x,sum(l)) (14)
prod(nil) 1(#) (15)
prod(cons(x,l)) *(x,prod(l)) (16)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by ttt2 @ termCOMP 2023)

1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
+#(0(x),0(y)) +#(x,y) (17)
+#(0(x),0(y)) 0#(+(x,y)) (18)
+#(0(x),1(y)) +#(x,y) (19)
+#(1(x),0(y)) +#(x,y) (20)
+#(1(x),1(y)) +#(x,y) (21)
+#(1(x),1(y)) +#(+(x,y),1(#)) (22)
+#(1(x),1(y)) 0#(+(+(x,y),1(#))) (23)
+#(+(x,y),z) +#(y,z) (24)
+#(+(x,y),z) +#(x,+(y,z)) (25)
*#(0(x),y) *#(x,y) (26)
*#(0(x),y) 0#(*(x,y)) (27)
*#(1(x),y) *#(x,y) (28)
*#(1(x),y) 0#(*(x,y)) (29)
*#(1(x),y) +#(0(*(x,y)),y) (30)
*#(*(x,y),z) *#(y,z) (31)
*#(*(x,y),z) *#(x,*(y,z)) (32)
sum#(nil) 0#(#) (33)
sum#(cons(x,l)) sum#(l) (34)
sum#(cons(x,l)) +#(x,sum(l)) (35)
prod#(cons(x,l)) prod#(l) (36)
prod#(cons(x,l)) *#(x,prod(l)) (37)

1.1 Dependency Graph Processor

The dependency pairs are split into 4 components.