(0) Obligation:

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

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

Q is empty.