Reason: First published version of the proof for the nearest-point projection, by Bolzano-Weierstrass for existence, the parallelogram identity for uniqueness, and the variational inequality for nonexpansiveness.
Claim 1, existence. Fix x∈Rn. The set {∣x−y∣:y∈C} is nonempty and bounded below by 0, so it has a real infimum d≥0. For each natural number k choose yk∈C with ∣x−yk∣≤d+k1. By the triangle inequality, ∣yk∣≤∣x∣+∣x−yk∣≤∣x∣+d+1, so the sequence(yk) is bounded, and by the Bolzano-Weierstrass theorem some subsequence (ykj)converges to a point p∈Rn.
The point p lies in C: otherwise p would lie in the complement of C, which is open because C is closed, so some open ball around p would miss C, contradicting the convergence of the points ykj∈C to p. Moreover ∣x−ykj∣−∣x−p∣≤∣ykj−p∣ by the triangle inequality, so ∣x−p∣=limj∣x−ykj∣=d. Thus p∈C attains the infimum, that is ∣x−p∣≤∣x−y∣ for all y∈C.
Claim 1, uniqueness. Suppose p,q∈C both satisfy ∣x−p∣=∣x−q∣=d. Since C is convex, the midpoint 21p+21q lies in C. Applying the expansion above with u=x−p and w=x−q to ∣u+w∣2+∣u−w∣2=2∣u∣2+2∣w∣2 and dividing by 4 gives
so p attains the minimum, and by the uniqueness in Claim 1, p=πC(x).
Claim 3. If x∈C then ∣x−x∣=0≤∣x−y∣ for every y∈C, so x attains the minimum and πC(x)=x by uniqueness. Since πC takes values in C and fixes every point of C, it maps Rn onto C.
Claim 4. Let x,x′∈Rn and put p=πC(x), p′=πC(x′). By Claim 2 applied to x with y=p′∈C, and to x′ with y=p∈C,
(x−p)⋅(p′−p)≤0,(x′−p′)⋅(p−p′)≤0.
The second inequality says (x′−p′)⋅(p′−p)≥0. Subtracting it from the first,
((x−x′)−(p−p′))⋅(p′−p)≤0,
which rearranges to ∣p−p′∣2≤(x−x′)⋅(p−p′). By the Cauchy-Schwarz inequality, applied to the positive semidefinite quadratic form given by the identity matrix, for which the associated bilinear form is the dot product, (x−x′)⋅(p−p′)≤∣x−x′∣∣p−p′∣. Hence ∣p−p′∣2≤∣x−x′∣∣p−p′∣. If p=p′ the asserted inequality is trivial; otherwise dividing by ∣p−p′∣>0 gives ∣p−p′∣≤∣x−x′∣. Thus πC is Lipschitz with constant 1. ■