Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1: impossibility of unsupervised disentanglement

Proved
DisentanglementImpossibility.impossibility_theorem

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

disentanglementidentifiabilitynonlinear-icarepresentation-learning

Let d>1d>1d>1, and let z∼Pz\sim Pz∼P be a random vector in Rd\mathbb{R}^dRd whose law admits a density p(z)=∏i=1dp(zi)p(z)=\prod_{i=1}^dp(z_i)p(z)=∏i=1d​p(zi​), so that its coordinates zi∼μiz_i\sim\mu_izi​∼μi​ are independent and each has a Lebesgue density. Then there is an infinite sequence f(1),f(2),…f^{(1)},f^{(2)},\dotsf(1),f(2),… of maps, pairwise different on supp⁡(z)\operatorname{supp}(z)supp(z), such that each f=f(n)f=f^{(n)}f=f(n) satisfies:

  1. fff is measurable and is a bijection supp⁡(z)→supp⁡(z)\operatorname{supp}(z)\to\operatorname{supp}(z)supp(z)→supp(z);
  2. zzz and f(z)f(z)f(z) are completely entangled: for all i,ji,ji,j and PPP-almost every uuu, the partial derivative ∂fi(u)/∂uj\partial f_i(u)/\partial u_j∂fi​(u)/∂uj​ of fff, as a map on supp⁡(z)\operatorname{supp}(z)supp(z), exists and
∂fi(u)∂uj≠0;\frac{\partial f_i(u)}{\partial u_j}\ne0;∂uj​∂fi​(u)​=0;
  1. zzz and f(z)f(z)f(z) have the same distribution function on the support:
P(z≤u)=P(f(z)≤u)for all u∈supp⁡(z).P(z\le u)=P(f(z)\le u)\qquad\text{for all }u\in\operatorname{supp}(z).P(z≤u)=P(f(z)≤u)for all u∈supp(z).

Consequently, a generative model with latent zzz and the model with latent z^=f(z)\hat z=f(z)z^=f(z) induce the same distribution of observations, while every coordinate of z^\hat zz^ depends on every coordinate of zzz. An unsupervised method, which only sees observations, cannot distinguish the two models.

Formalization Note (a) No condition on the supports is assumed, as in the paper. The paper's proof asserts that ggg is bijective, which is false when a marginal support has a gap, for example [0,1]∪[2,3][0,1]\cup[2,3][0,1]∪[2,3]. The theorem still holds: the paper's map is first conjugated by a bijection of supp⁡(z)\operatorname{supp}(z)supp(z) that moves only countably many coordinate values, along short chains starting at the right endpoints of the gaps. (b) "Almost everywhere" is taken with respect to PPP. Under Lebesgue measure on supp⁡(z)\operatorname{supp}(z)supp(z) the proof's construction fails when a density vanishes on a set of positive measure inside its support. (c) The partial derivatives of f:supp⁡(z)→supp⁡(z)f:\operatorname{supp}(z)\to\operatorname{supp}(z)f:supp(z)→supp(z) are taken along the support. (d) The infinite family is an injective sequence, with distinctness required on supp⁡(z)\operatorname{supp}(z)supp(z) because values off the support are irrelevant. (e) Measurability of fff is the standing convention that f(z)f(z)f(z) is a random variable.

Preamble
import Mathlib
import Definitions.Def_DisentanglementImpossibility_Basic

open MeasureTheory ProbabilityTheory
Formal statement
namespace DisentanglementImpossibility

theorem impossibility_theorem {d : ℕ} (hd : 1 < d) (μ : Fin d → Measure ℝ)
    (hμ : IsFactorizedDensity μ) :
    ∃ f : ℕ → (Fin d → ℝ) → Fin d → ℝ,
      (∀ m n, m ≠ n → ∃ u ∈ (latentLaw μ).support, f m u ≠ f n u) ∧
      ∀ n,
        Measurable (f n) ∧
        Set.BijOn (f n) (latentLaw μ).support (latentLaw μ).support ∧
        (∀ i j, ∀ᵐ u ∂(latentLaw μ), partialDerivWithin (f n) (latentLaw μ).support i j u ≠ 0) ∧
        (∀ u ∈ (latentLaw μ).support,
          latentLaw μ {z | z ≤ u} = latentLaw μ {z | f n z ≤ u}) := by sorry

end DisentanglementImpossibility
Source
Locatello, Bauer, Lucic, Rätsch, Gelly, Schölkopf, Bachem, Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representations, ICML 2019, arXiv:1811.12359v4, Section 3, Theorem 1, p. 3; proof in Appendix A, p. 12
Read-back

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

