Certification Problem

Input (TPDB TRS_Standard/Applicative_05/Ex6Recursor)

The rewrite relation of the following TRS is considered.

app(app(app(rec,f),x),0) x (1)
app(app(app(rec,f),x),app(s,y)) app(app(f,app(s,y)),app(app(app(rec,f),x),y)) (2)

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.

rec is mapped to rec, rec1(x1), rec2(x1, x2), rec3(x1, x2, x3)
0 is mapped to 0
s is mapped to s, s1(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
rec3(f,x,0) x (7)
rec3(f,x,s1(y)) app(app(f,s1(y)),rec3(f,x,y)) (8)
app(rec,y1) rec1(y1) (3)
app(rec1(x0),y1) rec2(x0,y1) (4)
app(rec2(x0,x1),y1) rec3(x0,x1,y1) (5)
app(s,y1) s1(y1) (6)

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.
rec3#(f,x,s1(y)) app#(app(f,s1(y)),rec3(f,x,y)) (9)
rec3#(f,x,s1(y)) app#(f,s1(y)) (10)
rec3#(f,x,s1(y)) rec3#(f,x,y) (11)
app#(rec2(x0,x1),y1) rec3#(x0,x1,y1) (12)

1.1.1.1 Reduction Pair Processor

Using the matrix interpretations of dimension 1 with strict dimension 1 over the arctic semiring over the naturals
[rec3#(x1, x2, x3)] =
3
+
2
· x1 +
1
· x2 +
-∞
· x3
[s1(x1)] =
0
+
-∞
· x1
[app#(x1, x2)] =
-∞
+
1
· x1 +
0
· x2
[app(x1, x2)] =
-∞
+
1
· x1 +
0
· x2
[rec3(x1, x2, x3)] =
3
+
2
· x1 +
1
· x2 +
-∞
· x3
[rec2(x1, x2)] =
2
+
1
· x1 +
0
· x2
[rec] =
3
[rec1(x1)] =
3
+
0
· x1
[s] =
0
[0] =
3
the pair
rec3#(f,x,s1(y)) app#(f,s1(y)) (10)
could be deleted.

1.1.1.1.1 Narrowing Processor

We consider all narrowings of the pair below position 1 to get the following set of pairs
rec3#(rec,y1,s1(y2)) app#(rec1(s1(y2)),rec3(rec,y1,y2)) (13)
rec3#(rec1(x0),y1,s1(y2)) app#(rec2(x0,s1(y2)),rec3(rec1(x0),y1,y2)) (14)
rec3#(rec2(x0,x1),y1,s1(y2)) app#(rec3(x0,x1,s1(y2)),rec3(rec2(x0,x1),y1,y2)) (15)
rec3#(s,y1,s1(y2)) app#(s1(s1(y2)),rec3(s,y1,y2)) (16)

1.1.1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 1 component.