Write Rn for Euclidean space, a real vector space by Euclidean Space Rn is a Real Vector Space, with the sum of points and the dot product, and write Pz for the matrix-vector product. By Transpose of a Real Matrix, symmetry of a real n×n matrix P means Pij=Pji for all i,j∈[n]. Record also that 0t=0 for every t∈R, since 0t=(0+0)t=0t+0t by distributivity and claim 2 of Additive Cancellation and Elementary Additive Identities in a Field applies.
Claim 1. By Sum of Real Matrices, Difference of Real Matrices and Scalar Multiple of a Real Matrix the matrices X+Y, X−Y and μX have entries Xij+Yij, Xij−Yij and μXij. Since Xij=Xji and Yij=Yji for all i,j∈[n], each of these expressions is unchanged when i and j are interchanged, so all three matrices are symmetric.
Claim 2. The order ≤ on R is a total order, hence reflexive, transitive and antisymmetric. Reflexivity gives z⋅(Xz)≤z⋅(Xz) for every z∈Rn, that is X⪯X. If X⪯Y and Y⪯Z, then for every z∈Rn we have z⋅(Xz)≤z⋅(Yz) and z⋅(Yz)≤z⋅(Zz), so transitivity gives z⋅(Xz)≤z⋅(Zz) and X⪯Z.
Claim 3. Let z∈Rn. By claim 1 of Linearity of the Matrix-Vector Product and the Quadratic Form as a Double Sum and claim 5 of Bilinearity and Symmetry of the Dot Product on Rn,
z⋅((X+Z)z)=z⋅(Xz)+z⋅(Zz),z⋅((Y+Z)z)=z⋅(Yz)+z⋅(Zz).
Hence z⋅((Y+Z)z)−z⋅((X+Z)z) and z⋅(Yz)−z⋅(Xz) are the same real number, and by claim 3 of Elementary Arithmetic in an Ordered Field each of the inequalities z⋅(Xz)≤z⋅(Yz) and z⋅((X+Z)z)≤z⋅((Y+Z)z) is equivalent to the nonnegativity of that number. Quantifying over z∈Rn gives claim 3.
Claim 4. For z∈Rn, claim 1 of Linearity of the Matrix-Vector Product and the Quadratic Form as a Double Sum and claim 5 of Bilinearity and Symmetry of the Dot Product on Rn give z⋅((μX)z)=μ(z⋅(Xz)), and likewise for Y. If X⪯Y and 0≤μ, then claim 5 of Elementary Arithmetic in an Ordered Field gives μ(z⋅(Xz))≤μ(z⋅(Yz)) for every z, that is μX⪯μY.
Claim 5. By claim 1 the matrix Y−X is symmetric. For z∈Rn, claim 1 of Linearity of the Matrix-Vector Product and the Quadratic Form as a Double Sum and claim 5 of Bilinearity and Symmetry of the Dot Product on Rn give
z⋅((Y−X)z)=z⋅(Yz)−z⋅(Xz),
so by claim 3 of Elementary Arithmetic in an Ordered Field the inequality 0≤z⋅((Y−X)z) holds if and only if z⋅(Xz)≤z⋅(Yz). Quantifying over z∈Rn and comparing with Symmetric, Positive Semidefinite, and Positive Definite Real Matrices and Semidefinite Order on Symmetric Real Matrices gives claim 5.
Claim 6. Set W=Y−X, symmetric by claim 1. If X⪯Y and Y⪯X, then for every z∈Rn both z⋅(Xz)≤z⋅(Yz) and z⋅(Yz)≤z⋅(Xz) hold, so z⋅(Xz)=z⋅(Yz) by antisymmetry of the total order. As in the proof of claim 5 this gives
z⋅(Wz)=0for every z∈Rn.
Let u,v∈Rn. Taking z=u+v and expanding by claim 3 of Linearity of the Matrix-Vector Product and the Quadratic Form as a Double Sum and claims 2 and 5 of Bilinearity and Symmetry of the Dot Product on Rn,
0=(u+v)⋅(W(u+v))=u⋅(Wu)+u⋅(Wv)+v⋅(Wu)+v⋅(Wv)=u⋅(Wv)+v⋅(Wu).
By claim 4 of Linearity of the Matrix-Vector Product and the Quadratic Form as a Double Sum,
u⋅(Wv)=i=1∑nj=1∑nWijuivj,v⋅(Wu)=i=1∑nj=1∑nWijviuj.
Interchanging the order of summation in the second double sum by Interchange of a Finite Double Sum and then renaming the two summation indices turns it into ∑i=1n∑j=1nWjivjui, which equals u⋅(Wv) because Wji=Wij. Hence u⋅(Wv)+u⋅(Wv)=0, that is 2(u⋅(Wv))=0 with 2=1+1; since 0<2 by claim 8 of Elementary Order Arithmetic in an Ordered Field, the element 2 is nonzero and invertible, and multiplying by 2−1 gives u⋅(Wv)=0.
Finally, for i∈[n] let ei∈Rn be the point whose ith coordinate is 1 and whose remaining coordinates are 0, and let i,j∈[n]. In the double sum ∑k=1n∑l=1nWkl(ei)k(ej)l every summand of the inner sum with l=j vanishes, because (ej)l=0 and 0t=0; so claim 7 of Properties of Finite Sums evaluates the inner sum as Wkj(ei)k. For the same reason every summand of the resulting outer sum with k=i vanishes, and a second application of claim 7 evaluates the whole double sum as Wij. Thus Wij=ei⋅(Wej)=0 for all i,j∈[n]. By Difference of Real Matrices this reads Yij−Xij=0, so Xij=Yij by claim 3 of Additive Cancellation and Elementary Additive Identities in a Field, and therefore X=Y.