It is commonly stated that if $X_i$ are iid $N(\mu, \sigma)$, then with $\hat{X}$ the sample mean, and $\hat{S}$ the sample error (sample standard deviation), then $\frac{ \hat{X}-\mu}{\hat{S}/\sqrt{n}}$ follows a t distribution with $n-1$ degrees of freedom.
e.g., wikipedia link states it, and another Wikipedia link states it as the natural way a t distribution arises, but nothing proves this fact.
How do we know/prove this?
The definition of a t distributed variable is $\frac{U}{\sqrt{W/(n-1)}}$ with $U$~$N(0,1)$, $W$~$\chi^2(n-1)$.
So we can write $$\frac{ \hat{X}-\mu}{\hat{S}/\sqrt{n}} = \frac{ \frac{\hat{X}-\mu}{\sigma/\sqrt{n}}}{ \frac{\hat{S}}{\sigma}} = \frac{U}{D}$$.
$U$ is $N(0,1)$ b/c $X_i$ are, meaning $\hat{X}\sim N(\mu, \sigma/\sqrt n)$.
We need to show that the bottom, $D = \sqrt{W/(n-1)}$ with $W = \frac{(n-1)S^2}{\sigma^2} \sim \chi^2(n-1)$. Looking at other post here, it seems the proof is not quite complete, but it gives a good start. Basically, the proof is: (1.) define auxiliary variable $V=\sum_{i=1}^n(\frac{X_i-\mu}{\sigma})^2$, clearly $\chi^2(n)$. (2.) Algebra shows that $V= W + Y$, where $W = \frac{(n-1)\hat{S}^2}{\sigma^2 }$ (quantity of interest) and $ Y = (\frac{n(\bar{X}-\mu)}{\sigma})^2$ which is $\chi^2(1)$. (3.) Conclude that this implies $W$ is $\chi^2(n-1)$.
So I can follow (1.) and (2.). I do not think (3.) follows directly from (2.) without justification. (e.g., if $W$ and $Y$ were independent, I think the relationship above shows $W$ is $\chi^2(n+1)$!
Overall, how do we prove (3.)? OR Please provide another proof of this whole thing. I just want to understand this rigorously.