A retraction onto a saturated integral submodule
Let $I$ be a finite set and $W\subseteq\mathbb Z^I$ a submodule. Suppose that, for every nonzero $a\in\mathbb Z$ and $x\in\mathbb Z^I$, $ax\in W$ implies $x\in W$. There is a $\mathbb Z$-linear map $\rho:\mathbb Z^I\to\mathbb Z^I$ with $$\rho(x)\in W\quad(x\in\mathbb Z^I),\qquad \rho(x)=x\quad(x\in W).$$