Certification Problem

Input (TPDB TRS_Standard/AotoYamada_05/020)

The rewrite relation of the following TRS is considered.

app(app(plus,0),y) y (1)
app(app(plus,app(s,x)),y) app(s,app(app(plus,x),y)) (2)
app(app(times,0),y) 0 (3)
app(app(times,app(s,x)),y) app(app(plus,app(app(times,x),y)),y) (4)
app(app(app(comp,f),g),x) app(f,app(g,x)) (5)
app(twice,f) app(app(comp,f),f) (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.

plus is mapped to plus, plus1(x1), plus2(x1, x2)
0 is mapped to 0
s is mapped to s, s1(x1)
times is mapped to times, times1(x1), times2(x1, x2)
comp is mapped to comp, comp1(x1), comp2(x1, x2), comp3(x1, x2, x3)
twice is mapped to twice, twice1(x1)


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
plus2(0,y) y (16)
plus2(s1(x),y) s1(plus2(x,y)) (17)
times2(0,y) 0 (18)
times2(s1(x),y) plus2(times2(x,y),y) (19)
comp3(f,g,x) app(f,app(g,x)) (20)
twice1(f) comp2(f,f) (21)
app(plus,y1) plus1(y1) (7)
app(plus1(x0),y1) plus2(x0,y1) (8)
app(s,y1) s1(y1) (9)
app(times,y1) times1(y1) (10)
app(times1(x0),y1) times2(x0,y1) (11)
app(comp,y1) comp1(y1) (12)
app(comp1(x0),y1) comp2(x0,y1) (13)
app(comp2(x0,x1),y1) comp3(x0,x1,y1) (14)
app(twice,y1) twice1(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.
plus2#(s1(x),y) plus2#(x,y) (22)
times2#(s1(x),y) plus2#(times2(x,y),y) (23)
times2#(s1(x),y) times2#(x,y) (24)
comp3#(f,g,x) app#(f,app(g,x)) (25)
comp3#(f,g,x) app#(g,x) (26)
app#(plus1(x0),y1) plus2#(x0,y1) (27)
app#(times1(x0),y1) times2#(x0,y1) (28)
app#(comp2(x0,x1),y1) comp3#(x0,x1,y1) (29)
app#(twice,y1) twice1#(y1) (30)

1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 3 components.