Decomposition of a dot-product when row $i$ of $g$ is lower-triangular with $1$ on the diagonal: $\sum_k g_{ik} h_k = h_i + \sum_{k < i} g_{ik} h_k$.
Inverse of a lower unitriangular matrix vanishes strictly above the diagonal (recomputed inside this file for the clearing-algorithm proofs).
Diagonal entries of the inverse of a lower unitriangular matrix are $1$ (local recomputation).
For a lower unitriangular Iwahori matrix $g$, the strictly-below-diagonal entries of $g^{-1}$ lie in the maximal ideal $\mathfrak m$.
The inverse of a lower unitriangular Iwahori matrix is again lower unitriangular and Iwahori: the lower-unipotent Iwahori subgroup is closed under taking inverses.
Decomposition of a dot-product when column $j$ of $g$ is upper-triangular with $1$ on the diagonal: $\sum_k h_k g_{kj} = h_j + \sum_{k < j} h_k g_{kj}$.
Inverse of an upper unitriangular matrix vanishes strictly below the diagonal (recomputed inside this file for the clearing-algorithm proofs).
Diagonal entries of the inverse of an upper unitriangular matrix are $1$ (local recomputation).
For an upper unitriangular Iwahori matrix $g$, the strictly-above-diagonal entries of $g^{-1}$ lie in the integers $\mathcal O$.
The inverse of an upper unitriangular Iwahori matrix is again upper unitriangular and Iwahori: the upper-unipotent Iwahori subgroup is closed under taking inverses.
The product of two lower unitriangular Iwahori matrices is again lower unitriangular and Iwahori: the lower-unipotent Iwahori subgroup is closed under multiplication.
The product of two upper unitriangular Iwahori matrices is again upper unitriangular and Iwahori: the upper-unipotent Iwahori subgroup is closed under multiplication.
Inductive auxiliary for the first-column clearing step: there exists a lower unitriangular Iwahori matrix $L$ such that $(L \cdot g)_{i, 0} = 0$ for all $0 < i \le m$ while preserving the $(0, 0)$-entry of $g$.
First-column clearing: for any Iwahori matrix $g$, there exists a lower unitriangular Iwahori matrix $L$ such that $L \cdot g$ has zeros in every entry of the first column below the $(0,0)$ position, while preserving the $(0, 0)$-entry.
First-row clearing: given an Iwahori matrix $g$ whose first column is already cleared, there exists an upper unitriangular Iwahori matrix $U$ such that $g \cdot U$ has zeros in the first row to the right of the $(0,0)$ position, while preserving the first column and the $(0, 0)$-entry.
Extract the lower-right $n \times n$ block of a cleared $(n+1) \times (n+1)$ Iwahori matrix: given that $g$ has zero first column and first row off the diagonal, the lower-right block is an Iwahori element of $\mathrm{GL}_n(k)$.
Lift an $n \times n$ Iwahori decomposition of the lower-right block $D$ of a cleared $(n + 1) \times (n + 1)$ Iwahori matrix $g$ back to an Iwahori decomposition of $g$ itself via the block embedding.
Inductive step of the Iwahori decomposition: assuming existence of the decomposition for $n$, derive existence for $n + 1$ by clearing the first row and column and applying the induction hypothesis to the lower-right block.