Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2: the flow of ddtηt=gut(ηt)\frac{d}{dt}\eta_t=g_{u_t}(\eta_t)dtd​ηt​=gut​​(ηt​) is multiplicative

Proved
InvariantEKF.error_flow_multiplicative

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

control-theorykalman-filterlie-groupsnonlinear-observersriccati-equation

Let GGG be a matrix Lie group and let gug_ugu​ satisfy gu(ab)=a gu(b)+gu(a) bg_u(ab)=a\,g_u(b)+g_u(a)\,bgu​(ab)=agu​(b)+gu​(a)b for all inputs uuu and a,b∈Ga,b\in Ga,b∈G. Assume that (t,η)↦gut(η)(t,\eta)\mapsto g_{u_t}(\eta)(t,η)↦gut​​(η) is locally Lipschitz in η\etaη, uniformly for ttt in compact windows, so that ddtηt=gut(ηt)\frac{d}{dt}\eta_t=g_{u_t}(\eta_t)dtd​ηt​=gut​​(ηt​) has a well-defined flow Φt\Phi_tΦt​. Then for all η0,η0′∈G\eta_0,\eta_0'\in Gη0​,η0′​∈G and t≥0t\ge0t≥0,

Φt(η0η0′)=Φt(η0) Φt(η0′).\Phi_t(\eta_0\eta_0')=\Phi_t(\eta_0)\,\Phi_t(\eta_0').Φt​(η0​η0′​)=Φt​(η0​)Φt​(η0′​).

Formalization Note The flow is written through solutions. If η,η′\eta,\eta'η,η′ are solutions on [0,∞)[0,\infty)[0,∞) with values in GGG and ζ\zetaζ is a solution with ζ0=η0η0′\zeta_0=\eta_0\eta'_0ζ0​=η0​η0′​, then ζt=ηtηt′\zeta_t=\eta_t\eta'_tζt​=ηt​ηt′​ for all t≥0t\ge0t≥0. The Lipschitz condition is the standing assumption under which "the flow" exists.

Preamble
import Mathlib
import Definitions.Def_InvariantEKF_Basic

open MeasureTheory Matrix Filter Topology
Formal statement
namespace InvariantEKF

