Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3 (with the regularity its proof uses): identifiability up to ∼P\sim_P∼P​ for k=1k=1k=1

Proved
IdentifiableVAE.permutation_identifiability_k_eq_one

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

exponential-familiesidentifiabilitynonlinear-icavariational-autoencoders

Assume the hypotheses of Theorem 1 (as stated above) with k=1k=1k=1, and write Ti=Ti,1T_i=T_{i,1}Ti​=Ti,1​. Assume further:

  1. each TiT_iTi​ is continuous and its turning points are isolated: every ttt has a punctured neighbourhood on each side of which TiT_iTi​ is strictly monotonic;
  2. (3.i) no TiT_iTi​ is monotonic, meaning that none is strictly increasing or strictly decreasing;
  3. (3.ii) all partial derivatives of fff exist and are continuous; moreover fff is a C1C^1C1 embedding (a homeomorphism onto its image) whose differential is injective at every point.

Let θ~\tilde\thetaθ~ be a parameter describing a model on UUU with the same properties: T~\tilde TT~ satisfies (iii), each T~i\tilde T_iT~i​ is continuous with isolated turning points and is not monotonic, and f~\tilde ff~​ is a C1C^1C1 embedding with injective differential. Let f~\tilde ff~​ also have the same image X=f(Rn)\mathcal X=f(\mathbb{R}^n)X=f(Rn) as fff. If pθ~(x∣u)=pθ(x∣u)p_{\tilde\theta}(x\mid u)=p_\theta(x\mid u)pθ~​(x∣u)=pθ​(x∣u) for all u∈Uu\in Uu∈U, then there are an invertible matrix AAA with exactly one nonzero entry in each row and column, that is a scaled permutation matrix, and c∈Rnc\in\mathbb{R}^nc∈Rn. For almost every zzz, f(z)=f~(z~)f(z)=\tilde f(\tilde z)f(z)=f~​(z~) for some z~\tilde zz~, and

Ti(zi)=Ai,σ(i)T~σ(i)(z~σ(i))+ci(1≤i≤n).T_i(z_i)=A_{i,\sigma(i)}\tilde T_{\sigma(i)}(\tilde z_{\sigma(i)})+c_i\quad(1\le i\le n).Ti​(zi​)=Ai,σ(i)​T~σ(i)​(z~σ(i)​)+ci​(1≤i≤n).

