Theorem 3 (Deyst and Price, 1968; as corrected): stability of the linear Kalman filter
OpenInvariantEKF.deyst_price_kalman_stableConsider the linear system , , observed through at the times . Let be its transition matrix. Assume there are constants and such that:
- for all ;
- there are and with for some , for every ;
- for all ;
- for all , the integrand being integrable;
- for all ;
- whenever lie in one sampling interval .
Let the Kalman filter tuned with and start at time from any and any . Then there exist with for all . Moreover there are and with
and as .
Formalization Note The theorem is cited from Deyst and Price (1968). Condition 5 is printed in the paper as ; it is stated here in the form of Deyst and Price, with the backward transition and . The paper writes "" for the constants; they are taken strictly positive. Condition 6 is not in the paper. Without it the bound " for all " fails between observation times (see the report).
import Mathlib import Definitions.Def_InvariantEKF_Basic open MeasureTheory Matrix Filter Topology
namespace InvariantEKF
theorem deyst_price_kalman_stable {d : ℕ} {ι : Type*} [Fintype ι] [DecidableEq ι]
(A : ℝ → Matrix (Fin d) (Fin d) ℝ) (H : Matrix ι (Fin d) ℝ)
(Phi : ℝ → ℝ → Matrix (Fin d) (Fin d) ℝ) (hPhi : IsTransitionMatrix A Phi)
(Q : ℝ → Matrix (Fin d) (Fin d) ℝ) (Nm : ℕ → Matrix ι ι ℝ) (dt : ℝ) (hdt : 0 < dt)
(α₁ α₂ β₁ β₂ δ₁ δ₂ δ₃ c : ℝ) (M : ℕ) (hα₁ : 0 < α₁) (hα₂ : 0 < α₂) (hβ₁ : 0 < β₁)
(hβ₂ : 0 < β₂) (hδ₁ : 0 < δ₁) (hδ₂ : 0 < δ₂) (hδ₃ : 0 < δ₃) (hM : 1 ≤ M)
(hDP : DeystPriceConditions dt Phi Q H Nm α₁ α₂ β₁ β₂ δ₁ δ₂ δ₃ M)
(hbdd : BoundedTransition dt Phi c)
(x : ℝ → Fin d → ℝ) (hx : ∀ t, 0 ≤ t → HasDerivWithinAt x (A t *ᵥ x t) (Set.Ici 0) t)
(t0 : ℝ) (ht0 : 0 ≤ t0) (xhat0 : Fin d → ℝ)
(P0 : Matrix (Fin d) (Fin d) ℝ) (hP0 : P0.PosDef)
(xs : ℕ → ℝ → Fin d → ℝ) (Ps : ℕ → ℝ → Matrix (Fin d) (Fin d) ℝ)
(hrun : IsKalmanRun A H Q Nm dt x t0 xhat0 P0 xs Ps) :
∃ γmin γmax : ℝ, 0 < γmin ∧ 0 < γmax ∧
(∀ t, t0 ≤ t → LoewnerLE (γmin • (1 : Matrix (Fin d) (Fin d) ℝ)) (piecewiseRun Ps dt t) ∧
LoewnerLE (piecewiseRun Ps dt t) (γmax • 1)) ∧
(∃ C r : ℝ, 0 < r ∧ ∀ t, t0 ≤ t →
(piecewiseRun xs dt t - x t) ⬝ᵥ ((piecewiseRun Ps dt t)⁻¹ *ᵥ (piecewiseRun xs dt t - x t)) ≤
C * Real.exp (-r * (t - t0))) ∧
Tendsto (fun t => ‖piecewiseRun xs dt t - x t‖) atTop (𝓝 0) := by sorry
end InvariantEKFRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a dimension (possibly ), a finite index set for observation components (possibly empty), and a sampling period , with observation times for . The data are:
- a time-dependent matrix for , with no regularity assumed beyond what follows from the hypothesis on ;
- an observation matrix ;
- matrices for ;
- matrices for ;
- real constants , all strictly positive;
- a real constant , with no sign assumption;
- an integer .
Throughout, means is symmetric positive semidefinite. In particular, forces to be symmetric.
Transition matrix. is defined for all real . For every , it satisfies , and for every real the map is differentiable entrywise with
Hypotheses on the system (the Deyst–Price conditions).
- For every :
- There exist an integer and a matrix with . For every there is some with
- The lower bound is on , not on ; may be zero.
- In particular, each with is symmetric positive semidefinite.
- Nothing is assumed about for .
-
For every : . Hence these are symmetric positive definite. is unconstrained.
-
For every :
- each entry of is integrable on ;
- the controllability Gramian is bounded on both sides:
- For every , the observability sum of terms satisfies
- Here runs backward in time, since .
- All in this sum, so each is invertible by condition 3.
- If is empty and , the sum is and this condition cannot hold, so the theorem is then vacuous.
- Bounded transition. For every and all :
Taking shows this forces when .
True state. satisfies for all , with the derivative taken within .
The filter. The filter starts at time from an arbitrary and a symmetric positive definite . It is given by segment functions and for . Write and .
For every with :
- Initialisation. If , then and .
- Propagation. On (derivatives within ):
- Update at .
The observations are exact (noise-free) samples . Segments with are unconstrained.
The running values are and . At an observation time this is the post-update value.
Conclusion. There exist and such that the following three statements hold:
- Covariance bounds. For all :
- Exponential decay of the weighted error. There exist reals (no sign constraint) and such that for all :
- Convergence of the error.
where is the maximum-absolute-entry norm on .
Degenerate case. When , all matrices are empty and the conclusion holds trivially.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.