Emergent Communication for Rules Reasoning