This record proves the theorem in full for problems without equality constraints
(p=0), and proves complementary slackness. The general case adds the affine
constraints to the separation argument and needs the relative-interior hypothesis and a
rank condition on A to exclude a degenerate hyperplane; see section 5.3.2 of
Boyd and Vandenberghe.
Setup. If p∗=−∞, weak duality gives d∗=−∞ as well. Assume
p∗ finite; it is not +∞ because x~ is feasible. Define
A={(u,t)∈Rm×R:∃x∈D, fi(x)≤ui (i≤m), f0(x)≤t},B={(0,s):s<p∗}.
A is convex: if x,x′ witness (u,t),(u′,t′), then by convexity of the fi
the point θx+(1−θ)x′ witnesses θ(u,t)+(1−θ)(u′,t′).
B is convex. They are disjoint: (0,s)∈A would give a feasible x
with f0(x)≤s<p∗.
Separation. By the separating hyperplane theorem for disjoint convex sets in
Rm+1 there are (λ~,μ)=(0,0) and α∈R with
λ~Tu+μt≥α on A,λ~Tu+μt≤α on B.
Since A is closed under increasing any coordinate, the first inequality forces
λ~≥0 and μ≥0 (a negative coefficient would make the left side
unbounded below on A). The second says μs≤α for all s<p∗,
hence μp∗≤α. Taking (u,t)=(f1(x),…,fm(x),f0(x)) for any
x∈D,
i∑λ~ifi(x)+μf0(x)≥α≥μp∗for all x∈D.(∗)
The hyperplane is not vertical. Suppose μ=0. Then (∗) gives
∑iλ~ifi(x)≥0 for all x∈D, with λ~≥0 and
λ~=0. At the Slater point every fi(x~)<0, so
∑iλ~ifi(x~)<0, a contradiction. Hence μ>0.
Conclusion. Dividing (∗) by μ and putting λ∗=λ~/μ≥0,
L(x,λ∗)≥p∗ for all x∈D, so g(λ∗)≥p∗. Weak duality gives
g(λ∗)≤d∗≤p∗, so d∗=p∗=g(λ∗).
Complementary slackness. If x∗ is feasible with f0(x∗)=p∗, then
p∗=g(λ∗)≤L(x∗,λ∗)=f0(x∗)+i∑λi∗fi(x∗)≤f0(x∗)=p∗,
so both inequalities are equalities: x∗ minimises L(⋅,λ∗), and the sum of
the nonpositive terms λi∗fi(x∗) is zero, so each is zero. For differentiable
functions on an open D, minimality of the convex function L(⋅,λ∗) at x∗
is equivalent to the vanishing of its gradient, which is the first KKT condition; conversely
any point satisfying the KKT conditions minimises L(⋅,λ∗), and the same chain of
(in)equalities shows it is primal optimal and λ∗ dual optimal.