Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition B.15: stability of the LDD-LP

Proved
IdentifiableAlignment.ldd_lp_stability

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

gromov-wassersteinidentifiabilitymetric-measure-spacesoptimal-transportriemannian-geometry

Let M\mathcal MM be a compact connected smooth Riemannian manifold of dimension d≥1d\ge1d≥1, possibly with boundary, with Riemannian distance dMd_{\mathcal M}dM​, and let PMP_{\mathcal M}PM​ be a probability measure on M\mathcal MM with a smooth positive density (H1). Let fa:Za→Mf_a:\mathcal Z_a\to\mathcal Mfa​:Za​→M and fb:Zb→Mf_b:\mathcal Z_b\to\mathcal Mfb​:Zb​→M be diffeomorphisms, where each latent space carries the pullback metric ga=fa∗gMg_a=f_a^*g^{\mathcal M}ga​=fa∗​gM, gb=fb∗gMg_b=f_b^*g^{\mathcal M}gb​=fb∗​gM and its Riemannian distance dad_ada​, dbd_bdb​ (H2). Write Pa=(fa−1)#PMP_a=(f_a^{-1})_\#P_{\mathcal M}Pa​=(fa−1​)#​PM​, Pb=(fb−1)#PMP_b=(f_b^{-1})_\#P_{\mathcal M}Pb​=(fb−1​)#​PM​ and A=fb−1∘faA=f_b^{-1}\circ f_aA=fb−1​∘fa​. Let R=diam⁡MR=\operatorname{diam}\mathcal MR=diamM, let m(t)m(t)m(t) be the margin of the data mm-space, and assume ∣Φ(x,r)−Φ(x,r′)∣≤K∣r−r′∣|\Phi(x,r)-\Phi(x,r')|\le K|r-r'|∣Φ(x,r)−Φ(x,r′)∣≤K∣r−r′∣ for all x∈Mx\in\mathcal Mx∈M and r,r′≥0r,r'\ge0r,r′≥0, where Φ(x,r)=PM(BˉM(x,r))\Phi(x,r)=P_{\mathcal M}(\bar B_{\mathcal M}(x,r))Φ(x,r)=PM​(BˉM​(x,r)). Let ccc be the LDD-LP cost of Pa,PbP_a,P_bPa​,Pb​.

  1. For every probability measure η\etaη on Za×Zb\mathcal Z_a\times\mathcal Z_bZa​×Zb​ and every t∈(0,R]t\in(0,R]t∈(0,R] with m(t)>0m(t)>0m(t)>0,
η({(z,w):db(w,A(z))≥t})≤K2m(t)3∫c dη.\eta\big(\{(z,w):d_b(w,A(z))\ge t\}\big)\le\frac{K^2}{m(t)^3}\int c\,d\eta.η({(z,w):db​(w,A(z))≥t})≤m(t)3K2​∫cdη.
  1. For any samples za∈Zan\mathrm z^a\in\mathcal Z_a^nza∈Zan​, zb∈Zbn\mathrm z^b\in\mathcal Z_b^nzb∈Zbn​ (n≥1n\ge1n≥1) with empirical measures P^a,P^b\hat P_a,\hat P_bP^a​,P^b​, every minimiser η^\hat\etaη^​ of the empirical LDD-LP over Π(P^a,P^b)\Pi(\hat P_a,\hat P_b)Π(P^a​,P^b​) satisfies
∫c dη^≤2R[W1(P^a,Pa)+W1(P^b,Pb)+2δ],\int c\,d\hat\eta\le2R\Big[W_1(\hat P_a,P_a)+W_1(\hat P_b,P_b)+2\delta\Big],∫cdη^​≤2R[W1​(P^a​,Pa​)+W1​(P^b​,Pb​)+2δ],

where δ=sup⁡zW2(Φ^a(z,⋅),Φa(z,⋅))+sup⁡wW2(Φ^b(w,⋅),Φb(w,⋅))\delta=\sup_zW_2(\hat\Phi_a(z,\cdot),\Phi_a(z,\cdot))+\sup_wW_2(\hat\Phi_b(w,\cdot),\Phi_b(w,\cdot))δ=supz​W2​(Φ^a​(z,⋅),Φa​(z,⋅))+supw​W2​(Φ^b​(w,⋅),Φb​(w,⋅)). 3. With B(t)=K2m(t)3B(t)=\frac{K^2}{m(t)^3}B(t)=m(t)3K2​ times the right-hand side of 2 and dPd_PdP​ the Lévy–Prokhorov distance for the metric max⁡(da,db)\max(d_a,d_b)max(da​,db​),

