A subspace and its orthogonal complement split the space
ProvedHefferonLinAlg.orthogonal_projection_decompositiongram-schmidtinner-productlinear-algebraorthogonal-projection
Let be a subspace of a finite-dimensional real inner product space . Then and its orthogonal complement are complementary: they intersect only in the zero vector and together span . Equivalently, every vector splits uniquely as its orthogonal projection into plus a vector orthogonal to — 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 HefferonLinAlgSource
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter Three, Section VI.3, Theorem 3.4, p. 298