Proof (determinant of block-triangular matrix)

Let $n=k+l$, and $$ \begin{align*} C = (c_{ij}) = \pmat{A & * \\ 0 & B}. \end{align*} $$

Proof 1

Recall Leibniz formula $$ \begin{align*} \det(C) = \sum_{\sigma\in S_n} \sign(\sigma) \prod_{i=1}^{n} c_{\sigma(i),i}. \end{align*} $$ The zero block on the bottom-left corner means that $c_{ij} = 0$ for $i\geq k+1$ and $j\leq k$. Therefore the product $\prod_{i=1}^{n} c_{\sigma(i),i}\neq 0$ only when $\sigma(X) = X$ where $X = \set{1,2,\ldots,k}$. By bijectivity, $\sigma(Y) = Y$ where $Y=\set{k+1, k+2, \ldots, n}$. Therefore we can write $\sigma = \tau\theta$ where $\tau\in \mathrm{Sym}(X)$ and $\theta \in \mathrm{Sym}(Y)$.

And conversely, given $\tau \in \mathrm{Sym}(X)$ and $\theta \in \mathrm{Sym}(Y)$, we can obtain $\sigma = \tau\theta \in S_n$ preserving $X$ and $Y$.

Then $$ \begin{align*} \det(C) ={}& \sum_{\tau\in \mathrm{Sym}(X)} \sum_{\theta\in \mathrm{Sym}(Y)} \sign(\tau \theta) \prod_{i=1}^{n} c_{\tau\theta(i),i} \\ ={}& \sum_{\tau\in \mathrm{Sym}(X)} \sum_{\theta\in \mathrm{Sym}(Y)} \sign(\tau)\sign(\theta) \left(\prod_{i=1}^{k} c_{\tau\theta(i),i}\right) \left(\prod_{i=k+1}^{n} c_{\tau\theta(i),i}\right) \\ ={}&\sum_{\tau\in \mathrm{Sym}(X)} \sum_{\theta\in \mathrm{Sym}(Y)} \sign(\tau)\sign(\theta) \left(\prod_{i=1}^{k} c_{\tau(i),i}\right) \left(\prod_{i=k+1}^{n} c_{\theta(i),i}\right) \\ ={}&\left(\sum_{\tau\in \mathrm{Sym}(X)} \sign(\tau) \prod_{i\in X} c_{\tau(i),i}\right) \left(\sum_{\theta\in \mathrm{Sym}(Y)} \sign(\theta) \prod_{i\in Y} c_{\theta(i),i}\right) \\ ={}& \det(A) \det(B). \end{align*} $$

Proof 2

If $\det A=0$, then columns of $A$ are linearly dependent. Then the first $k$ columns of $C$ are also linearly dependent, so $\det C = 0 = \det A \det B$.

Otherwise, note $$ \begin{align*} &\pmat{A & D \\ 0 & B} \pmat{I_k & -A\inv D \\ 0 & I_l} = \pmat{A & 0 \\ 0 & I_l} \pmat{I_k & 0 \\ 0 & B} \\ \implies & \det C \det \pmat{I_k & -A\inv D \\ 0 & I_l} = \det \pmat{A & 0 \\ 0 & I_l} \det \pmat{I_k & 0 \\ 0 & B}. \end{align*} $$ By Laplace expansion, $$ \begin{align*} \det \pmat{I_k & -A\inv D \\ 0 & I_l} ={}& 1 \\ \det \pmat{A & 0 \\ 0 & I_l} ={}& \det A \\ \det \pmat{I_k & 0 \\ 0 & B} ={}& \det B. \end{align*} $$ Substituting gives the result.