Formalization Note The statement adds the hypotheses that the printed proof uses but the printed theorem does not state.

  1. Continuity of TiT_iTi​ and T~i\tilde T_iT~i​. Without it the statement is false. For example, take the Gaussian location model of Proposition 1 and redefine Ti(t)=tT_i(t)=tTi​(t)=t at the two points t=0,1t=0,1t=0,1 so that TiT_iTi​ is not monotonic. The observed laws are unchanged, and the rotation of Proposition 1 gives a competing parameter that is not related by a permutation.
  2. The proof says that "by hypothesis" v=f−1∘f~v=f^{-1}\circ\tilde fv=f−1∘f~​ is C1C^1C1 with nonvanishing Jacobian. Continuous partial derivatives of fff and f~\tilde ff~​ do not give this. For example, f~=f∘(z13,z2)\tilde f=f\circ(z_1^3,z_2)f~​=f∘(z13​,z2​) gives a vvv that is not differentiable. An injective C1C^1C1 map need not even have a continuous inverse. The embedding conditions, together with a common image X\mathcal XX (the paper's standing notation), make vvv a C1C^1C1 diffeomorphism of Rn\mathbb{R}^nRn.
  3. The proof chooses a neighbourhood in which TiT_iTi​ has a single minimum, which needs isolated turning points.

The printed proof also assumes "without loss of generality" that every T~a\tilde T_aT~a​ attains a minimum at the chosen point. This fails when some of the maps have only maxima. A topological argument at a point where every non-constant T~a\tilde T_aT~a​ has a strict local extremum repairs it. That argument compares the level set of Ti∘viT_i\circ v_iTi​∘vi​, a C1C^1C1 hypersurface, with that of ∑aAi,aT~a(za)\sum_a A_{i,a}\tilde T_a(z_a)∑a​Ai,a​T~a​(za​). The conclusion is stated almost everywhere.

Preamble
import Mathlib
import Definitions.Def_IdentifiableVAE_Basic

open MeasureTheory
Formal statement
namespace IdentifiableVAE

theorem permutation_identifiability_k_eq_one {n d m : ℕ} (hnd : n ≤ d)
    (U : Set (Fin m → ℝ)) (hU : IsOpen U)
    (Pε : Measure (EuclideanSpace ℝ (Fin d))) [IsProbabilityMeasure Pε] (hPε : Pε ≪ volume)
    (θ : Param n d m 1) (hθ : IsParam θ U)
    (h1 : CharFunZeroNull Pε) (h3 : SuffStatRegular θ) (h4 : HasInvertibleL θ U)
    (hTc : ∀ i, Continuous (θ.T i 0)) (hTi : ∀ i, IsolatedTurningPoints (θ.T i 0))
    (h31 : NotMonotoneStats θ) (h32 : HasContinuousPartials θ.f) (hemb : IsC1Embedding θ.f) :
    IdentifiableUpTo Pε U
      {θ' | IsParam θ' U ∧ SuffStatRegular θ' ∧ (∀ i, Continuous (θ'.T i 0)) ∧
        (∀ i, IsolatedTurningPoints (θ'.T i 0)) ∧ NotMonotoneStats θ' ∧
        HasContinuousPartials θ'.f ∧ IsC1Embedding θ'.f ∧ Set.range θ'.f = Set.range θ.f}
      SimPAE θ := by sorry

end IdentifiableVAE
Source
Khemakhem, Kingma, Monti and Hyvärinen, Variational Autoencoders and Nonlinear ICA: A Unifying Framework, AISTATS 2020, arXiv:1907.04809v4, Section 4.2, Theorem 3, p. 6; proof in Appendix B.4, eqs. (45)-(47), pp. 16-17
Read-back

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

Setting. Fix natural numbers n,d,mn, d, mn,d,m with n≤dn \le dn≤d, and take the number of sufficient statistics per latent coordinate to be k=1k = 1k=1. Latent vectors are z∈Rnz \in \mathbb{R}^nz∈Rn, observations are x∈Rdx \in \mathbb{R}^dx∈Rd (Euclidean space with its standard inner product and Lebesgue measure), and auxiliary variables are u∈Rmu \in \mathbb{R}^mu∈Rm.

A parameter θ=(f,Q,T,λ)\theta = (f, Q, T, \lambda)θ=(f,Q,T,λ) consists of:

  • a function f:Rn→Rdf : \mathbb{R}^n \to \mathbb{R}^df:Rn→Rd;
  • functions Qi:R→RQ_i : \mathbb{R} \to \mathbb{R}Qi​:R→R for i=1,…,ni = 1, \dots, ni=1,…,n;
  • functions Ti:R→RT_i : \mathbb{R} \to \mathbb{R}Ti​:R→R (one statistic per coordinate, since k=1k = 1k=1);
  • a map u↦λ(u)=(λ1(u),…,λn(u))∈Rnu \mapsto \lambda(u) = (\lambda_1(u), \dots, \lambda_n(u)) \in \mathbb{R}^nu↦λ(u)=(λ1​(u),…,λn​(u))∈Rn.

From θ\thetaθ and uuu one forms the unnormalised factors and normalising constants

qiu(t)=Qi(t) eTi(t)λi(u),Zi(u)=∫Rqiu(t) dt.q_i^u(t) = Q_i(t)\, e^{T_i(t)\lambda_i(u)}, \qquad Z_i(u) = \int_{\mathbb{R}} q_i^u(t)\, dt .qiu​(t)=Qi​(t)eTi​(t)λi​(u),Zi​(u)=∫R​qiu​(t)dt.

Two conventions apply. The integral is taken to be 000 if qiuq_i^uqiu​ is not Lebesgue-integrable, and division by 000 gives 000. The prior density is

pθ(z∣u)=∏i=1nqiu(zi)Zi(u).p_\theta(z \mid u) = \prod_{i=1}^n \frac{q_i^u(z_i)}{Z_i(u)} .pθ​(z∣u)=i=1∏n​Zi​(u)qiu​(zi​)​.

The prior law PθuP_\theta^uPθu​ is Lebesgue measure on Rn\mathbb{R}^nRn weighted by this density, with negative values truncated to 000. When n=0n = 0n=0, the product is 111 and PθuP_\theta^uPθu​ is the unit mass on the single point of R0\mathbb{R}^0R0.

Given a noise measure PεP_\varepsilonPε​ on Rd\mathbb{R}^dRd, the observed law is

pθu=(f#Pθu)∗Pε.p_\theta^u = (f_\# P_\theta^u) * P_\varepsilon .pθu​=(f#​Pθu​)∗Pε​.

This is the law of f(z)+εf(z) + \varepsilonf(z)+ε with z∼Pθuz \sim P_\theta^uz∼Pθu​ and ε∼Pε\varepsilon \sim P_\varepsilonε∼Pε​ independent.

Hypotheses. Let U⊆RmU \subseteq \mathbb{R}^mU⊆Rm be an open set. Let PεP_\varepsilonPε​ be a probability measure on Rd\mathbb{R}^dRd that is absolutely continuous with respect to Lebesgue measure, and whose characteristic function

φε(ω)=∫ei⟨ω,x⟩ dPε(x)\varphi_\varepsilon(\omega) = \int e^{i\langle \omega, x\rangle}\, dP_\varepsilon(x)φε​(ω)=∫ei⟨ω,x⟩dPε​(x)

vanishes only on a Lebesgue-null subset of Rd\mathbb{R}^dRd.

Let θ=(f,Q,T,λ)\theta = (f, Q, T, \lambda)θ=(f,Q,T,λ) be a parameter satisfying all of the following.

  1. Admissibility on UUU.

    • fff is measurable and injective.
    • Each QiQ_iQi​ is measurable and strictly positive everywhere on R\mathbb{R}R.
    • Each TiT_iTi​ is measurable.
    • For every u∈Uu \in Uu∈U and every iii, the function qiuq_i^uqiu​ is Lebesgue-integrable on R\mathbb{R}R.
  2. Regular statistics.

    • Each TiT_iTi​ is differentiable at Lebesgue-almost every t∈Rt \in \mathbb{R}t∈R.
    • For every iii, every S⊆RS \subseteq \mathbb{R}S⊆R of positive Lebesgue measure, and all reals α,α0\alpha, \alpha_0α,α0​: if α Ti(t)=α0\alpha\, T_i(t) = \alpha_0αTi​(t)=α0​ for all t∈St \in St∈S, then α=0\alpha = 0α=0. Equivalently, TiT_iTi​ is not constant on any set of positive measure.
  3. Invertible LLL. There exist points u0,u1,…,un∈Uu^0, u^1, \dots, u^n \in Uu0,u1,…,un∈U with the following properties:

    • u1,…,unu^1, \dots, u^nu1,…,un are pairwise distinct;
    • each upu^pup differs from u0u^0u0;
    • the n×nn \times nn×n matrix Lr,p=λr(up)−λr(u0)L_{r,p} = \lambda_r(u^p) - \lambda_r(u^0)Lr,p​=λr​(up)−λr​(u0) has nonzero determinant.

    For n=0n = 0n=0 the determinant is 111, so this only requires U≠∅U \neq \emptysetU=∅.

  4. Each TiT_iTi​ is continuous.

  5. Isolated turning points. For every TiT_iTi​ and every t∈Rt \in \mathbb{R}t∈R there is δ>0\delta > 0δ>0 such that TiT_iTi​ is strictly increasing or strictly decreasing on (t−δ,t)(t - \delta, t)(t−δ,t), and likewise (independently) on (t,t+δ)(t, t + \delta)(t,t+δ).

  6. Non-monotone statistics. No TiT_iTi​ is strictly increasing on all of R\mathbb{R}R, and no TiT_iTi​ is strictly decreasing on all of R\mathbb{R}R.

  7. Continuous partials. For every coordinate ttt, the partial derivative ∂f/∂zt\partial f / \partial z_t∂f/∂zt​ exists at every zzz and is continuous in zzz.

  8. C1C^1C1 embedding. fff is continuously (Fréchet) differentiable, is a topological embedding, and its differential Df(z)Df(z)Df(z) is injective at every zzz.

Comparison class. Let Θ\ThetaΘ be the set of all parameters θ~=(f~,Q~,T~,λ~)\tilde\theta = (\tilde f, \tilde Q, \tilde T, \tilde\lambda)θ~=(f~​,Q~​,T~,λ~), with the same n,d,mn, d, mn,d,m and k=1k = 1k=1, that satisfy:

  • conditions 1, 2, 4, 5, 6, 7 and 8 above (with tildes);
  • f~(Rn)=f(Rn)\tilde f(\mathbb{R}^n) = f(\mathbb{R}^n)f~​(Rn)=f(Rn).

Condition 3 is not required of θ~\tilde\thetaθ~.

Conclusion. For every θ~∈Θ\tilde\theta \in \Thetaθ~∈Θ, suppose pθu=pθ~up_\theta^u = p_{\tilde\theta}^upθu​=pθ~u​ as measures on Rd\mathbb{R}^dRd for every u∈Uu \in Uu∈U. Then there exist an invertible n×nn \times nn×n real matrix AAA, a vector c∈Rnc \in \mathbb{R}^nc∈Rn, and a permutation σ\sigmaσ of {1,…,n}\{1, \dots, n\}{1,…,n} such that:

  • Ai,a=0A_{i,a} = 0Ai,a​=0 whenever a≠σ(i)a \neq \sigma(i)a=σ(i), so that, by invertibility, AAA is a permutation matrix with nonzero scalings Ai,σ(i)A_{i,\sigma(i)}Ai,σ(i)​;
  • for Lebesgue-almost every z∈Rnz \in \mathbb{R}^nz∈Rn there exists z~∈Rn\tilde z \in \mathbb{R}^nz~∈Rn with f~(z~)=f(z)\tilde f(\tilde z) = f(z)f~​(z~)=f(z) and
Ti(zi)=∑a=1nAi,a T~a(z~a)+ci=Ai,σ(i) T~σ(i)(z~σ(i))+cifor all i.T_i(z_i) = \sum_{a=1}^n A_{i,a}\, \tilde T_a(\tilde z_a) + c_i = A_{i,\sigma(i)}\, \tilde T_{\sigma(i)}(\tilde z_{\sigma(i)}) + c_i \quad \text{for all } i .Ti​(zi​)=a=1∑n​Ai,a​T~a​(z~a​)+ci​=Ai,σ(i)​T~σ(i)​(z~σ(i)​)+ci​for all i.

The "almost every" refers to Lebesgue measure on Rn\mathbb{R}^nRn, not to the prior. Since f~\tilde ff~​ is injective, z~\tilde zz~ is unique. The base measures Q~i\tilde Q_iQ~​i​ need not equal QiQ_iQi​. Values of λ,λ~\lambda, \tilde\lambdaλ,λ~ and of the observed laws for u∉Uu \notin Uu∈/U play no role.

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