So I was stuck with the famous Sylvester's determinant identity and don't know how to correctly interpret the difference between the sizes of identity matrices $I_m$ and $I_n$. The line that I dont' understand is: $$\det(I_m) \det(I_n - B I_m^{-1} (-A)) = \det(I_n + BA).$$
I understand that $\det(I_m) = 1$ but what if we rewrite it in the form: $$\det(I_m) \det(I_n - B I_m^{-1} (-A)) = \det(I_mI_n - B I_m I_m^{-1} (-A)).$$
Do we have any right to multipy $I_m$ by $I_n$? Maybe there is a special property of matrix block determinants? Which part am I missing?