Certification Problem

Input (TPDB TRS_Standard/AProVE_07/wiehe02)

The rewrite relation of the following TRS is considered.

app(nil,k) k (1)
app(l,nil) l (2)
app(cons(x,l),k) cons(x,app(l,k)) (3)
sum(cons(x,nil)) cons(x,nil) (4)
sum(cons(x,cons(y,l))) sum(cons(plus(x,y),l)) (5)
sum(app(l,cons(x,cons(y,k)))) sum(app(l,sum(cons(x,cons(y,k))))) (6)
plus(s(x),s(y)) s(s(plus(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))))) (7)
plus(s(x),x) plus(if(gt(x,x),id(x),id(x)),s(x)) (8)
plus(zero,y) y (9)
plus(id(x),s(y)) s(plus(x,if(gt(s(y),y),y,s(y)))) (10)
id(x) x (11)
if(true,x,y) x (12)
if(false,x,y) y (13)
not(x) if(x,false,true) (14)
gt(s(x),zero) true (15)
gt(zero,y) false (16)
gt(s(x),s(y)) gt(x,y) (17)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
app#(cons(x,l),k) app#(l,k) (18)
sum#(cons(x,cons(y,l))) sum#(cons(plus(x,y),l)) (19)
sum#(cons(x,cons(y,l))) plus#(x,y) (20)
sum#(app(l,cons(x,cons(y,k)))) sum#(app(l,sum(cons(x,cons(y,k))))) (21)
sum#(app(l,cons(x,cons(y,k)))) app#(l,sum(cons(x,cons(y,k)))) (22)
sum#(app(l,cons(x,cons(y,k)))) sum#(cons(x,cons(y,k))) (23)
plus#(s(x),s(y)) plus#(if(gt(x,y),x,y),if(not(gt(x,y)),id(x),id(y))) (24)
plus#(s(x),s(y)) if#(gt(x,y),x,y) (25)
plus#(s(x),s(y)) gt#(x,y) (26)
plus#(s(x),s(y)) if#(not(gt(x,y)),id(x),id(y)) (27)
plus#(s(x),s(y)) not#(gt(x,y)) (28)
plus#(s(x),s(y)) id#(x) (29)
plus#(s(x),s(y)) id#(y) (30)
plus#(s(x),x) plus#(if(gt(x,x),id(x),id(x)),s(x)) (31)
plus#(s(x),x) if#(gt(x,x),id(x),id(x)) (32)
plus#(s(x),x) gt#(x,x) (33)
plus#(s(x),x) id#(x) (34)
plus#(id(x),s(y)) plus#(x,if(gt(s(y),y),y,s(y))) (35)
plus#(id(x),s(y)) if#(gt(s(y),y),y,s(y)) (36)
plus#(id(x),s(y)) gt#(s(y),y) (37)
not#(x) if#(x,false,true) (38)
gt#(s(x),s(y)) gt#(x,y) (39)

1.1 Dependency Graph Processor

The dependency pairs are split into 5 components.