Certification Problem

Input (TPDB TRS_Standard/Zantema_05/z11)

The rewrite relation of the following TRS is considered.

a(f,0) a(s,0) (1)
a(d,0) 0 (2)
a(d,a(s,x)) a(s,a(s,a(d,a(p,a(s,x))))) (3)
a(f,a(s,x)) a(d,a(f,a(p,a(s,x)))) (4)
a(p,a(s,x)) x (5)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Uncurrying

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

f is mapped to f, f1(x1)
0 is mapped to 0
s is mapped to s, s1(x1)
d is mapped to d, d1(x1)
p is mapped to p, p1(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
f1(0) s1(0) (10)
d1(0) 0 (11)
d1(s1(x)) s1(s1(d1(p1(s1(x))))) (12)
f1(s1(x)) d1(f1(p1(s1(x)))) (13)
p1(s1(x)) x (14)
a(f,y1) f1(y1) (6)
a(s,y1) s1(y1) (7)
a(d,y1) d1(y1) (8)
a(p,y1) p1(y1) (9)

1.1 Rule Removal

Using the linear polynomial interpretation over the naturals
[f1(x1)] = 2 + 1 · x1
[0] = 0
[s1(x1)] = 1 · x1
[d1(x1)] = 1 · x1
[p1(x1)] = 1 · x1
[a(x1, x2)] = 2 · x1 + 2 · x2
[f] = 2
[s] = 0
[d] = 1
[p] = 0
all of the following rules can be deleted.
f1(0) s1(0) (10)
a(f,y1) f1(y1) (6)
a(d,y1) d1(y1) (8)

1.1.1 Rule Removal

Using the
prec(0) = 0 stat(0) = mul
prec(a) = 1 stat(a) = mul
prec(s) = 2 stat(s) = mul
prec(p) = 3 stat(p) = mul

π(d1) = 1
π(0) = []
π(s1) = 1
π(p1) = 1
π(f1) = 1
π(a) = [1,2]
π(s) = []
π(p) = []

all of the following rules can be deleted.
a(s,y1) s1(y1) (7)
a(p,y1) p1(y1) (9)

1.1.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.1.1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
d1#(s1(x)) d1#(p1(s1(x))) (15)
d1#(s1(x)) p1#(s1(x)) (16)
f1#(s1(x)) d1#(f1(p1(s1(x)))) (17)
f1#(s1(x)) f1#(p1(s1(x))) (18)
f1#(s1(x)) p1#(s1(x)) (19)

1.1.1.1.1.1 Dependency Graph Processor

The dependency pairs are split into 2 components.