(0) Obligation:

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

f(f(0, x), 1) → f(g(f(x, x)), x)
f(g(x), y) → g(f(x, y))

Q is empty.