Proposition 1 (as proved): the logarithmic error of the car obeys a linear autonomous equation
ProvedInvariantEKF.car_log_error_linearConsider two trajectories and , , of the non-holonomic car with the same inputs:
Let be the error (2), where and . The factor is taken equal to its limit at . Assume that either or . Then for every ,
So a non-linear function of the two trajectories obeys a linear, state-independent equation.
Formalization Note The paper prints the entry in the bottom-left corner. That is a sign error: the proof's line equals , not . The matrix of Section 4.2.3 also has there, and a numerical check confirms . The error (2) is undefined when , so that case is excluded. is constant in time, so it suffices to state the hypothesis at . Derivatives at are one-sided.
import Mathlib import Definitions.Def_InvariantEKF_Basic open MeasureTheory Matrix Filter Topology
namespace InvariantEKF
theorem car_log_error_linear (u ω θ x1 x2 θbar xbar1 xbar2 : ℝ → ℝ)
(hθ : ∀ t, 0 ≤ t → HasDerivWithinAt θ (ω t) (Set.Ici 0) t)
(hx1 : ∀ t, 0 ≤ t → HasDerivWithinAt x1 (Real.cos (θ t) * u t) (Set.Ici 0) t)
(hx2 : ∀ t, 0 ≤ t → HasDerivWithinAt x2 (Real.sin (θ t) * u t) (Set.Ici 0) t)
(hθbar : ∀ t, 0 ≤ t → HasDerivWithinAt θbar (ω t) (Set.Ici 0) t)
(hxbar1 : ∀ t, 0 ≤ t → HasDerivWithinAt xbar1 (Real.cos (θbar t) * u t) (Set.Ici 0) t)
(hxbar2 : ∀ t, 0 ≤ t → HasDerivWithinAt xbar2 (Real.sin (θbar t) * u t) (Set.Ici 0) t)
(hdef : θ 0 - θbar 0 = 0 ∨ Real.cos (θ 0 - θbar 0) ≠ 1) :
∀ t, 0 ≤ t →
HasDerivWithinAt (fun s => carLogError (θ s) (x1 s) (x2 s) (θbar s) (xbar1 s) (xbar2 s))
(carErrorMatrix (u t) (ω t) *ᵥ carLogError (θ t) (x1 t) (x2 t) (θbar t) (xbar1 t) (xbar2 t))
(Set.Ici 0) t := by sorry
end InvariantEKFRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. The statement concerns eight arbitrary real-valued functions of time :
- inputs and ;
- a first "car" state ;
- a second car state .
No continuity, measurability or boundedness is assumed for any of them, in particular not for or . Only the values on enter the hypotheses and the conclusion.
Hypotheses. For every , each of the following holds as a derivative taken within , which is one-sided (from the right) at :
Both states are therefore driven by the same inputs and . Nothing relates their initial values except the last hypothesis:
This excludes exactly the initial heading differences with a nonzero integer. Since and have the same derivative on , the difference is constant there. The hypotheses are satisfiable, for example with all eight functions constant and .
The error vector. For the state pair at time , write . Let be the position difference rotated by :
Define the scalar coefficient
At with the denominator vanishes. There the formula is evaluated with the convention that division by zero gives , so .
The error vector is
The matrix. For real numbers and , define
Conclusion. For every , the map has derivative within at (one-sided at ) equal to . Componentwise, this reads
The entry of is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.