Derivation (F-test as likelihood ratio test)
We apply the maximum likelihood derived here to see the maximum likelihood under $H_0$ is $$ \begin{align*} \sup_{\substack{μ\in \mathrm{Col}(X_0), \\ σ^2>0}} L_{Y\mid X}(μ, σ^2) \propto\|(I - P_0) Y\| ^{-n} \end{align*} $$ and the maximum likelihood under $H_1$ is $$ \begin{align*} \sup_{\substack{μ\in \mathrm{Col}(X), \\ σ^2>0}} L_{Y\mid X}(μ, σ^2) \propto\|(I - P) Y\| ^{-n}. \end{align*} $$
Therefore the likelihood ratio is $$ \begin{align*} Λ ={}& \left(\frac{\|(I-P)Y\|^2}{\|(I-P_0)Y\|^2}\right)^{-n/2} \\ ={}& \left(\frac{\|(I-P)Y\|^2 + \|(P - P_0)Y\|^2}{\|(I-P)Y\|^2}\right)^{n/2} \\ ={}& \left(1 + \frac{\|(P-P_0) Y\|^2}{\|(I - P)Y\|^2}\right)^{n/2}. \end{align*} $$ Therefore the likelihood ratio test is to reject $H_0$ when $$ \begin{align*} Λ>\text{const.} \iff \frac{\|(P-P_0)Y\|^2}{\|(I-P)Y\|^2}>\text{const.} \iff\frac{\|(P-P_0)Y\|^2/(p-p_0)}{\|(I-P)Y\|^2/(n-p)} > c \text{ const.}. \end{align*} $$