Certification Problem

Input (TPDB TRS_Standard/Applicative_05/TreeSize)

The rewrite relation of the following TRS is considered.

app(app(map,f),nil) nil (1)
app(app(map,f),app(app(cons,x),xs)) app(app(cons,app(f,x)),app(app(map,f),xs)) (2)
app(sum,app(app(cons,x),xs)) app(app(plus,x),app(sum,xs)) (3)
app(size,app(app(node,x),xs)) app(s,app(sum,app(app(map,size),xs))) (4)
app(app(plus,0),x) 0 (5)
app(app(plus,app(s,x)),y) app(s,app(app(plus,x),y)) (6)

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.
app#(app(map,f),app(app(cons,x),xs)) app#(app(map,f),xs) (7)
app#(app(map,f),app(app(cons,x),xs)) app#(f,x) (8)
app#(app(map,f),app(app(cons,x),xs)) app#(cons,app(f,x)) (9)
app#(app(map,f),app(app(cons,x),xs)) app#(app(cons,app(f,x)),app(app(map,f),xs)) (10)
app#(sum,app(app(cons,x),xs)) app#(sum,xs) (11)
app#(sum,app(app(cons,x),xs)) app#(plus,x) (12)
app#(sum,app(app(cons,x),xs)) app#(app(plus,x),app(sum,xs)) (13)
app#(size,app(app(node,x),xs)) app#(map,size) (14)
app#(size,app(app(node,x),xs)) app#(app(map,size),xs) (15)
app#(size,app(app(node,x),xs)) app#(sum,app(app(map,size),xs)) (16)
app#(size,app(app(node,x),xs)) app#(s,app(sum,app(app(map,size),xs))) (17)
app#(app(plus,app(s,x)),y) app#(plus,x) (18)
app#(app(plus,app(s,x)),y) app#(app(plus,x),y) (19)
app#(app(plus,app(s,x)),y) app#(s,app(app(plus,x),y)) (20)

1.1 Dependency Graph Processor

The dependency pairs are split into 3 components.