dP(η^,η⋆)≤inf⁡tmax⁡{t,B(t)}+dP(P^a,Pa),d_P(\hat\eta,\eta^\star)\le\inf_t\max\{t,B(t)\}+d_P(\hat P_a,P_a),dP​(η^​,η⋆)≤tinf​max{t,B(t)}+dP​(P^a​,Pa​),

the infimum running over t∈(0,R]t\in(0,R]t∈(0,R] with m(t)>0m(t)>0m(t)>0.

Formalization Note The paper writes the infimum in 3 over all t>0t>0t>0. B(t)B(t)B(t) is defined only where the margin is (Definition 4.3, 0<t≤R0<t\le R0<t≤R), and the paper intends it to be infinite where m(t)=0m(t)=0m(t)=0. In Lean, real division by 000 gives 000, so ENNReal.ofReal (K ^ 2 / margin P t ^ 3) would be 000 there, not ∞\infty∞; including such ttt would make the bound false. The infimum is therefore taken over t∈(0,R]t\in(0,R]t∈(0,R] with m(t)>0m(t)>0m(t)>0 (an empty infimum is +∞+\infty+∞).

Preamble
import Mathlib
import Definitions.Def_IdentifiableAlignment_Basic

open MeasureTheory ProbabilityTheory Set Filter Topology Bundle
open scoped ENNReal ContDiff Manifold
Formal statement
namespace IdentifiableAlignment

theorem ldd_lp_stability {d : ℕ} [NeZero d] {M Za Zb : Type*}
    [MetricSpace M] [ChartedSpace (EuclideanHalfSpace d) M] [IsManifold (𝓡∂ d) ∞ M]
    [RiemannianBundle (fun x : M => TangentSpace (𝓡∂ d) x)]
    [IsContMDiffRiemannianBundle (𝓡∂ d) ∞ (EuclideanSpace ℝ (Fin d)) (fun x : M => TangentSpace (𝓡∂ d) x)]
    [IsRiemannianManifold (𝓡∂ d) M] [MeasurableSpace M] [BorelSpace M]
    [CompactSpace M] [ConnectedSpace M]
    [MetricSpace Za] [ChartedSpace (EuclideanHalfSpace d) Za] [IsManifold (𝓡∂ d) ∞ Za]
    [RiemannianBundle (fun x : Za => TangentSpace (𝓡∂ d) x)]
    [IsContMDiffRiemannianBundle (𝓡∂ d) ∞ (EuclideanSpace ℝ (Fin d)) (fun x : Za => TangentSpace (𝓡∂ d) x)]
    [IsRiemannianManifold (𝓡∂ d) Za] [MeasurableSpace Za] [BorelSpace Za]
    [MetricSpace Zb] [ChartedSpace (EuclideanHalfSpace d) Zb] [IsManifold (𝓡∂ d) ∞ Zb]
    [RiemannianBundle (fun x : Zb => TangentSpace (𝓡∂ d) x)]
    [IsContMDiffRiemannianBundle (𝓡∂ d) ∞ (EuclideanSpace ℝ (Fin d)) (fun x : Zb => TangentSpace (𝓡∂ d) x)]
    [IsRiemannianManifold (𝓡∂ d) Zb] [MeasurableSpace Zb] [BorelSpace Zb]
    (P : Measure M) [IsProbabilityMeasure P] (hP : HasSmoothPosDensity d P)
    (fa : Za ≃ₘ^∞⟮𝓡∂ d, 𝓡∂ d⟯ M) (fb : Zb ≃ₘ^∞⟮𝓡∂ d, 𝓡∂ d⟯ M)
    (hfa : IsModelCoordinates fa) (hfb : IsModelCoordinates fb)
    (K : ℝ) (hK : IsLddLipschitz P K) :
    (∀ η : Measure (Za × Zb), IsProbabilityMeasure η → ∀ t : ℝ, 0 < t →
      t ≤ Metric.diam (univ : Set M) → 0 < margin P t →
      η {p | t ≤ dist p.2 (alignMap fa fb p.1)} ≤
        ENNReal.ofReal (K ^ 2 / margin P t ^ 3) * lddLP (latentLaw P fa) (latentLaw P fb) η) ∧
    (∀ (n : ℕ), 1 ≤ n → ∀ (za : Fin n → Za) (zb : Fin n → Zb) (η : Measure (Za × Zb)),
      IsOptimalCoupling (lddLP (empMeasure za) (empMeasure zb)) (empMeasure za) (empMeasure zb) η →
      lddLP (latentLaw P fa) (latentLaw P fb) η ≤ (ENNReal.ofReal (2 * Metric.diam (univ : Set M)) *
        (w1 (empMeasure za) (latentLaw P fa) + w1 (empMeasure zb) (latentLaw P fb) +
          2 * lddEstError (latentLaw P fa) (empMeasure za) (latentLaw P fb) (empMeasure zb))) ∧
      levyProkhorovEDist η (inducedCoupling (latentLaw P fa) (alignMap fa fb)) ≤
        (⨅ t ∈ {t : ℝ | 0 < t ∧ t ≤ Metric.diam (univ : Set M) ∧ 0 < margin P t},
          max (ENNReal.ofReal t) (ENNReal.ofReal (K ^ 2 / margin P t ^ 3) * (ENNReal.ofReal (2 * Metric.diam (univ : Set M)) *
        (w1 (empMeasure za) (latentLaw P fa) + w1 (empMeasure zb) (latentLaw P fb) +
          2 * lddEstError (latentLaw P fa) (empMeasure za) (latentLaw P fb) (empMeasure zb))))) +
        levyProkhorovEDist (empMeasure za) (latentLaw P fa)) := by sorry

