Certification Problem

Input (TPDB TRS_Standard/Strategy_removed_mixed_05/test830)

The rewrite relation of the following TRS is considered.

f(s(X)) f(X) (1)
g(cons(0,Y)) g(Y) (2)
g(cons(s(X),Y)) s(X) (3)
h(cons(X,Y)) h(g(cons(X,Y))) (4)

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)] = 2 · x1
[s(x1)] = 2 · x1
[g(x1)] = 1 · x1
[cons(x1, x2)] = 1 · x1 + 1 · x2
[0] = 2
[h(x1)] = 2 · x1
all of the following rules can be deleted.
g(cons(0,Y)) g(Y) (2)

1.1 Rule Removal

Using the
prec(cons) = 0 stat(cons) = mul
prec(h) = 0 stat(h) = mul

π(f) = 1
π(s) = 1
π(g) = 1
π(cons) = [1,2]
π(h) = [1]

all of the following rules can be deleted.
g(cons(s(X),Y)) s(X) (3)

1.1.1 Rule Removal

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

π(f) = 1
π(s) = [1]
π(h) = [1]
π(cons) = [1,2]
π(g) = 1

all of the following rules can be deleted.
f(s(X)) f(X) (1)

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.
h#(cons(X,Y)) h#(g(cons(X,Y))) (5)

1.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.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.1 Reduction Pair Processor

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(cons) = 1 weight(cons) = 1
prec(g) = 0 weight(g) = 1
in combination with the following argument filter

π(h#) = 1
π(cons) = []
π(g) = []

the pair
h#(cons(X,Y)) h#(g(cons(X,Y))) (5)
could be deleted.

1.1.1.1.1.1.1.1.1 P is empty

There are no pairs anymore.