(0) Obligation:

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

cf(n__g(n__c))
f(n__g(X)) → g(activate(X))
g(X) → n__g(X)
cn__c
activate(n__g(X)) → g(X)
activate(n__c) → c
activate(X) → X

Q is empty.