The two-level additive Schwarz method (additive Schwarz with a coarse space correction) is often written like this: $$ \mathbf{v} = \sum_{i=0}^N \mathbf{R}_i^T \mathbf{A}^{-1}_i\mathbf{R}_i\mathbf{w} $$
where the term $i=0$ is said to be the coarse space correction. $\mathbf{A}_0$ is the solver for a global coarse grid problem, $\mathbf{R}_0$ and $\mathbf{R}_0^T$ the restriction and interpolation operators, respectively.
My question is, how to construct $\mathbf{A}_0$? Which problem does it correspond to? I get the idea of creating a coarse mesh, in fact, I am already using a coarse mesh to make an initial guess for what the solution of the global problem should be. But the two-level additive Schwarz method solves a coarse problem in each iteration and I don't understand what problem this is supposed to be. I assume we are not solving the same coarse grid problem over and over, something must change in between the iterations.