  We study four-dimensional $\mathrm{SU}(N)$ Yang-Mills theory on $\mathbb{R}
\times \mathbb{T}^3=\mathbb{R} \times S^1_A \times S^1_B \times S^1_C$, with a
twisted boundary condition by a $\mathbb{Z}_N$ center symmetry imposed on
$S^1_B \times S^1_C$. This setup has no IR zero modes and hence is free from IR
divergences which could spoil trans-series expansion for physical observables.
Moreover, we show that the center symmetry is preserved at weak coupling
regime. This is shown by first reducing the theory on $\mathbb{T}^2=S_A \times
S_B$, to connect the model to the two-dimensional $\mathbb{CP}^{N-1}$-model.
Then, we prove that the twisted boundary condition by the center symmetry for
the Yang-Mills is reduced to the twisted boundary condition by the
$\mathbb{Z}_N$ global symmetry of $\mathbb{CP}^{N-1}$. There are $N$ classical
vacua, and fractional instantons connecting those $N$ vacua dynamically restore
the center symmetry. We also point out the presence of singularities on the
Borel plane which depend on the shape of the compactification manifold, and
comment on its implications.
