The innovation is orthogonal to past data
ProvedVectorSpaceOpt.innovation_orthogonalThroughout, we work in the Hilbert space of random variables: zero-mean random variables with finite second moments, under the inner product . In this space, orthogonality is uncorrelatedness, and the best linear estimate of a variable given some data is its orthogonal projection onto the subspace the data generates.
Let be the subspace generated by past data, let be a random -vector, and let be its componentwise orthogonal projection onto — the best estimate of from the past. Let new measurements arrive as
with a known matrix and each noise component orthogonal to . Then the innovation
is orthogonal to : every component of is uncorrelated with every element of the past-data subspace.
The innovation is the part of the new measurement that could not have been anticipated from the old data. Its orthogonality to is what makes recursive estimation possible: updating an estimate requires only the innovation, never a recomputation over the whole data history.
Formalization Note. The action of a matrix on a random vector is componentwise, with scalar multiplication in the abstract space. Zero means are implicit in this representation, so no expectation operator appears — only inner products.
import Mathlib open scoped RealInnerProductSpace
namespace VectorSpaceOpt
theorem innovation_orthogonal {H : Type} [NormedAddCommGroup H]
[InnerProductSpace ℝ H] {n m : ℕ} (S : Submodule ℝ H)
(β βh : Fin n → H)
(hproj : ∀ i, ∀ s ∈ S, ⟪β i - βh i, s⟫ = 0)
(W : Matrix (Fin m) (Fin n) ℝ) (ε : Fin m → H)
(hεS : ∀ i, ∀ s ∈ S, ⟪ε i, s⟫ = 0)
(y : Fin m → H) (hy : ∀ i, y i = ∑ j, W i j • β j + ε i) :
∀ i, ∀ s ∈ S, ⟪y i - ∑ j, W i j • βh j, s⟫ = 0 := by sorry
end VectorSpaceOptRead-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back of VectorSpaceOpt.innovation_orthogonal
Let be a real inner product space (a real vector space with an inner product and its induced norm; no completeness is assumed), and let and be natural numbers, either of which may be . Let be an arbitrary linear subspace of (it is not required to be closed, finite-dimensional, or non-trivial). The theorem takes the following data and hypotheses:
- two families of vectors and (indexed by ), together with the hypothesis that for every index and every ,
i.e. each difference is orthogonal to every element of ;
- a real matrix with entries ;
- a family of vectors with the hypothesis that for every index and every ,
i.e. each is orthogonal to every element of ;
- a family of vectors with the hypothesis that for every ,
where the sum ranges over all (an empty sum, equal to , when ).
Under these hypotheses, the conclusion is: for every index and every element ,
that is, each residual vector is orthogonal to every element of the subspace .
Remarks on what the statement silently includes: all orthogonality conditions (hypotheses and conclusion alike) are phrased element-wise, as the vanishing of the inner product against each member of , with the vector in question in the first slot of the (real, hence symmetric) inner product. If the conclusion is vacuously true, and if the sums are zero, so the statement reduces to: is orthogonal to . The families , and the hypothesis on place no constraint relating to individually — only the differences are constrained. Nothing requires , , , , or to be non-zero or distinct, and may be the zero subspace (making every orthogonality hypothesis trivially satisfiable) or all of .
Confirmed by the mission captain (proposal self-audit).