We consider a matrix $M = (m_{ij}) \in \mathcal{S}_n(\mathbb{R})$ such that for every $(i,j) \in \llbracket 1,n\rrbracket^2$, $m_{ij} \geqslant 0$ and $m_{ii} = 0$. We assume that $\Psi(M)$ has at least one strictly negative eigenvalue. Let $T_0$ be the unique symmetric matrix with non-negative eigenvalues minimizing $\|\Psi(M) - T\|_{\mathcal{M}_n(\mathbb{R})}$ over $\mathcal{S}_n^+(\mathbb{R})$.
We assume in this question that $T_0$ is non-zero. We want to show that there exists a minimal integer $p \in \llbracket 1, n-1\rrbracket$ that we will specify such that we can determine vectors $U_1, U_2, \cdots, U_n$ elements of $\mathbb{R}^p$ satisfying the condition $\sum_{i=1}^n U_i = 0$ and for which the matrix $\widetilde{M} = \left(\|U_i - U_j\|^2\right)_{(i,j) \in \llbracket 1,n\rrbracket^2}$ satisfies the relation $\Psi(\widetilde{M}) = T_0$.
We use the notations of part II and denote $U = (U_1 | U_2 | \cdots | U_n)$.
a) Show that the integer $p$ satisfies $p \geqslant \operatorname{rg}(T_0)$ and that $\operatorname{rg}(T_0) \in \llbracket 1, n-1\rrbracket$.
b) Construct a matrix $U \in \mathcal{M}_{r,n}(\mathbb{R})$ such that ${}^t UU = T_0$ for $r = \operatorname{rg}(T_0)$.
Hint. Assuming that ${}^t Q_0 T_0 Q_0$ is of the form $\left(\begin{array}{ll}\Delta & \\ & 0_{n-r}\end{array}\right)$ with $\Delta \in \mathcal{M}_r(\mathbb{R})$, diagonal with non-zero values, we will seek $U$ in the form $U = \left((\Delta_1)(0)\right) \times Q_0 \in \mathcal{M}_{r,n}(\mathbb{R})$ with $\Delta_1 \in \mathcal{M}_r(\mathbb{R})$, diagonal.
c) Show that $\sum_{i=1}^n U_i = 0$ (we may study the vector $UZ$).
d) Deduce that $\Psi(\widetilde{M}) = T_0$ with $\widetilde{M} = \left(\|U_i - U_j\|^2\right)_{(i,j) \in \llbracket 1,n\rrbracket^2}$ and conclude.