Certification Problem

Input (TPDB TRS_Standard/AotoYamada_05/016)

The rewrite relation of the following TRS is considered.

app(app(neq,0),0) false (1)
app(app(neq,0),app(s,y)) true (2)
app(app(neq,app(s,x)),0) true (3)
app(app(neq,app(s,x)),app(s,y)) app(app(neq,x),y) (4)
app(app(filter,f),nil) nil (5)
app(app(filter,f),app(app(cons,y),ys)) app(app(app(filtersub,app(f,y)),f),app(app(cons,y),ys)) (6)
app(app(app(filtersub,true),f),app(app(cons,y),ys)) app(app(cons,y),app(app(filter,f),ys)) (7)
app(app(app(filtersub,false),f),app(app(cons,y),ys)) app(app(filter,f),ys) (8)
nonzero app(filter,app(neq,0)) (9)

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.

neq is mapped to neq, neq1(x1), neq2(x1, x2)
0 is mapped to 0
false is mapped to false
s is mapped to s, s1(x1)
true is mapped to true
filter is mapped to filter, filter1(x1), filter2(x1, x2)
nil is mapped to nil
cons is mapped to cons, cons1(x1), cons2(x1, x2)
filtersub is mapped to filtersub, filtersub1(x1), filtersub2(x1, x2), filtersub3(x1, x2, x3)
nonzero is mapped to nonzero


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
neq2(0,0) false (20)
neq2(0,s1(y)) true (21)
neq2(s1(x),0) true (22)
neq2(s1(x),s1(y)) neq2(x,y) (23)
filter2(f,nil) nil (24)
filter2(f,cons2(y,ys)) filtersub3(app(f,y),f,cons2(y,ys)) (25)
filtersub3(true,f,cons2(y,ys)) cons2(y,filter2(f,ys)) (26)
filtersub3(false,f,cons2(y,ys)) filter2(f,ys) (27)
nonzero filter1(neq1(0)) (28)
app(neq,y1) neq1(y1) (10)
app(neq1(x0),y1) neq2(x0,y1) (11)
app(s,y1) s1(y1) (12)
app(filter,y1) filter1(y1) (13)
app(filter1(x0),y1) filter2(x0,y1) (14)
app(cons,y1) cons1(y1) (15)
app(cons1(x0),y1) cons2(x0,y1) (16)
app(filtersub,y1) filtersub1(y1) (17)
app(filtersub1(x0),y1) filtersub2(x0,y1) (18)
app(filtersub2(x0,x1),y1) filtersub3(x0,x1,y1) (19)

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.
neq2#(s1(x),s1(y)) neq2#(x,y) (29)
filter2#(f,cons2(y,ys)) filtersub3#(app(f,y),f,cons2(y,ys)) (30)
filter2#(f,cons2(y,ys)) app#(f,y) (31)
filtersub3#(true,f,cons2(y,ys)) filter2#(f,ys) (32)
filtersub3#(false,f,cons2(y,ys)) filter2#(f,ys) (33)
app#(neq1(x0),y1) neq2#(x0,y1) (34)
app#(filter1(x0),y1) filter2#(x0,y1) (35)
app#(filtersub2(x0,x1),y1) filtersub3#(x0,x1,y1) (36)

1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 2 components.