Throughout we use the order arithmetic of Elementary Order Arithmetic in an Ordered Field. Its clauses 1 and 10 are stated for strict inequalities; the corresponding statements for ≤, and the transitivity of ≤, follow by treating the equality case (and, for multiplication, the case of a zero multiplier) separately, and we use them under this convention without further comment. We write ι:N→R for the canonical map of R.
Claim 1, necessity. Assume u is lower semicontinuous at x relative to A. Let (yj)j∈N be a sequence in A converging to x in (A,dA) and let ε be a real number with 0<ε. By the definition of lower semicontinuity at x there is a real δ>0 such that every y∈A with d(x,y)<δ satisfies u(x)−ε<u(y). By the definition of convergence in (A,dA) there is N∈N such that dA(yj,x)<δ for every j≥N. Since dA is the restriction of d and a metric is symmetric, d(x,yj)=dA(x,yj)=dA(yj,x)<δ for every such j, and yj∈A. Hence u(x)−ε<u(yj) for every j≥N, which is the stated condition.
Claim 1, sufficiency. We prove the contrapositive: assuming that u is not lower semicontinuous at x relative to A, we produce a sequence in A converging to x for which the condition fails.
By the negation of the definition there is a real ε0>0 such that for every real δ>0 there exists y∈A with d(x,y)<δ for which u(x)−ε0<u(y) is false. Since ≤ is a total order on R, the failure of u(x)−ε0<u(y) means exactly that u(y)≤u(x)−ε0.
For j∈N, claim 3 of Properties of the Canonical Map from the Natural Numbers to an Ordered Field gives 0<ι(j), so ι(j)−1 exists and 0<ι(j)−1. Put
Aj={y∈A:d(x,y)<ι(j)−1 and u(y)≤u(x)−ε0}.
Applying the previous paragraph with δ=ι(j)−1 shows that each Aj is nonempty, and every Aj is a subset of the one set A. Hence Axiom of Countable Choice furnishes a sequence (yj)j∈N with yj∈Aj for every j∈N.
We check that (yj)j∈N converges to x in (A,dA). Let ε be a real number with 0<ε. By claim 3 of The Archimedean Property of the Real Numbers there is n∈N with 0<ι(n)−1<ε. Let j∈N with j≥n. If j=n then ι(j)−1=ι(n)−1. If n<j then ι(n)<ι(j) by claim 6 of Properties of the Canonical Map from the Natural Numbers to an Ordered Field. In either case ι(n)≤ι(j), and both numbers are positive. Multiplying ι(n)≤ι(j) by the positive number ι(j)−1 gives ι(n)ι(j)−1≤ι(j)ι(j)−1=1, and multiplying that inequality by the positive number ι(n)−1 gives
ι(j)−1=ι(n)−1ι(n)ι(j)−1≤ι(n)−1.
Since yj∈Aj we have dA(yj,x)=d(x,yj)<ι(j)−1≤ι(n)−1<ε, using symmetry of the metric as above. Therefore (yj)j∈N converges to x in (A,dA).
Finally, the condition of claim 1 fails for this sequence: taking ε=ε0 in that condition would give N∈N with u(x)−ε0<u(yj) for every j≥N; but yN∈AN gives u(yN)≤u(x)−ε0, whence u(x)−ε0<u(yN)≤u(x)−ε0, so u(x)−ε0<u(x)−ε0, which is impossible. This proves the contrapositive and completes claim 1.
Claim 2. Write a=liminfju(yj) and, for k∈N, Aku={u(ym):m∈N, m≥k}, so that by the definition of the limit inferior a=sup{infAku:k∈N}.
Let ε be a real number with 0<ε. By claim 1 there is N∈N with u(x)−ε<u(yj), hence u(x)−ε≤u(yj), for every j≥N. Thus u(x)−ε is a lower bound of ANu, and since infANu is the greatest lower bound of ANu we get u(x)−ε≤infANu. As infANu belongs to the set {infAku:k∈N} and a is an upper bound of that set, infANu≤a. Therefore
u(x)−ε≤afor every real ε>0.(∗)
Suppose, for contradiction, that u(x)≤a fails. Since ≤ is a total order this gives a<u(x), so 0<u(x)−a. By claim 8 of Elementary Order Arithmetic in an Ordered Field there is a real ε1 with 0<ε1 and ε1+ε1=u(x)−a. Then u(x)−ε1=a+ε1, and a<a+ε1 because 0<ε1. Applying (∗) with ε=ε1 gives a+ε1≤a, so a<a+ε1≤a and hence a<a, which is impossible. Therefore u(x)≤a, which is claim 2.
Claim 3. By the definition, u is lower semicontinuous on A precisely when it is lower semicontinuous at x relative to A for every x∈A. By claim 1 the latter holds at a given x∈A precisely when the stated sequential condition holds at that x. Quantifying over x∈A gives claim 3.