Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma A.2, p. 27 — AM = B iff im B ⊆ im A and M = A†B + (I − A†A)T for some T

Proved
QuadMatIneq.Reduced.lemma_A_2

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-matrix-equationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pseudo-inverse

Let A∈Rp×qA\in\mathbb R^{p\times q}A∈Rp×q, B∈Rp×rB\in\mathbb R^{p\times r}B∈Rp×r and M∈Rq×rM\in\mathbb R^{q\times r}M∈Rq×r. Then

AM=B  ⟺  im⁡B⊆im⁡A  and  M=A†B+(Iq−A†A)T  for some T∈Rq×r.AM = B \iff \operatorname{im} B\subseteq \operatorname{im} A \ \text{ and }\ M = A^\dagger B + (I_q - A^\dagger A)T \ \text{ for some } T\in\mathbb R^{q\times r}.AM=B⟺imB⊆imA  and  M=A†B+(Iq​−A†A)T  for some T∈Rq×r.

This is the classical description of all solutions of a linear matrix equation through the Moore–Penrose pseudo-inverse; it converts the factorization of Lemma A.1 into an explicit formula for the solution matrix.

Formalization Note The printed dimensions (A∈Rq×pA\in\mathbb R^{q\times p}A∈Rq×p, B∈Rr×pB\in\mathbb R^{r\times p}B∈Rr×p, T∈Rr×qT\in\mathbb R^{r\times q}T∈Rr×q) are inconsistent with the term (Iq−A†A)T(I_q - A^\dagger A)T(Iq​−A†A)T. The statement here uses the dimensions forced by the formula and by its use in the proof of Theorem 3.3: AAA has qqq columns, BBB has as many rows as AAA, and M,T∈Rq×rM, T\in\mathbb R^{q\times r}M,T∈Rq×r. The image inclusion is stated for the linear maps v↦Bvv\mapsto Bvv↦Bv and u↦Auu\mapsto Auu↦Au.

Preamble
import Mathlib
import Definitions.Def_QuadMatIneq_Reduced_QMI
open Matrix
open scoped MatrixOrder
Formal statement
namespace QuadMatIneq.Reduced

theorem lemma_A_2 {α β γ : Type*} [Fintype α] [Fintype β] [Fintype γ] [DecidableEq β]
    (A : Matrix α β ℝ) (B : Matrix α γ ℝ) (M : Matrix β γ ℝ) :
    A * M = B ↔
      LinearMap.range B.mulVecLin ≤ LinearMap.range A.mulVecLin ∧
        ∃ T : Matrix β γ ℝ, M = pinv A * B + (1 - pinv A * A) * T := by sorry

end QuadMatIneq.Reduced
Source
van Waarde–Camlibel–Eising–Trentelman, arXiv:2203.12959v3, Lemma A.2, p. 27 (dimensions corrected, see Formalization Note)
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me