Zulip Chat Archive
Stream: new members
Topic: QR Decomposition and its Product
Nick_adfor (Aug 14 2025 at 14:23):
Can QR Decomposition and its Product be formalized by lean? I do not even find QR Decomposition in lean : (
Problem Statement
Given a function f: Mₙ(ℂ) → Mₙ(ℂ) that maps each invertible complex square matrix A to its unique QR decomposition (Q, R), where:
- A = QR
- Q is unitary (i.e., Q*Q = I)
- R is upper triangular with positive real diagonal elements
We need to prove that this function f preserves multiplication, i.e., for any two invertible matrices A and B in Mₙ(ℂ):
f(AB) = f(A)f(B)
Proof Approach
To prove that f preserves multiplication, we need to show that the QR decomposition of AB equals the QR decomposition of the product of their respective QR decompositions. Here are the detailed steps:
- Let A = Qᴬ Rᴬ and B = Qᴮ Rᴮ be the QR decompositions of A and B respectively
- Then AB = Qᴬ Rᴬ Qᴮ Rᴮ
- Let C = Rᴬ Qᴮ, which is invertible (since both Rᴬ and Qᴮ are invertible)
- Perform QR decomposition on C: C = Qᶜ Rᶜ
- Therefore AB = Qᴬ Qᶜ Rᶜ Rᴮ
- Note that Qᴬ Qᶜ is a product of unitary matrices, hence still unitary
- Rᶜ Rᴮ is a product of upper triangular matrices, hence still upper triangular with positive real diagonal elements (since both Rᶜ and Rᴮ have positive real diagonal elements)
- By the uniqueness of QR decomposition, this must be the QR decomposition of AB
- Therefore f(AB) = (Qᴬ Qᶜ, Rᶜ Rᴮ)
- And f(A)f(B) = (Qᴬ, Rᴬ)(Qᴮ, Rᴮ) = (Qᴬ Qᶜ, Rᶜ Rᴮ) (because the QR decomposition of Rᴬ Qᴮ is (Qᶜ, Rᶜ))
Thus we've proved that f(AB) = f(A)f(B).
Last updated: Dec 20 2025 at 21:32 UTC