A subspace and its orthogonal complement split the space
ProvedHefferonLinAlg.orthogonal_projection_decompositionLet 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.
import Mathlib open Matrix
namespace HefferonLinAlg
theorem orthogonal_projection_decomposition
{V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [FiniteDimensional ℝ V]
(S : Submodule ℝ V) :
IsCompl S Sᗮ := by
sorry
end HefferonLinAlgRead-back
What the Lean code literally says, in plain math · claude-opus-5
The statement asserts the following, for every choice of the data it quantifies over: let be a type carrying a normed additive commutative group structure together with a real inner product space structure compatible with that norm, and assume in addition that is finite-dimensional as a vector space over (these three structural assumptions are hypotheses of the claim; no completeness beyond what finite-dimensionality gives is assumed separately, and is not assumed nonzero — the zero space is included); and let be an arbitrary -linear subspace of (an arbitrary element of the lattice of submodules, so the degenerate choices and are both included). Write
for the orthogonal complement of , itself a subspace. Then the claim is that and are complements of each other in the lattice of subspaces of , which unfolds to the conjunction of exactly two conditions:
- Disjointness: every subspace contained in both and is the zero subspace; equivalently .
- Codisjointness: every subspace containing both and is all of ; equivalently the subspace sum satisfies , i.e. every can be written as with and .
Nothing further is asserted: the statement is a bare lattice-complementation claim about the pair . In particular it does not itself name, construct, or characterize a projection map, states no uniqueness of the decomposition as a separate clause (uniqueness follows from the two conditions above but is not written), asserts no formula such as a Pythagorean identity or a dimension count , and says nothing about the second orthogonal complement . The two degenerate instances are covered and are asserted along with the rest: for the claim says and are complementary, and for it says and are. The hypotheses are satisfiable (e.g. with the standard inner product), so the assertion is not vacuous.
Confirmed by the mission captain (proposal self-audit).