NLA-lib Explorer

NLAlib.IsLU.unique

Library · theorem

The LU factorization of a nonsingular matrix is unique: over a commutative ring, if \det \mathbf{A} is a unit and \mathbf{A} = \mathbf{L}\mathbf{U} = \mathbf{L}'\mathbf{U}' are LU factorizations, then \mathbf{L} = \mathbf{L}' and \mathbf{U} = \mathbf{U}'. [HornJohnson2013, Corollary 3.5.6].

NLAlib.IsLU.unique.{u_1, u_3} {R : Type u_1} {n : Type u_3} [LinearOrder n] [Fintype n] [CommRing R]
  [DecidableEq n] {A L U L' U' : Matrix n n R} (hA : IsUnit A.det) (h : IsLU A L U)
  (h' : IsLU A L' U') : L = L' ∧ U = U'

Full source on GitHub

Import NLAlib.Matrix.Factorizations.LU.