NLA-lib Explorer

Sylvester's rank inequality

Library · Result group

Theorem (Matrix.rank_add_rank_le_card_add_rank_mul). Sylvester's rank inequality. For \mathbf{A} with column index n and \mathbf{B} with row index n, \operatorname{rank} \mathbf{A} + \operatorname{rank} \mathbf{B} \le \lvert n \rvert + \operatorname{rank}(\mathbf{A}\mathbf{B}). [HornJohnson2013, §0.4.5]; stated there as \operatorname{rank} \mathbf{A} + \operatorname{rank} \mathbf{B} - n \le \operatorname{rank}(\mathbf{A}\mathbf{B}), here additively and over any field.

Headline General form: sizes are index types

Lean statement and details
Matrix.rank_add_rank_le_card_add_rank_mul.{u_1, u_3, u_4, u_5} {K : Type u_1} [Field K]
  {m : Type u_3} {n : Type u_4} {p : Type u_5} [Fintype n] [Fintype p] (A : Matrix m n K)
  (B : Matrix n p K) : A.rank + B.rank ≤ Fintype.card n + (A * B).rank

Full source on GitHub

Copy link

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.