The claim g_\mathrm{ext}(C)\leq g(C) follows by monotone convergence from the integral representation for Radon probability measures [weizsaecker-winkler79]. The proof is then completed by
g_\mathrm{a.i.}(C)\leq g_\mathrm{ext}(C)\leq g(C)\leq g_\mathrm{fin}(C)\leq g_\mathrm{a.i.}(C),
as \operatorname{ext} G(C)\subset G_\mathrm{a.i.}(C) holds by Corollary 4.13 (3). See Figure ?.
In more detail, let f_1,f_2,\dots be a countable family of Borel measurable functions X\to\mathbb{R}. Let I be an index set, \tilde C\subset\mathbb{R}^I a closed convex set, and for every i\in I let g_i\colon X\to\mathbb{R} be continuous for the topology generated
( The topology on X generated by a family of subsets of X is the coarsest topology for which all members of this family are open. The initial topology of f_1,f_2,\dots is the topology on X generated by the preimages f_j^{-1}(U), where U is any open set in \mathbb{R} and j\in\mathbb{N}.)
by the given topology of X and the initial topology of f_1,f_2,\dots. To guarantee a certain degree of boundedness of the (possibly uncountably many) constraints g_i, we assume that for every i\in I there is j\in\mathbb{N} and a real constant K>0 such that |g_i|\leq K(1+|f_j|) pointwise. Here, |h|\colon X\to\mathbb{R} is defined by |h|(x)=|h(x)|, x\in X, for every h\colon X\to\mathbb{R}. Let
\textstyle
\tilde H:=\{\nu\in R \mid
\text{$\forall j\in\mathbb{N}:f_j\subset L_1(\nu)$
and
$(\int g_i\mathrm{d}\nu)_{i\in I}\in\tilde C$} \}
and let \Sigma(\operatorname{ext}\tilde H) be the smallest \sigma-algebra on \operatorname{ext}\tilde H such that \operatorname{ext}\tilde H\to\mathbb{R}, \mu\mapsto\mu(B) is measurable for every Borel set B in X. Then Corollary 2 in [weizsaecker-winkler79] shows that for every measure \mu\in\tilde H there exists a probability measure \Pi on \Sigma(\operatorname{ext}\tilde H), such that
\textstyle
\mu(B)=\int_{\operatorname{ext}\tilde H} \nu(B)\mathrm{d}\Pi(\nu),
\quad B\in\mathcal{B}(X).
The generalized moment problem (?) with Q=R fits into this setup when I:=\{1,\dots,d\}, f_i:=g_i:=p_i for every i\in I, and \tilde C:=C. Equation (?) shows that for every \mu\in G(C) there is a probability measure \Pi on \Sigma(\operatorname{ext} G(C)) such that
\textstyle
\int_X f\mathrm{d}\mu=\int_{\operatorname{ext} G(C)}(\int_X f\mathrm{d}\nu)\mathrm{d}\Pi(\nu)
where f=1_B is the indicator function of a Borel set B\in\mathcal{B}(X), defined by 1_B(x):=\delta_x(B), x\in X. Equation (?) holds for every Borel measurable f\colon X\to(-\infty,+\infty] that is bounded below by a real constant, by monotone convergence, see for example [bauer01], Sections 11–12. Hence g_\mathrm{ext}(C)\leq g(C) as \mu\in G(C) is arbitrary and because the monotonicity of the integral shows
\textstyle
g_\mathrm{ext}(C)
=\inf_{\nu\in\operatorname{ext} G(C)}\int_X f\mathrm{d}\nu
\leq \int_{\operatorname{ext} G(C)}(\int_X f\mathrm{d}\nu)\mathrm{d}\Pi(\nu)
= \int_X f\mathrm{d}\mu.
\qedhere