(0) Obligation:

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

f(x, f(a, y)) → f(a, f(f(a, h(f(a, x))), y))

Q is empty.