Let n=\dim M. Consider as before g_i= g_{\varepsilon_i} as in Remark 2.4 for some \varepsilon_i\searrow 0. It follows from Theorem 3.10, together with (?) that (M,g_i) is a complete Riemannian manifold for every i. Observe that for all i\in \mathbb N one can define the continuous function \kappa_i:M\to \mathbb R assigning to every p\in M the lowest eigenvalue of \mathrm{Ric}_i (p) with respect to g_i(p). Clearly, it holds that \mathrm{Ric}_i \geq \kappa_i g_i.
Fix any x_0\in M. In order to apply Theorem 4.13 we need to verify that, for some p>\frac{n}{2},
\begin{aligned}
\frac{R^{2p}}{\mathrm{Vol}_i (B_1^i(x_0) )} \int_{B_R^i(x_0)} \left[ (\kappa_i - K)^- \right]^p \,\text{\normalfont d}\mathrm{Vol}_i\xrightarrow{i\to\infty}0 \qquad \forall R>0.
\end{aligned}
To see this, note first that, by (?), for any fixed R>0 and all i\in \mathbb N we have B_R^i(x_0) \subseteq \overline{B_{2R}(x_0))} \Subset M, and since g_i\to g locally uniformly, for large i we additionally have \mathrm{Vol}_i (B_1^i(x_0) ) \ge \mathrm{Vol}_i(B_{1/2}(x_0)) \ge \frac{1}{2}\mathrm{Vol}(B_{1/2}(x_0)). Thus to establish (?), it remains to show that (\kappa_i - K)^- \to 0 in L^p_{\mathrm{loc}}(M). Fix some L\Subset M, and without loss of generality suppose that L is small enough to admit a smooth local frame X_1,\dots,X_n in a neighborhood V of L. Also, fix \bar x\in L. Then according to the Rayleigh quotient formula, for any i there exists some g_i-unit vector \bar X^{(i)}\in T_{\bar x}M with (\kappa_i(\bar x)-K) = \mathrm{Ric}_{g_i}(\bar X^{(i)},\bar X^{(i)})-K. Let \bar X^{(i)}=\sum_{k=1}^n \alpha_k^{(i)} X_k(\bar x) (\alpha_1^{(i)},\dots,\alpha_n^{(i)}\in \mathbb R) and set
X^{(i)} := \sum_{k=1}^n \alpha_k^{(i)} X_k
on V. Since \bar X^{(i)} is a g_i-unit vector it follows from (?) and the local equivalence of \|\,\|_g with the Euclidean norm w.r.t. the frame X_k that there exists some C_L>0 such that
|\alpha_k^{(i)}| \le C_L \qquad \forall i\in \mathbb N,\ k=1,\dots,n,
independently of the choice of \bar x\in L and \bar X^{(i)} as above. On L we have
\begin{split}
\mathrm{Ric}_i(X^{(i)},X^{(i)}) -& Kg_i(X^{(i)},X^{(i)}) =
[\mathrm{Ric}_i - (\mathrm{Ric}\star_M \rho_i)](X^{(i)},X^{(i)}) \\
&+[(\mathrm{Ric}\star_M \rho_i)(X^{(i)},X^{(i)}) - \mathrm{Ric}(X^{(i)},X^{(i)})\star_M\rho_i]\\
&+[\mathrm{Ric}(X^{(i)},X^{(i)}) - Kg(X^{(i)},X^{(i)})]\star_M\rho_i \\
&+ [Kg(X^{(i)},X^{(i)})\star_M\rho_i - Kg_i(X^{(i)},X^{(i)})] \\
&=: A_i(X^{(i)},X^{(i)}) + B_i(X^{(i)},X^{(i)}) + C_i(X^{(i)},X^{(i)}) + D_i(X^{(i)},X^{(i)}).
\end{split}
Since \mathrm{Ric}(X,X)\geq K g(X,X) in distributions and \rho\ge 0, C(X^{(i)},X^{(i)}) \ge 0. Therefore,
[\mathrm{Ric}_i(X^{(i)},X^{(i)}) - Kg_i(X^{(i)},X^{(i)})]^- \le |A_i(X^{(i)},X^{(i)})| + |B_i(X^{(i)},X^{(i)})| + |D_i(X^{(i)},X^{(i)})|
pointwise on L. Set \hat A_i := \max\{|A_i(X_k,X_l)| \colon k,l = 1,\dots,n \}, and analogously define \hat B_i and \hat D_i. Inserting (?) into (?) and taking into account (?), it follows that there exists a constant \tilde C_L such that
[\mathrm{Ric}_i(X^{(i)},X^{(i)}) - Kg_i(X^{(i)},X^{(i)})]^- \le
\tilde C_L(\hat A_i + \hat B_i + \hat D_i),
pointwise on L. Since all of the above arguments apply irrespective of the choice of \bar x and \bar X^{(i)} we conclude that [\kappa_i-K]^-\le
\tilde C_L(\hat A_i + \hat B_i + \hat D_i), pointwise on L. Proposition 2.5 shows that both \hat A_i and \hat B_i converge to 0 in L^p(L). Moreover, \hat D_i\to 0 uniformly on L. Altogether, this establishes (?).
From this, by applying Theorem 4.13, we obtain that \{[M, d_i, \mathfrak{m}_i, x_0]\}_{i\in\mathbb N} admits a subsequence that converges in the pmG-sense to the isomorphism class of a \mathsf{CD}(K, \dim M) space. At the same time, due to the convergence g_i\to g in C^0_\text{\normalfont loc}, we can easily see that (M, d_i , \mathfrak{m}_i, x_0) \to (M,d,\mathfrak{m},x_0), where \mathfrak{m}_{(i)}:= \mathrm{Vol}_{(i)}(B_1(x_0))^{-1} \mathrm{Vol}, in the pmGH-sense. By Theorem 4.11, also their isomorphism classes converge in the pmG-sense. Due to uniqueness of the limits, and the fact that the \mathsf{CD}(K,N) condition is invariant under isomorphisms of metric measure spaces, we have that (M,d,\mathfrak{m},x_0) is a \mathsf{CD}(K,N)-space. Also the Riemannian structure of (M,g) naturally ensures the infinitesimal Hilbertianity of (X,d,\mathfrak{m}) (cf. also the discussion on Sobolev spaces from the previous section), making it an \mathsf{RCD}(K,N)-space. Since \mathrm{Vol} is simply a rescaling of \mathfrak{m} and the \mathsf{RCD}(K,N)-condition is invariant under this operation, the claim follows.