(0) Obligation:

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

f(empty, l) → l
f(cons(x, k), l) → g(k, l, cons(x, k))
g(a, b, c) → f(a, cons(b, c))

Q is empty.