Certification Problem

Input (TPDB TRS_Standard/Mixed_TRS/jones6)

The rewrite relation of the following TRS is considered.

f(a,empty) g(a,empty) (1)
f(a,cons(x,k)) f(cons(x,a),k) (2)
g(empty,d) d (3)
g(cons(x,k),d) g(k,cons(x,d)) (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, x2)] = 1 + 1 · x1 + 2 · x2
[empty] = 2
[g(x1, x2)] = 1 · x1 + 1 · x2
[cons(x1, x2)] = 1 + 1 · x1 + 1 · x2
all of the following rules can be deleted.
f(a,empty) g(a,empty) (1)
f(a,cons(x,k)) f(cons(x,a),k) (2)
g(empty,d) d (3)

1.1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(cons) = 1 weight(cons) = 0
prec(g) = 0 weight(g) = 0
all of the following rules can be deleted.
g(cons(x,k),d) g(k,cons(x,d)) (4)

1.1.1 R is empty

There are no rules in the TRS. Hence, it is terminating.