NLA-lib Explorer

IsIdempotentElem.exists_fromBlocks_of_rank_add_eq

Library ¡ theorem

Unitary canonical form of an idempotent. For an idempotent \mathbf{P} of rank r and nullity s, there is an orthonormal basis in which \mathbf{P} consists of g oblique planes with blocks \begin{\mathbf{b}matri\mathbf{x}}1 & \sqrt{\sigma_i(\mathbf{P})^2-1} \\ 0 & 0\end{\mathbf{b}matri\mathbf{x}}, and scalar identity and zero blocks. Exactly the first g singular values exceed one, and each positive singular value is at least one. This includes empty matrices and ranks zero and full. [HornJohnson2013, Corollary 3.4.3.3].

IsIdempotentElem.exists_fromBlocks_of_rank_add_eq.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_2} [Fintype n] {P : Matrix n n 𝕜} (hP : IsIdempotentElem P) {s : ℕ}
  (hc : P.rank + s = Fintype.card n) :
  ∃ g ≤ min P.rank s,
    (∀ (i : ℕ), 1 < singularValues P i ↔ i < g) ∧
      (∀ i < P.rank, 1 ≤ singularValues P i) ∧
        ∃ H,
          HasOrthonormalCols H ∧
            Há´´ * P * H =
              fromBlocks 1 (of fun i j ↦ if ↑i = ↑j then ↑√(singularValues P ↑i ^ 2 - 1) else 0) 0 0

Full source on GitHub

Import NLAlib.Matrix.Subspaces.ObliqueCanonicalForm.