Lemma 1: and satisfy and govern the invariant errors
ProvedInvariantEKF.error_fields_homogeneousLet be a matrix Lie group and let the system , , be group affine: for all inputs and . Then:
- satisfies for all . For any two trajectories one has with , and .
- satisfies for all . For any two trajectories one has with , and .
Formalization Note "All the solutions have the form " is stated as: for every solution , the matrix satisfies the error equation. Derivatives at are one-sided.
import Mathlib import Definitions.Def_InvariantEKF_Basic open MeasureTheory Matrix Filter Topology
namespace InvariantEKF
theorem error_fields_homogeneous {N : ℕ} {U : Type*} (G : Set (Matrix (Fin N) (Fin N) ℝ))
(hG : IsMatrixLieGroup G) (f : U → Matrix (Fin N) (Fin N) ℝ → Matrix (Fin N) (Fin N) ℝ)
(hf : IsGroupAffine G f) (u : ℝ → U) :
(∀ v, ∀ a ∈ G, ∀ b ∈ G,
errField false f v (a * b) = a * errField false f v b + errField false f v a * b) ∧
(∀ χ χbar : ℝ → Matrix (Fin N) (Fin N) ℝ,
IsTrajectory G f u (Set.Ici 0) χ → IsTrajectory G f u (Set.Ici 0) χbar →
∀ t, 0 ≤ t → χ t = invError false (χbar t) (χ t) * χbar t ∧
HasMatDerivWithinAt (fun s => invError false (χbar s) (χ s))
(errField false f (u t) (invError false (χbar t) (χ t))) (Set.Ici 0) t) ∧
(∀ v, ∀ a ∈ G, ∀ b ∈ G,
errField true f v (a * b) = a * errField true f v b + errField true f v a * b) ∧
(∀ χ χbar : ℝ → Matrix (Fin N) (Fin N) ℝ,
IsTrajectory G f u (Set.Ici 0) χ → IsTrajectory G f u (Set.Ici 0) χbar →
∀ t, 0 ≤ t → χ t = χbar t * invError true (χbar t) (χ t) ∧
HasMatDerivWithinAt (fun s => invError true (χbar s) (χ s))
(errField true f (u t) (invError true (χbar t) (χ t))) (Set.Ici 0) t) := by sorry
end InvariantEKFRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number and the real matrices, with identity . Matrix inversion is total: it is the usual inverse when and the zero matrix otherwise.
Data and hypotheses. The statement is about the following objects.
-
The set , assumed to be a "matrix Lie group" in this specific sense:
- ;
- every has and ;
- is closed under products;
- if a sequence in converges to a matrix with , then .
No smoothness or manifold structure is required beyond this.
-
An arbitrary type of inputs.
-
A family of maps , one for each . It is assumed "group-affine": for every and all ,
No continuity or regularity of is assumed.
- An arbitrary input signal , with no regularity assumed. If is empty, no such exists and the statement is vacuous.
The error fields. For and a matrix , define
Trajectories. A trajectory on is a function with two properties:
- for every ;
- for every , each entry of has derivative within at equal to the corresponding entry of .
The derivative is one-sided (right derivative) at . Nothing is required of for , and no initial condition is imposed.
Conclusion. Under these hypotheses, all four of the following hold.
- Right error field identity. For every and all :
- Right-invariant error. For any two trajectories on and every , set . Then:
- ;
- the function has, entrywise, derivative within at equal to .
- Left error field identity. For every and all :
- Left-invariant error. For any two trajectories on and every , set . Then:
- ;
- the function has, entrywise, derivative within at equal to .
Scope.
- The algebraic identities in (1) and (3) are asserted only for arguments in .
- The error-dynamics claims in (2) and (4) are asserted only at times , with one-sided derivatives at .
- The same input signal drives both trajectories.
- The degenerate case is included, where all matrices are the empty matrix and every claim holds trivially.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.