Principal submatrices and row prefixes.
def
Hex.Matrix.principalSubmatrix
{R : Type u_1}
{n : Nat}
(M : Matrix R n n)
(k : Nat)
(hk : k ≤ n)
:
Matrix R k k
Leading principal k × k submatrix of a square matrix: the top-left block
indexed by {0, …, k-1} along both axes. Includes the empty submatrix
(k = 0) and is convenient for Bareiss pivot/minor statements.