AFTD Auto-Formalizing Theoretical Domains

invertible_pair_correlation_metric_factorization

theoremverified

Given three real square matrices A, M and F with invertible determinants and a real scalar k, the three displayed invertible changes of coordinates simultaneously transform A, A M and k Fᵀ F M into the identity, identity and k times the identity.

Statement

theorem invertible_pair_correlation_metric_factorization
    {n : Type*} [Fintype n] [DecidableEq n]
    (A M F : Matrix n n ℝ) (k : ℝ)
    (hA : IsUnit A.det) (hM : IsUnit M.det) (hF : IsUnit F.det) :
    let P := (A⁻¹).transpose * F.transpose
    let Q := F⁻¹
    let R := M⁻¹ * F⁻¹
    P.transpose * A * Q = 1 ∧
    P.transpose * (A * M) * R = 1 ∧
    Q.transpose * (k • (F.transpose * F * M)) * R = k • 1
Source
arXiv:2611.19367v1, Section III D, Eqs. (35)–(37); the matrix factorization is stated for arbitrary finite dimension.
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem is verified by directly proving each of the three matrix equalities. After establishing two-sided inversion and cancellation identities from the invertibility of A, M, and F, the first two relations reduce to the identity by expanding the coordinate transformations and canceling adjacent inverse pairs. For the third relation, the scalar k is factored out, and associativity allows the remaining product to be grouped into factors that each simplify to the identity.

  1. The definitions of P, Q, and R are unfolded, and preliminary inverse and cancellation identities for A, M, and F are established.

    Unfolding the local definitions of P, Q, and R expresses the goals directly in terms of A, M, and F. Because A, M, and F have invertible determinants, their left and right inverses satisfy A⁻¹ * A = 1, M * M⁻¹ = 1, and F * F⁻¹ = 1. Using associativity and multiplication by the identity matrix, we deduce the general cancellation rules A⁻¹ * (A * X) = X and M * (M⁻¹ * X) = X for any matrix X. Transposing the identity F * F⁻¹ = 1 gives (F⁻¹)ᵀ * Fᵀ = 1.

    lines 13–22

    uses Matrix.nonsing_inv_mul, Matrix.mul_nonsing_inv, Matrix.mul_assoc, Matrix.one_mul, Matrix.transpose_mul, Matrix.transpose_one

      dsimp
      have hAi := Matrix.nonsing_inv_mul A hA
      have hMi := Matrix.mul_nonsing_inv M hM
      have hFi := Matrix.mul_nonsing_inv F hF
      have hAleft (X : Matrix n n ℝ) : A⁻¹ * (A * X) = X := by
        rw [← Matrix.mul_assoc, hAi, Matrix.one_mul]
      have hMleft (X : Matrix n n ℝ) : M * (M⁻¹ * X) = X := by
        rw [← Matrix.mul_assoc, hMi, Matrix.one_mul]
      have hFit : (F⁻¹).transpose * F.transpose = 1 := by
        rw [← Matrix.transpose_mul, hFi, Matrix.transpose_one]
  2. Pᵀ * A * Q = 1.

    We split off the first conjunct. Expanding Pᵀ = ((A⁻¹)ᵀ * Fᵀ)ᵀ = F * A⁻¹ by distributing the transpose and canceling double transpositions, the product Pᵀ * A * Q becomes F * A⁻¹ * A * F⁻¹. Using A⁻¹ * A = 1, this simplifies directly to F * F⁻¹ = 1.

    lines 23–25

    uses Matrix.transpose_mul, Matrix.transpose_transpose, Matrix.mul_assoc, Matrix.one_mul

      constructor
      · simp only [Matrix.transpose_mul, Matrix.transpose_transpose, Matrix.mul_assoc, hAi,
          Matrix.one_mul, hFi]
  3. Pᵀ * (A * M) * R = 1.

    We split off the second conjunct. Substituting Pᵀ = F * A⁻¹ and R = M⁻¹ * F⁻¹, the expression becomes F * A⁻¹ * (A * M) * (M⁻¹ * F⁻¹). The cancellation rule A⁻¹ * (A * M) = M reduces this to F * M * (M⁻¹ * F⁻¹), and the cancellation rule M * (M⁻¹ * F⁻¹) = F⁻¹ further reduces it to F * F⁻¹ = 1.

    lines 26–28

    uses Matrix.transpose_mul, Matrix.transpose_transpose, Matrix.mul_assoc

      constructor
      · simp only [Matrix.transpose_mul, Matrix.transpose_transpose, Matrix.mul_assoc, hAleft,
          hMleft, hFi]
  4. Qᵀ * (k • (Fᵀ * F * M)) * R = k • 1.

    First, we prove the specific instance M * (M⁻¹ * F⁻¹) = F⁻¹. Next, factoring the scalar k out of the matrix products reduces the goal to showing Qᵀ * (Fᵀ * F * M) * R = 1. Substituting Q = F⁻¹ and R = M⁻¹ * F⁻¹, we reassociate the product as ((F⁻¹)ᵀ * Fᵀ) * (F * (M * (M⁻¹ * F⁻¹))). Substituting (F⁻¹)ᵀ * Fᵀ = 1, M * (M⁻¹ * F⁻¹) = F⁻¹, and F * F⁻¹ = 1, this chain of equalities evaluates to 1 * 1 = 1.

    lines 29–37

    uses Matrix.mul_assoc, Matrix.one_mul, Matrix.mul_smul, Matrix.smul_mul

      · have hMM : M * (M⁻¹ * F⁻¹) = F⁻¹ := by
          rw [← Matrix.mul_assoc, hMi, Matrix.one_mul]
        simp only [Matrix.mul_smul, Matrix.smul_mul]
        congr 1
        calc
          (F⁻¹).transpose * (F.transpose * F * M) * (M⁻¹ * F⁻¹) =
              ((F⁻¹).transpose * F.transpose) * (F * (M * (M⁻¹ * F⁻¹))) := by
                simp [Matrix.mul_assoc]
          _ = 1 := by rw [hFit, hMM, hFi]; simp
