I just started learning what a sufficient statistic is:
Definition
A statistic $T(\mathbf{Y})$ is sufficient for an unknown parameter $\theta$ if the conditional distribution of the data $\mathbf{Y}$ given $T(\mathbf{Y})$ does not depend on $\theta$.
Example
Let $Y_1, \dots, Y_n$ be a i.i.d. $B(1, p)$. Let $T(\mathbf{Y}) = \sum_{i = 1}^n Y_i$ be a statistic. Show that $T(\mathbf{Y})$ is a sufficient statistic. Note that $T(\mathbf{Y}) \sim B(n, p)$ and therefore,
$$\begin{align} P(\mathbf{Y} = \mathbf{y} \vert T(\mathbf{Y}) = t) &= P(\mathbf{Y} = \mathbf{y} \vert \sum_{i = 1}^n Y_i = t) \\ &= \dfrac{P(Y_1 = y_1, \dots, Y_n = y_n, \sum_{i = 1}^n Y_i = t)}{P(\sum_{i = 1}^n Y_i = t)} \\ &= \dfrac{P(Y_1 = y_1, \dots, Y_n = y_n)}{P(\sum_{i = 1}^n Y_i = t)} \\ &= \dfrac{p^{\sum_{i = 1}^n y_i}(1 - p)^{n - \sum_{i = 1}^n y_i}}{{n\choose{t}}p^{\sum_{i = 1}^n y_i}(1 - p)^{n - \sum_{i = 1}^n y_i}} = \dfrac{1}{{n\choose{t}}} \end{align}$$
that does not depend on the unknown $p$.
I'm having difficulty following this example, and I would appreciate it if people could please help me understand what's going on here.
How is it that $P(Y_1 = y_1, \dots, Y_n = y_n, \sum_{i = 1}^n Y_i = t) = P(Y_1 = y_1, \dots, Y_n = y_n)$ in the numerator? What happened to $\sum_{i = 1}^n Y_i = t$?
What is the reasoning the led from $\dfrac{P(Y_1 = y_1, \dots, Y_n = y_n)}{P(\sum_{i = 1}^n Y_i = t)}$ to $\dfrac{p^{\sum_{i = 1}^n y_i}(1 - p)^{n - \sum_{i = 1}^n y_i}}{{n\choose{t}}p^{\sum_{i = 1}^n y_i}(1 - p)^{n - \sum_{i = 1}^n y_i}}$? I understand that the binomial probability mass function was used here for the joint probability, but, since I'm not experienced with joint probabilities, I'm still not clear on the reasoning involved here. Furthermore, I don't understand why the binomial coefficient ${n\choose{t}}$, which is part of the binomial probability mass function, was used in the denominator but not the numerator.