Decoupling problems over a ring