Lemma. Orthogonal projections from a positive pairing [fdip-00K2]

Let \(V\) be finite-dimensional over an ordered field \(F\), with the positive symmetric pairing \(h\) of the Loewner comparison. For every subspace \(K\), the restriction \(h_K\) is a perfect symmetric pairing. If \(\iota _K:K\to V\) is inclusion, there is a unique linear map \(p_K:V\to K\) such that \[h_K(k,p_Kv)=h(\iota _Kk,v)\qquad (k\in K,\ v\in V).\] It satisfies \(p_K\iota _K=\mathbb {I}_K\), and \[V=\iota _K(K)\oplus K^\perp ,\qquad K^\perp =\{v:h(\iota _Kk,v)=0\text { for every }k\in K\}.\] For the adjoints defined by these pairings, \(\iota _K^\dagger =p_K\) and \(p_K^\dagger =\iota _K\).

The orthogonal-complement ingredient is formalized in LinearMap.BilinForm.isCompl_orthogonal_of_restrict_nondegenerate: a reflexive form over a field, a finite-dimensional ambient space and a nondegenerate restriction give complementary subspaces. The proof above establishes that restriction hypothesis from positivity and constructs the projection with its adjoint identities.