Theorem 1: the invariant errors are state-trajectory independent iff
ProvedInvariantEKF.error_autonomy_iffLet be a matrix Lie group and consider the system on , for . Assume that for every and some trajectory passes through at time . Then the following are equivalent:
- the left-invariant error is state-trajectory independent;
- the right-invariant error is state-trajectory independent;
- for all and ,
Moreover, under 3, for any two trajectories and every ,
Formalization Note "State-trajectory independent" (Definition 1) means that a single function gives for every pair of trajectories. The paper does not state the existence of trajectories through every point, but its proof uses it ("this has to hold for any and "). Without it, conditions 1 and 2 can hold vacuously.
import Mathlib import Definitions.Def_InvariantEKF_Basic open MeasureTheory Matrix Filter Topology
namespace InvariantEKF
theorem error_autonomy_iff {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) ℝ)
(u : ℝ → U)
(hexist : ∀ t, 0 < t → ∀ a ∈ G, ∃ χ, IsTrajectory G f u (Set.Ioi 0) χ ∧ χ t = a) :
(ErrorAutonomous true G f u ↔ ErrorAutonomous false G f u) ∧
(ErrorAutonomous false G f u ↔
∀ t, 0 < t → ∀ a ∈ G, ∀ b ∈ G,
f (u t) (a * b) = f (u t) a * b + a * f (u t) b - a * f (u t) 1 * b) ∧
((∀ t, 0 < t → ∀ a ∈ G, ∀ b ∈ G,
f (u t) (a * b) = f (u t) a * b + a * f (u t) b - a * f (u t) 1 * b) →
∀ χ χbar : ℝ → Matrix (Fin N) (Fin N) ℝ,
IsTrajectory G f u (Set.Ioi 0) χ → IsTrajectory G f u (Set.Ioi 0) χbar →
∀ t, 0 < t →
HasMatDerivAt (fun s => invError true (χ s) (χbar s))
(errField true f (u t) (invError true (χ t) (χbar t))) t ∧
HasMatDerivAt (fun s => invError false (χ s) (χbar s))
(errField false f (u t) (invError false (χ t) (χbar t))) t) := by sorry
end InvariantEKFRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a natural number and write for the space of real matrices. The statement involves the following data and hypotheses:
- A set that is a matrix Lie group in the following sense:
- ;
- every has nonzero determinant and ;
- is closed under products;
- whenever a sequence in converges to an invertible matrix , then .
- An arbitrary set of inputs.
- A family of maps , one for each . Each is defined on all of , not only on .
- A fixed input signal .
Trajectories. A trajectory is a function such that, for every :
- , and
- is differentiable at , entrywise, with
The values of at are unconstrained.
Invariant errors. For two trajectories , the left and right invariant errors are
For these are genuine inverses, since is invertible.
Error autonomy. "The left error is autonomous" means: there exists a single function such that for every pair of trajectories and every , the map is differentiable at (entrywise, two-sided) with
"The right error is autonomous" is defined the same way with in place of .
Existence hypothesis. It is assumed that for every and every there exists at least one trajectory with . Uniqueness is not required. Note what this demands:
- a solution through every point of at every positive time;
- that solution must stay in and be defined on all of , with no finite-time blow-up.
For systems where no such trajectories exist, the theorem says nothing.
Conclusion. Under these hypotheses, the following three claims all hold.
-
The left error is autonomous if and only if the right error is autonomous.
-
The right error is autonomous if and only if, for every and all ,
This identity is required only for the input values with , not for all .
- Suppose the identity in (2) holds for all and . Then for every pair of trajectories and every , both errors are differentiable at , with
Remarks.
- Times play no role anywhere in the statement.
- The closedness part of the Lie group condition is assumed but is not referenced in the conclusion.
- When , is the single empty matrix, and all statements hold trivially.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.