(0) Obligation:

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

app(app(F, app(app(F, f), x)), x) → app(app(F, app(G, app(app(F, f), x))), app(f, x))

Q is empty.