Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§3.3, proof of Prop. 3.4, p. 10 — ‖X − Y‖² = ‖X‖² + m − 2 trace(YᵀX) for Y ∈ V_{n,m}

Proved
ProjLikeRetr.Stiefel.dist_sq_stiefel

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

frobenius-normlinear-algebrap2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1stiefel-manifold

Let X∈Rn×mX\in\mathbb R^{n\times m}X∈Rn×m and let ∥⋅∥\|\cdot\|∥⋅∥ be the Frobenius norm, ∥X∥2=∑i,jXij2=trace⁡(X⊤X)\|X\|^2=\sum_{i,j}X_{ij}^2=\operatorname{trace}(X^\top X)∥X∥2=∑i,j​Xij2​=trace(X⊤X). For every YYY in the Stiefel manifold Vn,m={Y:Y⊤Y=Im}V_{n,m}=\{Y: Y^\top Y=I_m\}Vn,m​={Y:Y⊤Y=Im​},

∥X−Y∥2=∥X∥2+m−2trace⁡(Y⊤X).\|X-Y\|^2=\|X\|^2+m-2\operatorname{trace}(Y^\top X).∥X−Y∥2=∥X∥2+m−2trace(Y⊤X).

The identity reduces the projection of XXX onto Vn,mV_{n,m}Vn,m​ to the maximization of the linear function Y↦trace⁡(Y⊤X)Y\mapsto\operatorname{trace}(Y^\top X)Y↦trace(Y⊤X) over Vn,mV_{n,m}Vn,m​, which is the first step of the proof of Proposition 3.4.

Formalization Note The page prints the constant as m2m^2m2. Since ∥Y∥2=trace⁡(Y⊤Y)=trace⁡(Im)=m\|Y\|^2=\operatorname{trace}(Y^\top Y)=\operatorname{trace}(I_m)=m∥Y∥2=trace(Y⊤Y)=trace(Im​)=m, the correct constant is mmm; with m2m^2m2 the identity is false for every m≥2m\ge2m≥2 (take X=YX=YX=Y). The statement uses mmm.

Preamble
import Mathlib
import Definitions.Def_ProjLikeRetr_Stiefel_stiefel

open scoped Matrix Matrix.Norms.Frobenius
Formal statement
namespace ProjLikeRetr.Stiefel

/-- §3.3, proof of Proposition 3.4, p. 10: for every real `n × m` matrix `X` and every
`Y ∈ V_{n,m}`, `‖X − Y‖² = ‖X‖² + m − 2 trace(YᵀX)` in the Frobenius norm. The page prints
`m²`; since `‖Y‖² = trace(YᵀY) = trace(I_m) = m`, the correct constant is `m` (with `m²` the
identity fails for `m ≥ 2`). -/
theorem dist_sq_stiefel {n m : ℕ} (X Y : Matrix (Fin n) (Fin m) ℝ) (hY : Y ∈ stiefel n m) :
    ‖X - Y‖ ^ 2 = ‖X‖ ^ 2 + (m : ℝ) - 2 * (Yᵀ * X).trace := by sorry

end ProjLikeRetr.Stiefel
Source
Absil & Malick, Projection-like retractions on matrix manifolds, HAL hal-00651608v2, p. 10, §3.3, proof of Proposition 3.4 (first sentence; the page's m² is a misprint for m)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 4, 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