First, note that the fully successful blocks cover disjoint certified level intervals. By (?), every contraction stage in such blocks costs no more than the corresponding stage of our benchmark, while the cost of the PG stage is at most \zeta times its SGE-equivalent stage cost by (?). Therefore, the single-trial stochastic-training cost of all fully successful blocks is at most \zeta C_{\rm sw}^{\rm PG}.(Here, we do not carefully distinguish the cost of the contraction stage and PG stage, as \zeta is only a logarithmic factor of the condition number.) Considering the sequential implementation rule with at most \mathcal{R} trials, we have
\begin{aligned}
\mathrm{Cost}(\text{all fully successful blocks}) \leq \mathcal{R}\zeta C_{\rm sw}^{\rm PG}.
\end{aligned}
For a failed block, by the budget constraint rule in (?), the uncertified training cost of all contraction stages is at most B, as shown in Ineq. (?). Meanwhile, in case B is very large or even \infty, we can always bound the block’s contraction cost by C_{\rm sw}^{\rm PG} due to (?). Therefore, the total cost of the contraction stages in all failed blocks is bounded by
\begin{aligned}
\mathrm{Cost}(\text{all contraction stages in all failed blocks}) \leq \mathcal{R}M \min\{B, C_{\rm sw}^{\rm PG}\}= \mathcal{R}M \bar B.
\end{aligned}
It remains to account for the terminal PG costs of failed blocks, i.e.,
\mathrm{Cost}(\text{PG stages in all failed blocks})
=
\mathcal{R}\sum_{b\ {\rm failed}}
\widetilde C_{k_b}(\lambda_b),
where \lambda_b and k_b are the oracle and terminal stage of failed block b. On the high-probability event under consideration, a removed oracle cannot be PG-admissible at its terminal stage: for the SGE/RR+SGE implementation, terminal PG-admissibility makes the whole block block-admissible, and Lemma 2 together with Proposition 2 rules out such a false rejection on this event. Thus k_b\ge\kappa_{\lambda_b}. Moreover, because \lambda_b is selected at k_b while the current pool contains an oracle attaining C_{k_b}^\star, we have C_{k_b}(\lambda_b)\le C_{k_b}^\star by (?). Therefore the terminal PG cost of each failed oracle is bounded by its corresponding summand in (?). Since each oracle can fail at most once, we have
\mathrm{Cost}(\text{PG stages in all failed blocks})\le \mathcal{R}C_{\rm bad}^{\rm PG}.
Finally, we need to compute the total certification cost. To do so, we need to count the successful certification blocks. If a fully successful block is terminated by the budget condition and its terminal stage is t-1, then
\sum_{k=s}^{t-2}A_k(\lambda)+A_{t-1}(\lambda)>B.
The corresponding successful block intervals are disjoint, and their total (single-trial) contraction subroutine cost is at most C_{\rm sw}^{\rm PG} by (?). Therefore, there are at most \lceil C_{\rm sw}^{\rm PG}/B\rceil budget-triggered successful blocks. In addition there are Q economic-switch blocks and at most one final block, while the total number of successful blocks is at most K. Thus, the total number of successful blocks is bounded by \min\left\{
K,\,
\left\lceil\tfrac{C_{\rm sw}^{\rm PG}}{B}\right\rceil+Q+1
\right\}, and the total number of certification blocks is at most \min\left\{
K,\,
\left\lceil\tfrac{C_{\rm sw}^{\rm PG}}{B}\right\rceil+Q+1
\right\}
+M, indicating a total certification cost of
\mathrm{Cost}(\text{all certification steps})\le \mathcal{R}c_{\rm cert}
\left[
\min\left\{
K,\,
\left\lceil\tfrac{C_{\rm sw}^{\rm PG}}{B}\right\rceil+Q+1
\right\}
+M
\right].
Combining Ineqs. (Proof), (?), (?), and (?) proves Ineq. (3).