NLA-lib Explorer

Matrix.rank_fromBlocks_zero₁₂_zero₂₁

Library · theorem

The rank of a block diagonal matrix is the sum of the ranks of its blocks. The blocks may be rectangular: \operatorname{rank} \begin{bmatrix} \mathbf{A} & \mathbf{0} \\ \mathbf{0} & \mathbf{D} \end{bmatrix} = \operatorname{rank} \mathbf{A} + \operatorname{rank} \mathbf{D}.

Matrix.rank_fromBlocks_zero₁₂_zero₂₁.{u_1, u_2, u_3, u_4, u_5} {K : Type u_1} [Field K]
  {l : Type u_2} {m : Type u_3} {n : Type u_4} {p : Type u_5} [Fintype n] [Fintype m]
  (A : Matrix l m K) (D : Matrix p n K) : (fromBlocks A 0 0 D).rank = A.rank + D.rank

Full source on GitHub

Import NLAlib.ForMathlib.LinearAlgebra.Matrix.Rank.