Theorem 4 (as proved): the invariant EKF is an asymptotically stable observer about any trajectory
OpenInvariantEKF.iekf_asymptotically_stableLet be a matrix Lie group with Lie algebra coordinates . Let be group affine, locally Lipschitz in the state uniformly on compact time windows, and forward complete on . It is observed at through left-invariant outputs (resp. right-invariant outputs ), . Let be defined by for (resp. ), and let be the observation matrix of the filter. The design matrices and are positive semidefinite functions of the estimate.
Fix a true trajectory , . Suppose the Deyst-Price conditions (i)-(v) of Theorem 3 hold for , i.e. for the system linearized about the true trajectory, with positive constants. Suppose also that the transition matrix of is bounded on each sampling interval, and that evaluated at nearby estimates are comparable with their values on (for every there is such that an invariant error with gives , and likewise for ). Fix .
Then the Left (resp. Right) Invariant EKF (36)-(37) is an asymptotically stable observer of , with a radius independent of the initialization time. There is such that, for every and every initial estimate with ,
(resp. with in place of ).
Formalization Note This is Theorem 4 as the proof in Appendix C establishes it. (a) has the sign of the paper's worked examples. With the sign printed in Section 3.3 the filter diverges, even for . (b) Condition (v) of Theorem 3 is in the form of Deyst and Price. (c) The bounded-transition condition supplies the bounds for all that Lemmas 5-7 use. (d) The comparability of is the inequality the proof of Lemma 4 asserts. It fails for the paper's general form when is singular. (e) The distance of Definition 2 is measured through the invariant error. (f) The same is used at every initialization time.
import Mathlib import Definitions.Def_InvariantEKF_Basic open MeasureTheory Matrix Filter Topology
namespace InvariantEKF
theorem iekf_asymptotically_stable {N d K : ℕ} {U : Type*} (left : Bool)
(G : Set (Matrix (Fin N) (Fin N) ℝ)) (hG : IsMatrixLieGroup G)
(L : (Fin d → ℝ) →ₗ[ℝ] Matrix (Fin N) (Fin N) ℝ) (hL : IsLieAlgebraCoords G L)
(f : U → Matrix (Fin N) (Fin N) ℝ → Matrix (Fin N) (Fin N) ℝ) (hf : IsGroupAffine G f)
(u : ℝ → U) (hreg : IsLocLipschitzField (fun t => f (u t)))
(hcomplete : ∀ a ∈ G, ∃ χ, IsTrajectory G f u (Set.Ici 0) χ ∧ χ 0 = a)
(A : U → Matrix (Fin d) (Fin d) ℝ)
(hA : ∀ t, 0 ≤ t → IsLinearization L (errField left f (u t)) (A (u t)))
(dvec : Fin K → Fin N → ℝ) (dt : ℝ) (hdt : 0 < dt)
(Qhat : ℝ → Matrix (Fin N) (Fin N) ℝ → Matrix (Fin d) (Fin d) ℝ)
(Nhat : ℕ → Matrix (Fin N) (Fin N) ℝ → Matrix (Fin K × Fin N) (Fin K × Fin N) ℝ)
(hQ : ∀ t X, (Qhat t X).PosSemidef) (hN : ∀ n X, (Nhat n X).PosSemidef)
(χ : ℝ → Matrix (Fin N) (Fin N) ℝ) (hχ : IsTrajectory G f u (Set.Ici 0) χ)
(Phi : ℝ → ℝ → Matrix (Fin d) (Fin d) ℝ) (hPhi : IsTransitionMatrix (fun t => A (u t)) Phi)
(α₁ α₂ β₁ β₂ δ₁ δ₂ δ₃ c : ℝ) (M : ℕ) (hα₁ : 0 < α₁) (hα₂ : 0 < α₂) (hβ₁ : 0 < β₁)
(hβ₂ : 0 < β₂) (hδ₁ : 0 < δ₁) (hδ₂ : 0 < δ₂) (hδ₃ : 0 < δ₃) (hM : 1 ≤ M)
(hDP : DeystPriceConditions dt Phi (fun s => Qhat s (χ s)) (obsH left L dvec)
(fun n => Nhat n (χ ((n : ℝ) * dt))) α₁ α₂ β₁ β₂ δ₁ δ₂ δ₃ M)
(hbdd : BoundedTransition dt Phi c)
(hcomp : TuningComparable left L χ dt Qhat Nhat)
(P0 : Matrix (Fin d) (Fin d) ℝ) (hP0 : P0.PosDef) :
∃ ε > 0, ∀ t0 : ℝ, 0 ≤ t0 → ∀ χhat0 ∈ G,
∀ (xs : ℕ → ℝ → Matrix (Fin N) (Fin N) ℝ) (Ps : ℕ → ℝ → Matrix (Fin d) (Fin d) ℝ),
IsIEKFRun left L f u A dvec dt Qhat Nhat χ t0 χhat0 P0 xs Ps →
invErrDist left (χ t0) χhat0 < ε →
Tendsto (fun t => invErrDist left (χ t) (piecewiseRun xs dt t)) atTop (𝓝 0) := by sorry
end InvariantEKFRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement covers both variants of the filter at once. A Boolean parameter selects the left-invariant version ("left") or the right-invariant version ("right"); every case distinction below refers to this choice. Throughout:
- denotes the real matrices.
- for is the sup norm .
- is the Frobenius norm.
- means is symmetric positive semidefinite.
- Matrix inverses are total: they equal the zero matrix when is singular.
- for .
Data and hypotheses. Fix natural numbers , any of which may be , and an arbitrary type of inputs.
-
The group. satisfies all of the following:
- .
- Every has and .
- is closed under products.
- Every limit of a sequence in that is invertible lies in .
-
Lie-algebra coordinates. is an injective linear map. Its range is exactly the set of with for all , where is the matrix exponential. Write .
-
Group-affine dynamics. , written , is defined on all matrices. For every (not only values of the input) and all ,
- Input and regularity. is the input. The field is locally Lipschitz uniformly on time windows: for every and there are and such that
for all and all with and . This is vacuous when .
A trajectory on is a map such that:
- for all ;
- has derivative within at every , entrywise and one-sided at .
For every such a trajectory exists with .
-
Linearisation of the error field. . Let be defined by
- left: ;
- right: .
For every there exist and , both allowed to depend on , such that for all with and all entries ,
Write .
-
Observation directions and sampling. are fixed vectors, and .
-
Tuning matrices. These may be evaluated at arbitrary matrices, not only elements of :
- is positive semidefinite for every and .
- , a matrix indexed by pairs , is positive semidefinite for every and .
-
The true trajectory. is a trajectory on in the sense of item 4.
-
Transition matrix. , written , satisfies for every real (negative times included):
- ;
- .
-
Observation matrix. is the matrix
where $\sigma=+1$ for left and $\sigma=-1$ for right, and $e_j$ is the $j$-th standard basis vector.
11. Deyst–Price conditions. There are constants and an integer . Set and , the tuning matrices evaluated on the true trajectory. Then: - (i) For all : . - (ii) There exist and a matrix with such that for every there is a matrix with . - (iii) For all : . - (iv) For all : the entries of are integrable on , and
- (v) For all $n\ge M+1$:
Note that the transition runs from $t_n$ to $t_i$ with $t_i\le t_n$.
If $K=0$ or $N=0$ then $H$ is empty, the sum in (v) is $0$, and (v) can only hold when $d=0$. If $d=0$, all matrix inequalities in $M_d$ hold trivially.
12. Bounded transition. There is a real constant with no sign assumption such that for all and all . Taking forces when .
-
Comparability of tuning. For every there is such that every with satisfies:
- for all ;
- for all .
Here the perturbed state is for left and for right.
-
Initial covariance. is symmetric positive definite.
Filter runs. Given a start time and an initial estimate , a run is a pair of families of functions:
- , the state segments;
- , the covariance segments.
The run must satisfy the following, for every with , on the interval :
-
Initial values. If , which happens exactly for , then and .
-
Propagation. Within , entrywise,
- Update at . Write and .
- The noise matrix is , and the gain is
- The observations are for left and for right.
- The innovation is for left and for right.
- Then .
- With , the new state is for left and for right.
Further points about runs:
- The observations are exact; no noise enters them.
- Nothing requires the to stay in .
- Values of and outside are unconstrained.
- Existence of a run is not asserted. If no run exists for some and , the claim for them is vacuous.
The filter's estimate at time is
with the floor taken in , so it is for . At an observation time this gives the post-update value.
The invariant error distance is
- for left;
- for right.
Conclusion. Under all the above, there exists with the following property. Take any start time , any , and any run started at from . If
then
with the limit taken over real .
The number is chosen after all the data, including , and is uniform in and . The conclusion asserts only this eventual convergence. It gives no bound on at intermediate times and no rate.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.