(0) Obligation:

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

f(a, f(x, a)) → f(f(x, f(f(a, a), a)), a)

Q is empty.