[step:Compute the interior layer average and let the boundary error vanish]
Define the bounded $1$-periodic [measurable function](/page/Measurable%20Function) $F:\mathbb R\to\mathbb R$ by
\begin{align*}
F(\theta)=f(A+rB+h'(\theta)B).
\end{align*}
Its one-period average is
\begin{align*}
\int_0^1 F(\theta)\,d\mathcal L^1(\theta)=\lambda f(A+sB)+(1-\lambda)f(A+tB),
\end{align*}
because $h'=s-r$ on $(0,\lambda)$ and $h'=t-r$ on $(\lambda,1)$.
[claim:Periodic directional averages over expanding cubes converge to the period average]
For every bounded $1$-periodic measurable function $F:\mathbb R\to\mathbb R$ and every unit vector $e\in\mathbb R^n$,
\begin{align*}
\lim_{R\to\infty}\frac{1}{\mathcal L^n((-R,R)^n)}\int_{(-R,R)^n}F(e\cdot x)\,d\mathcal L^n(x)=\int_0^1F(\theta)\,d\mathcal L^1(\theta).
\end{align*}
[/claim]
[proof]
Let $A_R$ denote the averaging functional
\begin{align*}
A_R(G):=\frac{1}{\mathcal L^n((-R,R)^n)}\int_{(-R,R)^n}G(e\cdot x)\,d\mathcal L^n(x)
\end{align*}
for bounded $1$-periodic [measurable functions](/page/Measurable%20Functions) $G:\mathbb R\to\mathbb C$. First suppose $G(\theta)=e^{2\pi i k\theta}$ for an integer $k\in\mathbb Z$. The function $x\mapsto G(e\cdot x)$ is bounded on $(-R,R)^n$, hence integrable with respect to $\mathcal L^n$, so [Fubini's theorem](/theorems/2961) applies. If $k=0$, then $A_R(G)=1$. If $k\ne0$, choose an index $j\in\{1,\dots,n\}$ such that $e_j\ne0$. Fubini's theorem gives a product of one-dimensional averages, and the $j$th factor is
\begin{align*}
\frac{1}{2R}\int_{-R}^{R}e^{2\pi i k e_j x_j}\,d\mathcal L^1(x_j).
\end{align*}
Its absolute value is at most $(\pi |k e_j|R)^{-1}$, so it tends to $0$ as $R\to\infty$. Thus the assertion holds for trigonometric monomials and, by linearity, for trigonometric polynomials.
It remains to pass from trigonometric polynomials to bounded measurable functions. Choose $j\in\{1,\dots,n\}$ with $e_j\ne0$. For every nonnegative $1$-periodic measurable function $G:\mathbb R\to[0,\infty)$ and every $R\ge1$, fixing all variables except $x_j$ gives
\begin{align*}
\frac{1}{2R}\int_{-R}^{R}G(e\cdot x)\,d\mathcal L^1(x_j)\le \left(1+\frac{1}{2|e_j|}\right)\int_0^1G(\theta)\,d\mathcal L^1(\theta).
\end{align*}
Indeed, for the fixed values of the other coordinates, we can write $e\cdot x=e_jx_j+\gamma$ for some constant $\gamma\in\mathbb R$ depending on those coordinates. The interval $e_j[-R,R]+\gamma$ has length $2R|e_j|$ modulo period $1$, so it covers each point of the torus at most $\lceil 2R|e_j|\rceil$ times, and $\lceil 2R|e_j|\rceil/(2R|e_j|)\le 1+1/(2|e_j|)$. Integrating this estimate over the remaining $n-1$ variables yields
\begin{align*}
|A_R(G)|\le C_e\int_0^1|G(\theta)|\,d\mathcal L^1(\theta),\qquad C_e:=1+\frac{1}{2|e_j|},
\end{align*}
for every bounded $1$-periodic measurable $G:\mathbb R\to\mathbb C$.
Let $F:\mathbb R\to\mathbb R$ be bounded, measurable, and $1$-periodic. Since trigonometric polynomials are dense in $L^1(0,1)$, for every $\varepsilon>0$ choose a trigonometric polynomial $P:\mathbb R\to\mathbb C$ with
\begin{align*}
\int_0^1|F(\theta)-P(\theta)|\,d\mathcal L^1(\theta)<\varepsilon.
\end{align*}
The preceding bound gives $|A_R(F-P)|\le C_e\varepsilon$ for all $R\ge1$, while the polynomial case gives
\begin{align*}
\lim_{R\to\infty}A_R(P)=\int_0^1P(\theta)\,d\mathcal L^1(\theta).
\end{align*}
Therefore
\begin{align*}
\limsup_{R\to\infty}\left|A_R(F)-\int_0^1F(\theta)\,d\mathcal L^1(\theta)\right|\le (C_e+1)\varepsilon.
\end{align*}
Letting $\varepsilon\downarrow0$ proves the claim.
[/proof]
Applying the claim with $R=N-1$ gives
\begin{align*}
\lim_{N\to\infty}
\frac{1}{\mathcal L^n(Q_{N-1})}
\int_{Q_{N-1}} f(A+rB+h'(e\cdot x)B)\,d\mathcal L^n(x)
=
\lambda f(A+sB)+(1-\lambda)f(A+tB).
\end{align*}
Also,
\begin{align*}
\lim_{N\to\infty}
\frac{\mathcal L^n(Q_N\setminus Q_{N-1})}{\mathcal L^n(Q_N)}
=
0,
\qquad
\lim_{N\to\infty}
\frac{\mathcal L^n(Q_{N-1})}{\mathcal L^n(Q_N)}
=
1.
\end{align*}
After dividing the quasiconvexity estimate by $\mathcal L^n(Q_N)$, the interior term is
\begin{align*}
\frac{\mathcal L^n(Q_{N-1})}{\mathcal L^n(Q_N)}\cdot\frac{1}{\mathcal L^n(Q_{N-1})}\int_{Q_{N-1}} f(A+rB+h'(e\cdot x)B)\,d\mathcal L^n(x).
\end{align*}
The first factor tends to $1$, the second factor tends to $\lambda f(A+sB)+(1-\lambda)f(A+tB)$, and the boundary-layer term tends to $0$. Passing to the limit yields
\begin{align*}
f(A+rB)\le \lambda f(A+sB)+(1-\lambda)f(A+tB).
\end{align*}
[/step]