Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex4_7_15_Bor03_Z)

The rewrite relation of the following TRS is considered.

f(0) cons(0,n__f(s(0))) (1)
f(s(0)) f(p(s(0))) (2)
p(s(0)) 0 (3)
f(X) n__f(X) (4)
activate(n__f(X)) f(X) (5)
activate(X) X (6)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Rule Removal

Using the linear polynomial interpretation over the naturals
[f(x1)] = 1 + 2 · x1
[0] = 1
[cons(x1, x2)] = 1 · x1 + 1 · x2
[n__f(x1)] = 1 · x1
[s(x1)] = 2 · x1
[p(x1)] = 1 · x1
[activate(x1)] = 2 + 2 · x1
all of the following rules can be deleted.
p(s(0)) 0 (3)
f(X) n__f(X) (4)
activate(n__f(X)) f(X) (5)
activate(X) X (6)

1.1 Rule Removal

Using the
prec(f) = 1 stat(f) = mul
prec(0) = 2 stat(0) = mul
prec(cons) = 0 stat(cons) = mul

π(f) = [1]
π(0) = []
π(cons) = [1,2]
π(n__f) = 1
π(s) = 1
π(p) = 1

all of the following rules can be deleted.
f(0) cons(0,n__f(s(0))) (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 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
f#(s(0)) f#(p(s(0))) (7)

1.1.1.1.1 Usable Rules Processor

We restrict the rewrite rules to the following usable rules of the DP problem.

There are no rules.

1.1.1.1.1.1 Innermost Lhss Removal Processor

We restrict the innermost strategy to the following left hand sides.

There are no lhss.

1.1.1.1.1.1.1 Switch to TRS Processor

We merge the DPs and rules into one TRS.

1.1.1.1.1.1.1.1 Bounds

The given TRS is match-(raise)-bounded by 1. This is shown by the following automaton.