Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 1 (as proved): Gaussian location families are not ∼P\sim_P∼P​-identifiable

Proved
IdentifiableVAE.gaussian_location_not_permutation

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

exponential-familiesidentifiabilitynonlinear-icavariational-autoencoders

Let k=1k=1k=1 and n≥2n\ge2n≥2. Let θ=(f,Q,T,λ)\theta=(f,Q,T,\lambda)θ=(f,Q,T,λ) describe a model on UUU with Gaussian base measure Qi(t)=e−t2Q_i(t)=e^{-t^2}Qi​(t)=e−t2 and sufficient statistic Ti(t)=tT_i(t)=tTi​(t)=t for all iii, so that only the location of each ziz_izi​ depends on uuu. Then there is a parameter θ~\tilde\thetaθ~ describing a model on UUU with

pθ~(x∣u)=pθ(x∣u)(u∈U),p_{\tilde\theta}(x\mid u)=p_\theta(x\mid u)\qquad(u\in U),pθ~​(x∣u)=pθ​(x∣u)(u∈U),

such that θ̸∼Pθ~\theta\not\sim_P\tilde\thetaθ∼P​θ~, even in the almost-everywhere sense. The matrix AAA of Theorem 1 therefore cannot be reduced to a permutation matrix. The competing parameter is obtained from an orthogonal transformation of the latents: f~=f∘R⊤\tilde f=f\circ R^\topf~​=f∘R⊤, λ~=Rλ\tilde\lambda=R\lambdaλ~=Rλ.

Formalization Note The case Qi≡1Q_i\equiv1Qi​≡1 of the paper is not included. With Ti(t)=tT_i(t)=tTi​(t)=t on R\mathbb{R}R the factor eλte^{\lambda t}eλt is never integrable, and on a half-line the rotation used in the proof does not preserve the domain. The hypothesis n≥2n\ge2n≥2 is added: for n=1n=1n=1 every invertible 1×11\times11×1 matrix is a permutation block, so ∼A\sim_A∼A​ and ∼P\sim_P∼P​ coincide and Theorem 1 contradicts the claim whenever its hypotheses hold. (For n=1n=1n=1 with λ\lambdaλ constant on UUU, the claim does hold, through a non-affine measure-preserving rearrangement of the latent.)

Preamble
import Mathlib
import Definitions.Def_IdentifiableVAE_Basic

open MeasureTheory
Formal statement
namespace IdentifiableVAE

