Let $A,B < G$ be two subgroups of some group $G$, then I have a question on the proof of the following: $$ |AB| = \frac{|A||B|}{|A \cap B|}. $$ Proof: Let $D = A \cap B$, arrange $A$ and $B$ in left cosets and right cosets regarding $D$ (which is also a subgroup) $$ A = D \cup s_2 D \cup s_3 D \cup \ldots \cup s_n D, \quad B = D \cup D t_2 \cup D t_3 \cup \ldots \cup D t_m $$ Now the fact that $\frac{|A||B|}{|D|}$ are distinct results from the following equations: If $$ s_{\alpha}D D t_{\beta} = s_{\alpha_1} D D t_{\beta_1} $$ then $$ s_{\alpha_1}^{-1} s_{\alpha} D = D t_{\beta} t_{\beta}^{-1} $$ As the first member of the last equation represents an element of $A$ while the second member represents an element of $B$, it results that the last equation implies $\alpha_1 = \alpha$ and $\beta_1 = \beta$.
The last step is not clear to me, why does $\alpha_1 = \alpha$ and $\beta_1 = \beta$ follows? Is it the case that if $aD = Db$ for $a \in A$ and $b \in B$ that $a=b=1$ follows? I don't believe this and cannot prove it either? Could someone please explain the last step?