Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 23.1 (as proved): for every (U, W) there is V with VᵀV = I such that (V, Vᵀ) has PCA objective ≤ that of (U, W)

Proved
UnderstandingML.pca_reduction_lemma

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

least-squaresorthonormalpca

Lemma 23.1. Let (U,W)(U, W)(U,W) be a solution to Equation (23.1). Then the columns of UUU are orthonormal (U⊤U=InU^\top U = I_nU⊤U=In​) and W=U⊤W = U^\topW=U⊤.

As the proof establishes it: for every U∈Rd×nU \in \mathbb{R}^{d \times n}U∈Rd×n, W∈Rn×dW \in \mathbb{R}^{n \times d}W∈Rn×d there is V∈Rd×nV \in \mathbb{R}^{d \times n}V∈Rd×n with V⊤V=IV^\top V = IV⊤V=I and ∑i∥xi−VV⊤xi∥2≤∑i∥xi−UWxi∥2\sum_i\|x_i - VV^\top x_i\|^2 \le \sum_i\|x_i - UWx_i\|^2∑i​∥xi​−VV⊤xi​∥2≤∑i​∥xi​−UWxi​∥2, so (23.1) may be restricted to U⊤U=IU^\top U = IU⊤U=I, W=U⊤W = U^\topW=U⊤ (23.2). The literal statement is not what the proof gives ((cU,W/c)(cU, W/c)(cU,W/c) has the same objective as (U,W)(U, W)(U,W)). n≤dn \le dn≤d.

Preamble
import Definitions.Def_UnderstandingML_DimReduction

open MeasureTheory ProbabilityTheory
Formal statement
namespace UnderstandingML

/-- **Lemma 23.1** (p. 324), as its proof establishes it: for every `U ∈ ℝ^{d×n}` and
`W ∈ ℝ^{n×d}` there is a `V ∈ ℝ^{d×n}` with orthonormal columns (`VᵀV = I`) such that `(V, Vᵀ)`
does not increase the objective (23.1): `∑ᵢ ‖xᵢ − VVᵀxᵢ‖² ≤ ∑ᵢ ‖xᵢ − UWxᵢ‖²`. Hence (23.1) may
be restricted to `U` with orthonormal columns and `W = Uᵀ` (23.2). The book states the lemma as
a property of every solution `(U, W)`, which is not what the proof gives, since `(cU, W/c)` has
the same objective; `n ≤ d`. -/
theorem pca_reduction_lemma {m d n : ℕ} (hn : n ≤ d) (x : Fin m → Fin d → ℝ)
    (U : Matrix (Fin d) (Fin n) ℝ) (W : Matrix (Fin n) (Fin d) ℝ) :
    ∃ V : Matrix (Fin d) (Fin n) ℝ, V.transpose * V = 1 ∧
      pcaObjective x V V.transpose ≤ pcaObjective x U W := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §23.1 p. 324, Lemma 23.1 with its proof, and Equation (23.2)
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me