Prove that the determinant of a triangular matrix is the product of its diagonal entries.
My attempt:
Suppose $A$ is an $n\times n$ matrix, then:
$$\det(A) = \sum_{\sigma} (\operatorname{sgn} \sigma) A_{1\sigma_1} \cdots A_{n\sigma_n}$$
The product of diagonal entries is $A_1\sigma_1 \cdots A_n\sigma_n$ when $\sigma_i = i$ for $i = 1, \ldots, n$.
I claim that when the permutation is not an identity, there exist $i$ and $j$ s.t. $\sigma_i < i$ and $\sigma_j > j$.
Let $\sigma_j \neq j$, then $\sigma_k = j$ where either $k > j$ or $k < j$.
If $k > j$, let $\sigma_\ell = k$ where $\ell > k$ or $\ell < k$.
If $\ell < k$, done. Otherwise, $\ell > k$ and suppose for $\sigma_\ell, \ldots, \sigma_n$ that $n>\cdots>\ell$ and follow the above sequence of operations incrementally.
Then, $\sigma_n = n - 1$.
This implies that $\sigma_p = n$ where $p \leq j$.
If $k <j$, let $\sigma_h = k$ where $h > k$ or $h < k$.
Likewise, if $h > k$, done. Otherwise, $h < k$ and suppose for $\sigma_1, \ldots, \sigma_h$ that $1<\ldots<h$ and follow that above sequence of operations incrementally.
Then, $\sigma_1 = 2$.
This implies that $\sigma_q = 1$ where $q \geq j$.
Thus, there is at least one $i$ and $j$ s.t. $\sigma_i < i$ and $\sigma_j > j$.
By definition, if $A$ is upper-triangular, $A_{ij} = 0$ when $i > j$ and so, $A_{i\sigma_i} = 0$. Alternatively, if $A$ is lower triangular, $A_{ij} = 0$ when $i < j$ and $A_{j\sigma_j} = 0$.
So, the determinant of a triangular matrix is indeed the product of diagonal entries.
QED.
I'm not sure if my proof is correct and I wanted someone to go over it. Please let me know if I made any mistake(s) anywhere and if so what I can and should do to correct it.