Suppose that $A$ is an $m \times n$ matrix. The $(i, j)$-entry of $A$ is denoted as $[A]_{i,j}$.
Suppose that $A$ is an $m \times n$ matrix. Suppose that $i_1$, $i_2$, $\dots$, $i_s$ are distinct integers less than or equal to $m$, and that $j_1$, $j_2$, $\dots$, $j_t$ are distinct integers less than or equal to $n$. The matrix obtained from $A$ by removing rows $i_1$, $i_2$, $\dots$, $i_s$ and columns $j_1$, $j_2$, $\dots$, $j_t$ is denoted as $A({i_1,\dots,i_s}|{j_1,\dots,j_t})$.
If $A$ is an $n \times n$ matrix, we see $A({1,2,\dots,n}|{1,2,\dots,n})$ as a "zero-by-zero matrix" for the sake of convenience.
Suppose that $A$ is an $m \times n$ matrix. Suppose that $i_1$, $i_2$, $\dots$, $i_s$ are distinct integers less than or equal to $m$, and that $j_1$, $j_2$, $\dots$, $j_t$ are distinct integers less than or equal to $n$. The matrix obtained from $A$ by removing all rows other than rows $i_1$, $i_2$, $\dots$, $i_s$ and all columns other than $j_1$, $j_2$, $\dots$, $j_t$ is denoted as $\displaystyle A\binom{i_1,\dots,i_s}{j_1,\dots,j_t}$.
Example. Let $$ A = \begin{bmatrix} 1 & 2 & 3 & 4 & 5 \\ 6 & 7 & 8 & 9 & 10 \\ 11 & 12 & 13 & 14 & 15 \\ 16 & 17 & 18 & 19 & 20 \\ \end{bmatrix}.$$ Then $$A({1,2}|{3}) = \begin{bmatrix} 11 & 12 & 14 & 15 \\ 16 & 17 & 19 & 20 \\ \end{bmatrix},$$ and $$A\binom{1,2}{3} = \begin{bmatrix} 3 \\ 8 \\ \end{bmatrix}.$$
Suppose that $A$ is an $n \times n$ matrix. The determinant of $A$, $\det {(A)}$ is defined as follows: $$ \det {(A)} = \begin{cases} [A]_{1,1}, & n = 1; \\ \displaystyle \sum_{i = 1}^{n} {(-1)^{i+1} [A]_{i,1} \det {(A(i|1))}}, & n \geq 2. \end{cases} $$
It should be noted that we can simply write $$ \det {(A)} = \sum_{i = 1}^{n} {(-1)^{i+1} [A]_{i,1} \det {(A(i|1))}} $$ if we define the determinant of a "zero-by-zero matrix" to be $1$.
Here are the generalized Laplace expansions, one with respect to columns and the other with respect to rows.
Theorem 1. Suppose that $A$ is an $n \times n$ matrix, that $j_1$, $j_2$, $\dots$, $j_k$ are distinct positive integers less than or equal to $n$, and that $j_1 < j_2 < \dots < j_k$. Then $$ \begin{aligned} \det {(A)} = \sum_{1 \leq i_1 < i_2 < \dots < i_k \leq n} {\det {\left( A\binom{i_1, i_2, \dots, i_k} {j_1, j_2, \dots, j_k} \right)}} (-1)^{i_1 + i_2 + \dots + i_k + j_1 + j_2 + \dots + j_k} \det {(A({i_1,i_2,\dots,i_k}|{j_1,j_2,\dots,j_k}))}. \end{aligned} $$
Theorem 2. Suppose that $A$ is an $n \times n$ matrix, that $i_1$, $i_2$, $\dots$, $i_k$ are distinct positive integers less than or equal to $n$, and that $i_1 < i_2 < \dots < i_k$. Then $$ \begin{aligned} \det {(A)} = \sum_{1 \leq j_1 < j_2 < \dots < j_k \leq n} {\det {\left( A\binom{i_1, i_2, \dots, i_k} {j_1, j_2, \dots, j_k} \right)}} (-1)^{i_1 + i_2 + \dots + i_k + j_1 + j_2 + \dots + j_k} \det {(A({i_1,i_2,\dots,i_k}|{j_1,j_2,\dots,j_k}))}. \end{aligned} $$
How does one prove the two theorems?