(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

f(x, empty) → x
f(empty, cons(a, k)) → f(cons(a, k), k)
f(cons(a, k), y) → f(y, k)

Q is empty.