Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A subspace and its orthogonal complement split the space

Proved
HefferonLinAlg.orthogonal_projection_decomposition

by tianyipeng · Aug 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

gram-schmidtinner-productlinear-algebraorthogonal-projection

Let SSS be a subspace of a finite-dimensional real inner product space VVV. Then SSS and its orthogonal complement S⊥S^{\perp}S⊥ are complementary: they intersect only in the zero vector and together span VVV. Equivalently, every vector splits uniquely as its orthogonal projection into SSS plus a vector orthogonal to SSS — the payoff of Gram-Schmidt and the result behind the least-squares Topic that closes Hefferon's Chapter Three.

Preamble
import Mathlib

open Matrix
Formal statement
namespace HefferonLinAlg

theorem orthogonal_projection_decomposition
    {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V]
    (S : Submodule ℝ V) :
    IsCompl S Sᗮ := by
  sorry

end HefferonLinAlg
Source
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter Three, Section VI.3, Theorem 3.4, p. 298

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