Generalizing the theory of cooperative inference