end IdentifiableAlignment
Source
Syrota, Lopez i Serrano, Franck and Hauberg, Identifiable alignment of unpaired representations, arXiv:2611.11460v1 (2026), Appendix B.3, eq. (11), Proposition B.15, eqs. (12)-(13), p. 30; margin Definition 4.3, eq. (5), p. 6
Read-back

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

Setting. Fix a natural number d≥1d \ge 1d≥1 and three spaces MMM, ZaZ_aZa​, ZbZ_bZb​. Each one is:

  • a smooth (C∞C^\inftyC∞) ddd-dimensional manifold, possibly with boundary, modelled on the Euclidean half-space Hd\mathbb{H}^dHd;
  • equipped with a Riemannian metric that varies smoothly;
  • a metric space whose distance is the Riemannian distance of that metric;
  • given its Borel σ\sigmaσ-algebra.

MMM is in addition assumed compact and connected. No compactness or connectedness is assumed for ZaZ_aZa​ or ZbZ_bZb​. Write diam⁡M\operatorname{diam} MdiamM for the diameter of MMM, which is finite.

Hypotheses.

  • The measure PPP. PPP is a probability measure on MMM of the form P=ρ dHdP = \rho \, d\mathcal{H}^dP=ρdHd. Here Hd\mathcal{H}^dHd is the ddd-dimensional Hausdorff measure of the distance of MMM, and ρ:M→R\rho : M \to \mathbb{R}ρ:M→R is smooth with ρ(x)>0\rho(x) > 0ρ(x)>0 for every xxx.
  • The maps fa,fbf_a, f_bfa​,fb​. fa:Za→Mf_a : Z_a \to Mfa​:Za​→M and fb:Zb→Mf_b : Z_b \to Mfb​:Zb​→M are C∞C^\inftyC∞ diffeomorphisms. Each is a pullback of metrics: for every z∈Zaz \in Z_az∈Za​ and tangent vectors v,w∈TzZav, w \in T_z Z_av,w∈Tz​Za​, gZa(v,w)=gM(dfa v,dfa w)g_{Z_a}(v,w) = g_M(df_a\, v, df_a\, w)gZa​​(v,w)=gM​(dfa​v,dfa​w), and likewise for fbf_bfb​.
  • The constant KKK. K∈RK \in \mathbb{R}K∈R is such that for every x∈Mx \in Mx∈M and all r,r′≥0r, r' \ge 0r,r′≥0,
