(0) Obligation:

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

h(X) → g(X, X)
g(a, X) → f(b, activate(X))
f(X, X) → h(a)
ab
activate(X) → X

Q is empty.