Setting. Fix a natural number ddd with d>1d > 1d>1, so d≥2d \ge 2d≥2. Let μ1,…,μd\mu_1, \dots, \mu_dμ1​,…,μd​ be measures on R\mathbb{R}R such that, for every iii:

  • μi\mu_iμi​ is a probability measure, and
  • μi\mu_iμi​ is absolutely continuous with respect to Lebesgue measure, μi≪λ\mu_i \ll \lambdaμi​≪λ.

No further regularity is assumed. The densities need not be continuous or positive anywhere in particular, and the marginals need not have connected support.

Let P=μ1⊗⋯⊗μdP = \mu_1 \otimes \cdots \otimes \mu_dP=μ1​⊗⋯⊗μd​ be the product measure on Rd\mathbb{R}^dRd, which is the law of a vector z=(z1,…,zd)z = (z_1, \dots, z_d)z=(z1​,…,zd​) with independent coordinates zi∼μiz_i \sim \mu_izi​∼μi​. Let S=supp⁡(P)⊆RdS = \operatorname{supp}(P) \subseteq \mathbb{R}^dS=supp(P)⊆Rd be the topological support of PPP: the set of points xxx such that every neighbourhood of xxx has positive PPP-measure. This is a closed set.

Partial derivatives within SSS. For a map f:Rd→Rdf : \mathbb{R}^d \to \mathbb{R}^df:Rd→Rd, indices i,ji, ji,j and a point uuu, write u[j↦t]u[j \mapsto t]u[j↦t] for uuu with its jjj-th coordinate replaced by ttt. Define ∂jSfi(u)\partial^S_j f_i(u)∂jS​fi​(u) as the derivative at t=ujt = u_jt=uj​ of the one-variable function t↦fi(u[j↦t])t \mapsto f_i(u[j \mapsto t])t↦fi​(u[j↦t]), restricted to those ttt with u[j↦t]∈Su[j \mapsto t] \in Su[j↦t]∈S. By convention this quantity is 000 in two cases:

  • the derivative does not exist, or
  • uju_juj​ is not an accumulation point of that set of ttt.

Consequently, the statement ∂jSfi(u)≠0\partial^S_j f_i(u) \neq 0∂jS​fi​(u)=0 means that this restricted derivative exists and is nonzero.

Claim. There exists a sequence of maps fn:Rd→Rdf_n : \mathbb{R}^d \to \mathbb{R}^dfn​:Rd→Rd, indexed by n∈N={0,1,2,… }n \in \mathbb{N} = \{0, 1, 2, \dots\}n∈N={0,1,2,…}, with the following properties.

  1. Pairwise distinct on SSS. For all m≠nm \neq nm=n there is some u∈Su \in Su∈S with fm(u)≠fn(u)f_m(u) \neq f_n(u)fm​(u)=fn​(u).

  2. Measurable. Each fnf_nfn​ is Borel measurable on Rd\mathbb{R}^dRd.

  3. Bijection of the support. Each fnf_nfn​ restricts to a bijection of SSS onto itself:

    • fn(S)⊆Sf_n(S) \subseteq Sfn​(S)⊆S,
    • fnf_nfn​ is injective on SSS, and
    • every point of SSS is fn(u)f_n(u)fn​(u) for some u∈Su \in Su∈S.
  4. All partial derivatives nonzero almost everywhere. For every nnn and every pair of indices i,j∈{1,…,d}i, j \in \{1, \dots, d\}i,j∈{1,…,d}, including the diagonal case i=ji = ji=j, we have

∂jS(fn)i(u)≠0for P-almost every u∈Rd.\partial^S_j (f_n)_i(u) \neq 0 \quad \text{for } P\text{-almost every } u \in \mathbb{R}^d.∂jS​(fn​)i​(u)=0for P-almost every u∈Rd.

The exceptional null set may depend on nnn, iii and jjj.

  1. Same joint CDF at points of the support. For every nnn and every u∈Su \in Su∈S,
P({z:z≤u})=P({z:fn(z)≤u}),P\big(\{z : z \le u\}\big) = P\big(\{z : f_n(z) \le u\}\big),P({z:z≤u})=P({z:fn​(z)≤u}),

where ≤\le≤ is the coordinatewise order on Rd\mathbb{R}^dRd. In words, the joint distribution function of PPP and that of the image law of PPP under fnf_nfn​ agree at every point u∈Su \in Su∈S. Nothing is asserted at points u∉Su \notin Su∈/S.

What is not asserted. The maps fnf_nfn​ are asserted only to exist. The statement does not tie them to any particular construction: the CDF map, the Gaussian quantile map, the Householder matrix and the entangling map defined in the accompanying file do not appear in it. Nothing prevents one of the fnf_nfn​ from being the identity. Distinctness is only the pairwise condition in item 1.

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