Theorem (exists_hasOrthonormalCols_mul_sqrt_eq). A matrix with at least as many rows as columns is an isometry times its absolute value: if \lvert n \rvert \le \lvert m \rvert, then \mathbf{A} = \mathbf{U}(\mathbf{A}^{\mathsf{H}}\mathbf{A})^{1/2} for some \mathbf{U} with orthonormal columns. [HornJohnson2013, Theorem 7.3.1].
Headline General form: sizes are index types
Lean statement and details
NLAlib.exists_hasOrthonormalCols_mul_sqrt_eq.{u_1, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜]
{m : Type u_3} {n : Type u_4} [Fintype m] [Fintype n] [DecidableEq n] (A : Matrix m n 𝕜)
(h : Fintype.card n ≤ Fintype.card m) : ∃ U, HasOrthonormalCols U ∧ U * CFC.sqrt (Aᴴ * A) = A