Certification Problem

Input (TPDB TRS_Standard/Applicative_05/mapDivMinus)

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(app(minus,x),0) x (3)
app(app(minus,app(s,x)),app(s,y)) app(app(minus,x),y) (4)
app(app(div,0),app(s,y)) 0 (5)
app(app(div,app(s,x)),app(s,y)) app(s,app(app(div,app(app(minus,x),y)),app(s,y))) (6)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Uncurrying

We uncurry the binary symbol app in combination with the following symbol map which also determines the applicative arities of these symbols.

map is mapped to map, map1(x1), map2(x1, x2)
nil is mapped to nil
cons is mapped to cons, cons1(x1), cons2(x1, x2)
minus is mapped to minus, minus1(x1), minus2(x1, x2)
0 is mapped to 0
s is mapped to s, s1(x1)
div is mapped to div, div1(x1), div2(x1, x2)


There are no uncurry rules.
No rules have to be added for the eta-expansion.

Uncurrying the rules and adding the uncurrying rules yields the new set of rules
map2(f,nil) nil (16)
map2(f,cons2(x,xs)) cons2(app(f,x),map2(f,xs)) (17)
minus2(x,0) x (18)
minus2(s1(x),s1(y)) minus2(x,y) (19)
div2(0,s1(y)) 0 (20)
div2(s1(x),s1(y)) s1(div2(minus2(x,y),s1(y))) (21)
app(map,y1) map1(y1) (7)
app(map1(x0),y1) map2(x0,y1) (8)
app(cons,y1) cons1(y1) (9)
app(cons1(x0),y1) cons2(x0,y1) (10)
app(minus,y1) minus1(y1) (11)
app(minus1(x0),y1) minus2(x0,y1) (12)
app(s,y1) s1(y1) (13)
app(div,y1) div1(y1) (14)
app(div1(x0),y1) div2(x0,y1) (15)

1.1 Switch to Innermost Termination

The TRS is overlay and locally confluent:

10

Hence, it suffices to show innermost termination in the following.

1.1.1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
map2#(f,cons2(x,xs)) app#(f,x) (22)
map2#(f,cons2(x,xs)) map2#(f,xs) (23)
minus2#(s1(x),s1(y)) minus2#(x,y) (24)
div2#(s1(x),s1(y)) div2#(minus2(x,y),s1(y)) (25)
div2#(s1(x),s1(y)) minus2#(x,y) (26)
app#(map1(x0),y1) map2#(x0,y1) (27)
app#(minus1(x0),y1) minus2#(x0,y1) (28)
app#(div1(x0),y1) div2#(x0,y1) (29)

1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 3 components.