theorem error_flow_multiplicative {N : ℕ} {U : Type*} (G : Set (Matrix (Fin N) (Fin N) ℝ))
    (hG : IsMatrixLieGroup G) (g : U → Matrix (Fin N) (Fin N) ℝ → Matrix (Fin N) (Fin N) ℝ)
    (hg : ∀ v, ∀ a ∈ G, ∀ b ∈ G, g v (a * b) = a * g v b + g v a * b)
    (u : ℝ → U) (hreg : IsLocLipschitzField (fun t => g (u t)))
    (η η' ζ : ℝ → Matrix (Fin N) (Fin N) ℝ)
    (hη : IsSolution (fun t => g (u t)) (Set.Ici 0) η) (hηG : ∀ t, 0 ≤ t → η t ∈ G)
    (hη' : IsSolution (fun t => g (u t)) (Set.Ici 0) η') (hη'G : ∀ t, 0 ≤ t → η' t ∈ G)
    (hζ : IsSolution (fun t => g (u t)) (Set.Ici 0) ζ) (h0 : ζ 0 = η 0 * η' 0) :
    ∀ t, 0 ≤ t → ζ t = η t * η' t := by sorry

end InvariantEKF
Source
Barrau and Bonnabel, The invariant extended Kalman filter as a stable observer, arXiv:1410.1465v4 (2015), Appendix B, Lemma 2, eq. (57), p. 26
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

For a natural number NNN and an arbitrary type UUU of input values, let MNM_NMN​ denote the space of real N×NN\times NN×N matrices. Distances on MNM_NMN​ are measured with the Frobenius norm

∥X∥F=∑i,jXij2.\|X\|_F = \sqrt{\textstyle\sum_{i,j} X_{ij}^2}.∥X∥F​=∑i,j​Xij2​​.

The set GGG. Let G⊆MNG \subseteq M_NG⊆MN​ be a set satisfying the following conditions:

  • the identity matrix III lies in GGG;
  • every a∈Ga \in Ga∈G has nonzero determinant, and a−1∈Ga^{-1} \in Ga−1∈G;
  • GGG is closed under products, so ab∈Gab \in Gab∈G for all a,b∈Ga, b \in Ga,b∈G;
  • whenever a sequence (xn)n∈N(x_n)_{n\in\mathbb N}(xn​)n∈N​ of elements of GGG converges to an invertible matrix aaa, then a∈Ga \in Ga∈G.

The vector fields gvg_vgv​. Let ggg assign to each input v∈Uv \in Uv∈U a map gv:MN→MNg_v : M_N \to M_Ngv​:MN​→MN​, with no continuity or linearity assumed, satisfying the Leibniz-type rule

gv(ab)=a gv(b)+gv(a) bfor all v∈U, a,b∈G.g_v(ab) = a\,g_v(b) + g_v(a)\,b \qquad \text{for all } v\in U,\ a,b\in G.gv​(ab)=agv​(b)+gv​(a)bfor all v∈U, a,b∈G.

Taking a=b=Ia=b=Ia=b=I forces gv(I)=0g_v(I)=0gv​(I)=0. This is a consequence of the rule, not a separate assumption.

The input and the regularity assumption. Let u:R→Uu:\mathbb R\to Uu:R→U be an input signal; its existence forces UUU to be nonempty. Write Ft=gutF_t = g_{u_t}Ft​=gut​​. Assume the following local Lipschitz condition:

  • for every real TTT and every X0∈MNX_0\in M_NX0​∈MN​ there exist r>0r>0r>0 and a real KKK such that
∥Ft(X)−Ft(Y)∥F≤K ∥X−Y∥F\|F_t(X)-F_t(Y)\|_F \le K\,\|X-Y\|_F∥Ft​(X)−Ft​(Y)∥F​≤K∥X−Y∥F​

for all t∈[0,T]t\in[0,T]t∈[0,T] and all X,YX,YX,Y with ∥X−X0∥F<r\|X-X_0\|_F<r∥X−X0​∥F​<r and ∥Y−X0∥F<r\|Y-X_0\|_F<r∥Y−X0​∥F​<r.

For T<0T<0T<0 the interval [0,T][0,T][0,T] is empty and the condition is vacuous. No continuity, boundedness or measurability in ttt is assumed.

The three curves. Let η,η′,ζ:R→MN\eta,\eta',\zeta:\mathbb R\to M_Nη,η′,ζ:R→MN​ be three matrix-valued functions of time.

  • Each of them solves the differential equation
ddtXt=gut(Xt)\frac{d}{dt}X_t = g_{u_t}(X_t)dtd​Xt​=gut​​(Xt​)

at every t≥0t\ge 0t≥0. Derivatives are taken entrywise and within the half-line [0,∞)[0,\infty)[0,∞), so at t=0t=0t=0 the derivative is one-sided from the right. Nothing is assumed for t<0t<0t<0.

  • ηt∈G\eta_t\in Gηt​∈G and ηt′∈G\eta'_t\in Gηt′​∈G for all t≥0t\ge 0t≥0.
  • No membership in GGG is assumed for ζ\zetaζ.
  • At time 000 the curves are linked by
ζ0=η0 η0′.\zeta_0 = \eta_0\,\eta'_0.ζ0​=η0​η0′​.

Conclusion. Under these hypotheses, the theorem asserts that

ζt=ηt ηt′for every t≥0.\zeta_t = \eta_t\,\eta'_t \qquad\text{for every } t\ge 0.ζt​=ηt​ηt′​for every t≥0.

Nothing is claimed for t<0t<0t<0.

Degenerate case. When N=0N=0N=0, MNM_NMN​ consists of a single (empty) matrix, and the statement holds trivially.

Satisfiability. The hypotheses are satisfiable, for example with g≡0g\equiv 0g≡0 and constant curves.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me