I'm reading a paper about lattice point counting, and I don't understand a step in one of their preliminary proofs.
Let $\chi(\ \cdot \ , \rho)$ denote the characteristic function of an open ball of radius $\rho$ in $\mathbb{R}^d$, let $\Gamma \subset \mathbb{R}^d$ be a lattice of full rank. Now define a torus $\mathbb{T}^d$ to be the quotient $\mathbb{R}^d / \Gamma$. Then:
$$\displaystyle \int_{\mathbb{T}^d} \sum_{m \in \Gamma} \chi(m - k, \rho) \ \mathrm{d}k = \int_{\mathbb{R}^d} \chi(k, \rho) \ \mathrm{d}k.$$
The expression on the right is just the volume of a $d$-sphere. But could someone explain how the author went from the left to the right? I suspect that there is an interchanging of sum and integral going on here. I notice that the integral varies over points not in $\Gamma$, while the sum varies over points that are in $\Gamma$, so I am thinking that the sum "fills in" all the points which the integral misses, which is why we end up with an integral over $\mathbb{R}^d$. But I don't know how to make this rigorous. Can anyone help?