Commit 2026-11-17 16:29 d5671e17
View on Github →refactor(LinearAlgebra/Matrix/Rank): remove commutativity and finiteness requirements from Matrix.rank (#45133)
We have Matrix.cRank (Cardinal) / Matrix.eRank (ENat) / Matrix.rank (Nat), but the last one is defined differently (finrank mulVecLin.range) and so requires [CommSemiring R] and [Fintype n].
This redefines Matrix.rank as cRank.toNat (equivalently, the finrank of the column space). This unifies the three rank definitions and lets us use similar proofs and keep similar APIs.