theorem gaussian_location_not_permutation {n d m : ℕ} (hn : 2 ≤ n) (hnd : n ≤ d)
    (U : Set (Fin m → ℝ))
    (Pε : Measure (EuclideanSpace ℝ (Fin d))) [IsProbabilityMeasure Pε] (hPε : Pε ≪ volume)
    (θ : Param n d m 1) (hθ : IsParam θ U)
    (hT : ∀ i t, θ.T i 0 t = t) (hQ : ∀ i t, θ.Q i t = Real.exp (-t ^ 2)) :
    ∃ θ' : Param n d m 1, IsParam θ' U ∧ (∀ u ∈ U, obsLaw Pε θ u = obsLaw Pε θ' u) ∧
      ¬ 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, Proposition 1, p. 6; proof in Appendix B.5, eqs. (48)-(52), pp. 17-18
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

2≤n≤d.2 \le n \le d .2≤n≤d.

Here nnn is the latent dimension, ddd the observation dimension and mmm the dimension of the auxiliary variable; m=0m = 0m=0 is allowed, in which case R0\mathbb{R}^0R0 is a single point. The number of sufficient statistics per latent coordinate is fixed at k=1k = 1k=1. Let:

  • U⊆RmU \subseteq \mathbb{R}^mU⊆Rm be an arbitrary set of auxiliary values. It may be empty, and nothing else is assumed about it.
  • PεP_\varepsilonPε​ be a probability measure on Rd\mathbb{R}^dRd (the noise law) that is absolutely continuous with respect to Lebesgue measure. No condition on its characteristic function is imposed.
  • θ=(f,Q,T,λ)\theta = (f, Q, T, \lambda)θ=(f,Q,T,λ) be a parameter with k=1k = 1k=1. Its components are:
    • a mixing map f:Rn→Rdf : \mathbb{R}^n \to \mathbb{R}^df:Rn→Rd;
    • base functions Qi:R→RQ_i : \mathbb{R} \to \mathbb{R}Qi​:R→R for i=1,…,ni = 1, \dots, ni=1,…,n;
    • statistics Ti,1:R→RT_{i,1} : \mathbb{R} \to \mathbb{R}Ti,1​:R→R;
    • natural parameters λi,1(u)∈R\lambda_{i,1}(u) \in \mathbb{R}λi,1​(u)∈R for u∈Rmu \in \mathbb{R}^mu∈Rm.

Hypotheses on θ\thetaθ. The parameter is required to be "admissible on UUU": fff is measurable and injective, each QiQ_iQi​ is measurable and strictly positive, each Ti,1T_{i,1}Ti,1​ is measurable, and for every u∈Uu \in Uu∈U and every iii the function t↦Qi(t) eTi,1(t)λi,1(u)t \mapsto Q_i(t)\, e^{T_{i,1}(t)\lambda_{i,1}(u)}t↦Qi​(t)eTi,1​(t)λi,1​(u) is Lebesgue-integrable on R\mathbb{R}R. In addition, for all iii and all ttt,

Ti,1(t)=tandQi(t)=e−t2.T_{i,1}(t) = t \qquad\text{and}\qquad Q_i(t) = e^{-t^2}.Ti,1​(t)=tandQi​(t)=e−t2.

With these choices, the positivity, measurability and integrability requirements on QQQ and TTT hold automatically. The only remaining constraints on θ\thetaθ are that fff is measurable and injective. No condition whatsoever is placed on the function λ\lambdaλ; in particular, no invertibility or variability condition across uuu is assumed.

Observed law. For a parameter ϑ\varthetaϑ and u∈Rmu \in \mathbb{R}^mu∈Rm, the prior on Rn\mathbb{R}^nRn is Lebesgue measure weighted by the density

pϑ(z∣u)=max⁡(0, ∏i=1nQi(zi) eTi,1(zi)λi,1(u)Zi(u)),Zi(u)=∫RQi(t) eTi,1(t)λi,1(u) dt.p_{\vartheta}(z \mid u) = \max\Big(0,\ \prod_{i=1}^n \frac{Q_i(z_i)\, e^{T_{i,1}(z_i)\lambda_{i,1}(u)}}{Z_i(u)}\Big), \qquad Z_i(u) = \int_{\mathbb{R}} Q_i(t)\, e^{T_{i,1}(t)\lambda_{i,1}(u)}\,dt .pϑ​(z∣u)=max(0, i=1∏n​Zi​(u)Qi​(zi​)eTi,1​(zi​)λi,1​(u)​),Zi​(u)=∫R​Qi​(t)eTi,1​(t)λi,1​(u)dt.

The integral defining Zi(u)Z_i(u)Zi​(u) is taken to be 000 if the integrand is not integrable, and division by 000 gives 000. For θ\thetaθ itself, this prior makes the coordinates ziz_izi​ independent Gaussians with mean λi,1(u)/2\lambda_{i,1}(u)/2λi,1​(u)/2 and variance 1/21/21/2.

The observed conditional law pϑ(⋅∣u)p_\vartheta(\cdot \mid u)pϑ​(⋅∣u) is the convolution on Rd\mathbb{R}^dRd of two measures:

  • the push-forward of this prior under the mixing map of ϑ\varthetaϑ;
  • the noise law PεP_\varepsilonPε​.

Equivalently, it is the law of f(z)+εf(z) + \varepsilonf(z)+ε with zzz drawn from the prior and ε∼Pε\varepsilon \sim P_\varepsilonε∼Pε​ independent of zzz.

Conclusion. There exists a parameter θ′=(f′,Q′,T′,λ′)\theta' = (f', Q', T', \lambda')θ′=(f′,Q′,T′,λ′) with the same n,d,mn, d, mn,d,m and k=1k = 1k=1 such that the following three conditions hold:

  1. θ′\theta'θ′ is admissible on UUU in the sense above. That is, f′f'f′ is measurable and injective, each Qi′Q'_iQi′​ is measurable and strictly positive, each Ti,1′T'_{i,1}Ti,1′​ is measurable, and Qi′(t) eTi,1′(t)λi,1′(u)Q'_i(t)\, e^{T'_{i,1}(t)\lambda'_{i,1}(u)}Qi′​(t)eTi,1′​(t)λi,1′​(u) is integrable in ttt for every u∈Uu \in Uu∈U. No other regularity is required of θ′\theta'θ′.
  2. For every u∈Uu \in Uu∈U, the observed laws coincide:
pθ(⋅∣u)=pθ′(⋅∣u).p_\theta(\cdot \mid u) = p_{\theta'}(\cdot \mid u).pθ​(⋅∣u)=pθ′​(⋅∣u).

If U=∅U = \varnothingU=∅, this condition is vacuous. 3. The pair (θ,θ′)(\theta, \theta')(θ,θ′) is not related by the almost-everywhere block-permutation relation. Explicitly, there is no choice of the following data:

  • a real n×nn \times nn×n matrix AAA that is invertible, with 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 \ne \sigma(i)a=σ(i). Since k=1k = 1k=1, AAA is then a permutation matrix with nonzero entries placed at (i,σ(i))(i, \sigma(i))(i,σ(i)).
  • a vector c∈Rnc \in \mathbb{R}^nc∈Rn;

such that for Lebesgue-almost every z∈Rnz \in \mathbb{R}^nz∈Rn there exists z′∈Rnz' \in \mathbb{R}^nz′∈Rn with

f′(z′)=f(z)andz=A T′(z′)+c,f'(z') = f(z) \qquad\text{and}\qquad z = A\, T'(z') + c ,f′(z′)=f(z)andz=AT′(z′)+c,

where T′(z′)=(T1,1′(z1′),…,Tn,1′(zn′))T'(z') = \big(T'_{1,1}(z'_1), \dots, T'_{n,1}(z'_n)\big)T′(z′)=(T1,1′​(z1′​),…,Tn,1′​(zn′​)). The left-hand side is zzz itself because T(z)=zT(z) = zT(z)=z for θ\thetaθ.

Put the other way: for every such invertible AAA, permutation pattern σ\sigmaσ and vector ccc, the set of zzz for which no such z′z'z′ exists has positive Lebesgue outer measure.

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