Write β₯β
β₯ for the Euclidean norm and β£β
β£ for the absolute value on R. Claims 2, 5 and 6 of Elementary Properties of the Euclidean Norm on Rn are used as the identity dEβ(u,v)=β₯uβvβ₯, homogeneity β₯ΞΌuβ₯=β£ΞΌβ£β₯uβ₯, and the triangle inequality for the norm. Order arithmetic is taken from Elementary Arithmetic in an Ordered Field (claim 3 for translation of an inequality, claim 5 for multiplication by a nonnegative element) and from Elementary Order Arithmetic in an Ordered Field (claim 1 for strict compatibility with addition, claim 2 for mixed transitivity, claim 10 for strict compatibility with multiplication by a positive element). Points of Rn are added, scaled and subtracted coordinatewise by Sum of Points of Rn, Scalar Multiple of a Point of Rn and Difference, Dot Product, and Orthogonality in Rn, and Rn is a real vector space by Euclidean Space Rn is a Real Vector Space.
Let x,y lie in the set under consideration, let tβR satisfy 0β€t and tβ€1, and put z=tx+(1βt)y. Translating tβ€1 by βt gives 0β€1βt.
Step 1. zβa=t(xβa)+(1βt)(yβa). Indeed, for each index i distributivity gives
t(xiββaiβ)+(1βt)(yiββaiβ)=(txiβ+(1βt)yiβ)β(taiβ+(1βt)aiβ),
and taiβ+(1βt)aiβ=(t+(1βt))aiβ=1aiβ=aiβ by distributivity and the field axioms of the field R, so the two points agree in every coordinate.
Step 2. Using the identity for dEβ, the triangle inequality, homogeneity, and β£tβ£=t and β£1βtβ£=1βt, which hold because 0β€t and 0β€1βt,
dEβ(a,z)=β₯zβaβ₯β€β₯t(xβa)β₯+β₯(1βt)(yβa)β₯=tdEβ(a,x)+(1βt)dEβ(a,y),
where the last equality also uses the symmetry axiom of Metric Space. Note further that tr+(1βt)r=(t+(1βt))r=r.
Claim 2 (closed ball). Suppose dEβ(a,x)β€r and dEβ(a,y)β€r. Multiplying by the nonnegative elements t and 1βt gives tdEβ(a,x)β€tr and (1βt)dEβ(a,y)β€(1βt)r. Adding the first inequality translated by (1βt)dEβ(a,y) to the second translated by tr, and using transitivity of β€, gives
tdEβ(a,x)+(1βt)dEβ(a,y)β€tr+(1βt)r=r,
so dEβ(a,z)β€r by step 2 and transitivity. Hence zβB(a,r).
Claim 1 (open ball). Suppose dEβ(a,x)<r and dEβ(a,y)<r. If t=0 then z=0x+1y=y, and if t=1 then z=1x+0y=x, by the vector space axioms; in both cases z lies in BdEββ(a,r). Otherwise 0<t, and tξ =1 together with tβ€1 gives t<1, whence 0<1βt by translation by βt. Strict compatibility with multiplication by a positive element gives
tdEβ(a,x)<tr,(1βt)dEβ(a,y)<(1βt)r.
Adding (1βt)dEβ(a,y) to the first and tr to the second, then using mixed transitivity, gives
tdEβ(a,x)+(1βt)dEβ(a,y)<tr+(1βt)r=r,
and step 2 with mixed transitivity gives dEβ(a,z)<r. Hence zβBdEββ(a,r).
In both cases the defining condition of Convex Subset of Rn holds, so both sets are convex.