(0) Obligation:

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

g(X) → h(activate(X))
cd
h(n__d) → g(n__c)
dn__d
cn__c
activate(n__d) → d
activate(n__c) → c
activate(X) → X

Q is empty.