∣Φ(x,r)−Φ(x,r′)∣≤K ∣r−r′∣,|\Phi(x,r) - \Phi(x,r')| \le K\,|r - r'|,∣Φ(x,r)−Φ(x,r′)∣≤K∣r−r′∣,

where Φ(x,r)=P(Bˉ(x,r))\Phi(x,r) = P(\bar B(x,r))Φ(x,r)=P(Bˉ(x,r)) is the PPP-mass of the closed ball. Since the left side is ≥0\ge 0≥0, this forces K≥0K \ge 0K≥0.

Notation.

  • Alignment map. A=fb−1∘fa:Za→ZbA = f_b^{-1}\circ f_a : Z_a \to Z_bA=fb−1​∘fa​:Za​→Zb​.
  • Latent laws. μa=(fa−1)#P\mu_a = (f_a^{-1})_\# Pμa​=(fa−1​)#​P on ZaZ_aZa​ and μb=(fb−1)#P\mu_b = (f_b^{-1})_\# Pμb​=(fb−1​)#​P on ZbZ_bZb​.
  • Empirical measures. For a sample z1,…,znz_1,\dots,z_nz1​,…,zn​ (repetitions allowed), μ^=1n∑iδzi\hat\mu = \frac1n \sum_i \delta_{z_i}μ^​=n1​∑i​δzi​​.
  • Couplings. For measures α\alphaα on XXX and β\betaβ on YYY, a coupling is a measure on X×YX\times YX×Y with marginals α\alphaα and β\betaβ; the set of them is Π(α,β)\Pi(\alpha,\beta)Π(α,β).
  • Distance law. For a measure μ\muμ on a metric space XXX and x∈Xx \in Xx∈X, Lμ(x)L_\mu(x)Lμ​(x) is the law on R\mathbb{R}R of d(x,x′)d(x, x')d(x,x′) when x′∼μx' \sim \mux′∼μ.
  • W2W_2W2​ on the line. For measures α,β\alpha, \betaα,β on R\mathbb{R}R,
W22(α,β)=inf⁡γ∈Π(α,β)∫(s−s′)2 dγ∈[0,∞],W_2^2(\alpha,\beta) = \inf_{\gamma \in \Pi(\alpha,\beta)} \int (s-s')^2 \, d\gamma \in [0,\infty],W22​(α,β)=γ∈Π(α,β)inf​∫(s−s′)2dγ∈[0,∞],

and W2=(W22)1/2W_2 = (W_2^2)^{1/2}W2​=(W22​)1/2.

  • LDD-LP objective. For measures μ\muμ on ZaZ_aZa​ and ν\nuν on ZbZ_bZb​, and any measure η\etaη on Za×ZbZ_a \times Z_bZa​×Zb​,
Jμ,ν(η)=∫W22(Lμ(a), Lν(b)) dη(a,b)∈[0,∞].J_{\mu,\nu}(\eta) = \int W_2^2\big(L_\mu(a),\, L_\nu(b)\big)\, d\eta(a,b) \in [0,\infty].Jμ,ν​(η)=∫W22​(Lμ​(a),Lν​(b))dη(a,b)∈[0,∞].
  • Margin. For t∈Rt \in \mathbb{R}t∈R,
m(t)=inf⁡{sup⁡r∈R∣Φ(x,r)−Φ(x′,r)∣  :  x,x′∈M, dM(x,x′)≥t},m(t) = \inf\Big\{ \sup_{r\in\mathbb{R}} |\Phi(x,r) - \Phi(x',r)| \;:\; x,x' \in M,\ d_M(x,x') \ge t \Big\},m(t)=inf{r∈Rsup​∣Φ(x,r)−Φ(x′,r)∣:x,x′∈M, dM​(x,x′)≥t},

computed for PPP on MMM. An empty infimum is taken to be 000.

  • W1W_1W1​. W1(μ,ν)=inf⁡γ∈Π(μ,ν)∫d(p,q) dγ(p,q)∈[0,∞]W_1(\mu,\nu) = \inf_{\gamma\in\Pi(\mu,\nu)} \int d(p,q)\, d\gamma(p,q) \in [0,\infty]W1​(μ,ν)=infγ∈Π(μ,ν)​∫d(p,q)dγ(p,q)∈[0,∞].
  • Estimation error. Given samples μ^a,μ^b\hat\mu_a, \hat\mu_bμ^​a​,μ^​b​,
δ=sup⁡a∈ZaW2(Lμ^a(a),Lμa(a))+sup⁡b∈ZbW2(Lμ^b(b),Lμb(b))∈[0,∞].\delta = \sup_{a\in Z_a} W_2\big(L_{\hat\mu_a}(a), L_{\mu_a}(a)\big) + \sup_{b \in Z_b} W_2\big(L_{\hat\mu_b}(b), L_{\mu_b}(b)\big) \in [0,\infty].δ=a∈Za​sup​W2​(Lμ^​a​​(a),Lμa​​(a))+b∈Zb​sup​W2​(Lμ^​b​​(b),Lμb​​(b))∈[0,∞].
  • Lévy–Prokhorov distance. LP(α,β)∈[0,∞]\mathrm{LP}(\alpha,\beta) \in [0,\infty]LP(α,β)∈[0,∞] is the infimum of all ε∈[0,∞]\varepsilon \in [0,\infty]ε∈[0,∞] such that, for every measurable BBB, both α(B)≤β(Bε)+ε\alpha(B) \le \beta(B^\varepsilon) + \varepsilonα(B)≤β(Bε)+ε and β(B)≤α(Bε)+ε\beta(B) \le \alpha(B^\varepsilon)+\varepsilonβ(B)≤α(Bε)+ε. Here BεB^\varepsilonBε is the open ε\varepsilonε-thickening of BBB. On Za×ZbZ_a\times Z_bZa​×Zb​ the metric is the max of the two coordinate distances.

Conclusion. Under these hypotheses, both of the following hold.

(1) Population bound. Take any probability measure η\etaη on Za×ZbZ_a\times Z_bZa​×Zb​. It is not required to be a coupling of μa,μb\mu_a,\mu_bμa​,μb​. Take any real ttt with 0<t≤diam⁡M0 < t \le \operatorname{diam} M0<t≤diamM and m(t)>0m(t) > 0m(t)>0. Then

η({(a,b):dZb(b,A(a))≥t})  ≤  K2m(t)3  Jμa,μb(η).\eta\big(\{(a,b) : d_{Z_b}(b, A(a)) \ge t\}\big) \;\le\; \frac{K^2}{m(t)^3}\; J_{\mu_a,\mu_b}(\eta).η({(a,b):dZb​​(b,A(a))≥t})≤m(t)3K2​Jμa​,μb​​(η).

(2) Empirical bounds. Take any n≥1n \ge 1n≥1, any points z1a,…,zna∈Zaz^a_1,\dots,z^a_n \in Z_az1a​,…,zna​∈Za​ and z1b,…,znb∈Zbz^b_1,\dots,z^b_n \in Z_bz1b​,…,znb​∈Zb​, and set μ^a=1n∑iδzia\hat\mu_a = \frac1n\sum_i \delta_{z^a_i}μ^​a​=n1​∑i​δzia​​ and μ^b=1n∑iδzib\hat\mu_b = \frac1n\sum_i\delta_{z^b_i}μ^​b​=n1​∑i​δzib​​. Let η\etaη be any minimiser of the empirical objective Jμ^a,μ^bJ_{\hat\mu_a,\hat\mu_b}Jμ^​a​,μ^​b​​ over Π(μ^a,μ^b)\Pi(\hat\mu_a,\hat\mu_b)Π(μ^​a​,μ^​b​). That is, η∈Π(μ^a,μ^b)\eta \in \Pi(\hat\mu_a,\hat\mu_b)η∈Π(μ^​a​,μ^​b​) and Jμ^a,μ^b(η)≤Jμ^a,μ^b(η′)J_{\hat\mu_a,\hat\mu_b}(\eta) \le J_{\hat\mu_a,\hat\mu_b}(\eta')Jμ^​a​,μ^​b​​(η)≤Jμ^​a​,μ^​b​​(η′) for every η′∈Π(μ^a,μ^b)\eta' \in \Pi(\hat\mu_a,\hat\mu_b)η′∈Π(μ^​a​,μ^​b​). Define

B=2diam⁡M⋅(W1(μ^a,μa)+W1(μ^b,μb)+2δ).B = 2\operatorname{diam} M \cdot \big( W_1(\hat\mu_a,\mu_a) + W_1(\hat\mu_b,\mu_b) + 2\delta \big).B=2diamM⋅(W1​(μ^​a​,μa​)+W1​(μ^​b​,μb​)+2δ).

Then both of the following hold.

  • (2a) Jμa,μb(η)≤BJ_{\mu_a,\mu_b}(\eta) \le BJμa​,μb​​(η)≤B. This is the population objective evaluated at the empirical minimiser.
  • (2b) Let T={t∈R:0<t≤diam⁡M, m(t)>0}\mathcal{T} = \{ t \in \mathbb{R} : 0 < t \le \operatorname{diam} M,\ m(t) > 0\}T={t∈R:0<t≤diamM, m(t)>0}. Then
LP(η, (id×A)#μa)  ≤  inf⁡t∈Tmax⁡(t, K2m(t)3 B)  +  LP(μ^a,μa).\mathrm{LP}\big(\eta,\ (\mathrm{id}\times A)_\#\mu_a\big) \;\le\; \inf_{t \in \mathcal{T}} \max\Big( t,\ \frac{K^2}{m(t)^3}\, B \Big) \;+\; \mathrm{LP}(\hat\mu_a, \mu_a).LP(η, (id×A)#​μa​)≤t∈Tinf​max(t, m(t)3K2​B)+LP(μ^​a​,μa​).

If T\mathcal{T}T is empty, the infimum is +∞+\infty+∞ and the bound is trivial.

Arithmetic. All quantities are in [0,∞][0,\infty][0,∞], and products and sums follow extended non-negative arithmetic. In particular, JJJ, W1W_1W1​ and δ\deltaδ may equal +∞+\infty+∞, in which case the corresponding bounds are trivial.

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