Matrix.nonsing_inv_mul
If the determinant of a square matrix A is invertible, then A⁻¹ * A = 1.
Matrix.mul_nonsing_inv
If the determinant of a square matrix A is invertible, then A * A⁻¹ = 1.
Matrix.mul_assoc
Matrix multiplication is associative: (L * M) * N = L * (M * N).
Matrix.one_mul
Multiplying by the identity matrix on the left leaves any matrix unchanged: 1 * M = M.
Matrix.transpose_mul
The transpose of a matrix product is the product of the transposes in reverse order: (M * N)ᵀ = Nᵀ * Mᵀ.
Matrix.transpose_one
The transpose of the identity matrix is the identity matrix: 1ᵀ = 1.
Matrix.transpose_transpose
The transpose of the transpose of a matrix is the matrix itself: (Mᵀ)ᵀ = M.
Matrix.mul_smul
Matrix multiplication is compatible with scalar multiplication on the right: M * (a • N) = a • (M * N).
Matrix.smul_mul
Matrix multiplication is compatible with scalar multiplication on the left: (a • M) * N = a • (M * N).

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

open Matrixtheorem invertible_pair_correlation_metric_factorization    {n : Type*} [Fintype n] [DecidableEq n]    (A M F : Matrix n n ℝ) (k : ℝ)    (hA : IsUnit A.det) (hM : IsUnit M.det) (hF : IsUnit F.det) :    let P := (A⁻¹).transpose * F.transpose    let Q := F⁻¹    let R := M⁻¹ * F⁻¹    P.transpose * A * Q = 1 ∧    P.transpose * (A * M) * R = 1 ∧    Q.transpose * (k • (F.transpose * F * M)) * R = k • 1 := by  dsimp  have hAi := Matrix.nonsing_inv_mul A hA  have hMi := Matrix.mul_nonsing_inv M hM  have hFi := Matrix.mul_nonsing_inv F hF  have hAleft (X : Matrix n n ℝ) : A⁻¹ * (A * X) = X := by    rw [← Matrix.mul_assoc, hAi, Matrix.one_mul]  have hMleft (X : Matrix n n ℝ) : M * (M⁻¹ * X) = X := by    rw [← Matrix.mul_assoc, hMi, Matrix.one_mul]  have hFit : (F⁻¹).transpose * F.transpose = 1 := by    rw [← Matrix.transpose_mul, hFi, Matrix.transpose_one]  constructor  · simp only [Matrix.transpose_mul, Matrix.transpose_transpose, Matrix.mul_assoc, hAi,      Matrix.one_mul, hFi]  constructor  · simp only [Matrix.transpose_mul, Matrix.transpose_transpose, Matrix.mul_assoc, hAleft,      hMleft, hFi]  · have hMM : M * (M⁻¹ * F⁻¹) = F⁻¹ := by      rw [← Matrix.mul_assoc, hMi, Matrix.one_mul]    simp only [Matrix.mul_smul, Matrix.smul_mul]    congr 1    calc      (F⁻¹).transpose * (F.transpose * F * M) * (M⁻¹ * F⁻¹) =          ((F⁻¹).transpose * F.transpose) * (F * (M * (M⁻¹ * F⁻¹))) := by            simp [Matrix.mul_assoc]      _ = 1 := by rw [hFit, hMM, hFi]; simp
See it in the graphDiscuss this resultChallenge it