Theorem (exists_perm_isLU_norm_le). Partial pivoting. Every square matrix \mathbf{A} over an RCLike field has a row-permuted LU factorization \mathbf{L}\mathbf{U} in which the entries of \mathbf{L} are at most one in absolute value and the entries of \mathbf{U} exceed those of \mathbf{A} by a factor at most 2^{\lvert n \rvert - 1}: if \lvert \mathbf{A}_{i,j} \rvert \le \mathbf{M} for all i, j, then \lvert \mathbf{L}_{i,j} \rvert \le 1 and \lvert \mathbf{U}_{i,j} \rvert \le 2^{\lvert n \rvert - 1} \mathbf{M}. [GolubVanLoan2013, §3.4.5]; [Higham2002, §9.3].
Headline General form: sizes are index types
Lean statement and details
NLAlib.exists_perm_isLU_norm_le.{u_3, u_4} {n : Type u_3} [LinearOrder n] [Fintype n] {𝕜 : Type u_4}
[RCLike 𝕜] (A : Matrix n n 𝕜) {M : ℝ} (hM : ∀ (i j : n), ‖A i j‖ ≤ M) :
∃ σ L U,
IsLU (A.submatrix (⇑σ) id) L U ∧
(∀ (i j : n), ‖L i j‖ ≤ 1) ∧ ∀ (i j : n), ‖U i j‖ ≤ 2 ^ (Fintype.card n - 1) * M