Preliminaries. Since A is compact it is closed by Compact Subset of Rn is Closed and bounded by Compact Subset of Rn is Bounded, so there are x∈Rm and a real R′≥0 with dE(x,a)≤R′ for every a∈A, where dE is the Euclidean distance. Putting R=∣x∣+R′ and using the triangle inequality for the Euclidean norm (Elementary Properties of the Euclidean Norm on Rn) gives ∣a∣≤∣a−x∣+∣x∣=dE(x,a)+∣x∣≤R for every a∈A. By The Set of Controls with Values in a Closed Bounded Set is Nonempty, Bounded, Convex and Closed, UA is nonempty, satisfies ∥ξ∥L2≤RT1/2 for every ξ∈UA, is convex, and is closed for the topology determined by dL2. Claim numbers for H refer to The Lebesgue Space of Square-Integrable Vector-Valued Functions is a Real Inner Product Space: the pairing is symmetric and linear in each argument, ⟨v,v⟩L2=∥v∥L22, the Cauchy-Schwarz inequality holds, and the norm vanishes only at 0 (claims 4 and 5).
We also record two elementary facts about the natural powers of 2 in R, where ι denotes the canonical map of R. First, every 2r is positive, and 2s≤2r whenever s≤r. Indeed, by the recursion of the natural powers one has 21=2 and 2r+1=2⋅2r, so positivity follows by Principle of Induction for the Natural Numbers, and then 2r≤2⋅2r=2r+1 for every r; for s≤r either s=r, or r=s+i for some i∈N by claim 7 of Properties of the Order on the Natural Numbers, and induction on i gives 2s≤2s+i. Since all these numbers are positive, 2−r≤2−s for s≤r. Second, for every real ε>0 there is J∈N with 2−J<ε: by Principle of Induction for the Natural Numbers one has ι(J)≤2J for every J∈N — for J=1 this reads 1≤2, and if ι(J)≤2J then ι(J+1)=ι(J)+1≤2J+2J=2J+1, using 1≤2J and claim 1 of Properties of the Canonical Map from the Natural Numbers to an Ordered Field — hence 2−J≤ι(J)−1, and claim 3 of The Archimedean Property of the Real Numbers provides J with ι(J)−1<ε.
Claim 1. Fix ξ,ζ∈H and put ar=min(2−r,∣⟨ξ−ζ,wr⟩L2∣). Each ar satisfies 0≤ar≤2−r≤2−1, so the set {ar:r∈N} is nonempty and bounded above; its supremum exists because R is Dedekind complete. Thus ρ(ξ,ζ) is a well-defined nonnegative real number.
Symmetry. ⟨ζ−ξ,wr⟩L2=−⟨ξ−ζ,wr⟩L2 by linearity, and the absolute value is unchanged, so the two defining sets coincide.
Vanishing on the diagonal. ρ(ξ,ξ)=0, since every ar is then min(2−r,0)=0.
Triangle inequality. Let ξ,η,ζ∈H and r∈N. Write a=∣⟨ξ−η,wr⟩L2∣, b=∣⟨η−ζ,wr⟩L2∣ and c=2−r; by linearity of the pairing and the triangle inequality for the absolute value, ∣⟨ξ−ζ,wr⟩L2∣≤a+b. We check min(c,a+b)≤min(c,a)+min(c,b): if a+b≤c then a≤c and b≤c, so the right-hand side is a+b; if a+b>c and a≥c then the right-hand side is at least c; symmetrically if b≥c; and if a<c and b<c the right-hand side is a+b>c. In all cases the inequality holds, and since min(c,a)≤ρ(ξ,η) and min(c,b)≤ρ(η,ζ) we get min(c,∣⟨ξ−ζ,wr⟩L2∣)≤ρ(ξ,η)+ρ(η,ζ) for every r. The right-hand side is therefore an upper bound of the defining set, so ρ(ξ,ζ)≤ρ(ξ,η)+ρ(η,ζ).
Separation. Suppose ρ(ξ,ζ)=0 and put v=ξ−ζ. For every r, 0≤min(2−r,∣⟨v,wr⟩L2∣)≤0, and 2−r>0, so ⟨v,wr⟩L2=0. Let ε>0 be real. The set of terms of (wr)r is dense, so by Characterization of the Closure in a Metric Space by Open Balls there is r with ∥v−wr∥L2<ε, whence by linearity and Cauchy-Schwarz
∥v∥L22=⟨v,v−wr⟩L2+⟨v,wr⟩L2=⟨v,v−wr⟩L2≤∥v∥L2ε.
If ∥v∥L2>0, dividing by it gives ∥v∥L2≤ε for every real ε>0, which fails for ε=∥v∥L2/2. Hence ∥v∥L2=0 and ξ=ζ by claim 5.
So ρ is a metric on H, and its restriction to UA is a metric on UA.
Claim 2. Suppose first that ξn⇀ξ, and let ε>0 be real. Choose J∈N with 2−J<ε. For each r with r≤J, weak convergence and linearity give that the real sequence (⟨ξn−ξ,wr⟩L2)n has limit 0, so there is Nr∈N with ∣⟨ξn−ξ,wr⟩L2∣<ε for n≥Nr. Let N be the greatest element of the finite family (Nr)r≤J, which exists by Greatest Element of a Finite Family in a Totally Ordered Set. Let n≥N and r∈N. If r≤J then min(2−r,∣⟨ξn−ξ,wr⟩L2∣)≤∣⟨ξn−ξ,wr⟩L2∣<ε; if r>J then the minimum is at most 2−r≤2−J<ε. So ε is an upper bound of the defining set and ρ(ξn,ξ)≤ε for every n≥N. Hence the real sequence (ρ(ξn,ξ))n has limit 0.
Conversely suppose that sequence has limit 0. Fix r∈N. Since 2−r>0 there is N with ρ(ξn,ξ)<2−r for n≥N; for such n the minimum min(2−r,∣⟨ξn−ξ,wr⟩L2∣) is at most ρ(ξn,ξ)<2−r, so it cannot equal 2−r and therefore equals ∣⟨ξn−ξ,wr⟩L2∣≤ρ(ξn,ξ). Consequently, given a real ε>0 and choosing N′≥N with ρ(ξn,ξ)<min(ε,2−r) for every n≥N′, we obtain ∣⟨ξn−ξ,wr⟩L2∣≤ρ(ξn,ξ)<ε for every n≥N′. By linearity of the pairing the real sequence (⟨ξn,wr⟩L2)n therefore has limit ⟨ξ,wr⟩L2. Since ∥ξn∥L2≤RT1/2 for every n and the set of terms of (wr)r is dense in (H,dL2), claim 5 of Basic Properties of Weak Convergence in the Lebesgue Space of Square-Integrable Vector-Valued Functions gives ξn⇀ξ.
Claim 3. Let (ξn)n∈N be a sequence in UA. Its terms satisfy ∥ξn∥L2≤RT1/2, so by Bounded Sequences in the Lebesgue Space of Square-Integrable Vector-Valued Functions Have Weakly Convergent Subsequences there are natural numbers n1<n2<… and ξ∈H with ξnj⇀ξ. The set UA is convex and closed, so ξ∈UA by Closed Convex Subsets of the Lebesgue Space of Square-Integrable Vector-Valued Functions are Weakly Sequentially Closed. By claim 2 the real sequence (ρ(ξnj,ξ))j has limit 0, that is, the subsequence (ξnj)j converges to ξ in the metric space (UA,ρ), and ξ∈UA.
Thus every sequence in UA has a subsequence converging in (UA,ρ) to a point of UA, which is sequential compactness of UA as a subset of that metric space. By A Sequentially Compact Subset of a Metric Space is Compact it is therefore a compact subset of (UA,ρ).