Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1: slot identifiability

Proved
ObjectCentric.slot_identifiability

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

identifiabilityjacobian-rankobject-centric-learningrepresentation-learning

Let K≥0K\ge0K≥0 and M≥1M\ge1M≥1, let Z=(RM)K\mathcal Z=(\mathbb R^M)^KZ=(RM)K and let X⊆RN\mathcal X\subseteq\mathbb R^NX⊆RN. Let f:Z→X\mathbf f:\mathcal Z\to\mathcal Xf:Z→X be a diffeomorphism with inverse g\mathbf gg that is compositional (Definition 1) with irreducible mechanisms (Definition 5). Suppose an inference model g^:X→Z\hat{\mathbf g}:\mathcal X\to\mathcal Zg^​:X→Z is (i) a diffeomorphism with (ii) compositional inverse f^=g^−1\hat{\mathbf f}=\hat{\mathbf g}^{-1}f^=g^​−1. Then g^\hat{\mathbf g}g^​ slot-identifies z=g(x)\mathbf z=\mathbf g(\mathbf x)z=g(x). That is, for every k∈[K]k\in[K]k∈[K] there are a unique j∈[K]j\in[K]j∈[K] and a diffeomorphism hk:RM→RM\mathbf h_k:\mathbb R^M\to\mathbb R^Mhk​:RM→RM such that

g^(f(z))j=hk(zk)for all z∈Z.\hat{\mathbf g}(\mathbf f(\mathbf z))_j=\mathbf h_k(\mathbf z_k)\qquad\text{for all }\mathbf z\in\mathcal Z.g^​(f(z))j​=hk​(zk​)for all z∈Z.

The theorem needs no distributional assumption on the latents. Structure on the generator together with an invertible, compositional model suffices to recover the objects up to permutation and slot-wise reparametrisation.

Formalization Note The slot dimension is assumed to satisfy M≥1M\ge1M≥1, which the paper takes for granted. For M=0M=0M=0 and K≥2K\ge2K≥2 the uniqueness of jjj fails. Diffeomorphisms are C1C^1C1.

Preamble
import Mathlib
import Definitions.Def_ObjectCentric_Basic

open MeasureTheory
Formal statement
namespace ObjectCentric

theorem slot_identifiability {K M N : ℕ} (hM : 0 < M) (X : Set (Obs N))
    (f : Lat K M → Obs N) (g : Obs N → Lat K M) (hf : IsDiffeoWithInv f g X)
    (hfc : IsCompositional f) (hfi : IsIrreducible f)
    (ghat : Obs N → Lat K M) (fhat : Lat K M → Obs N) (hhat : IsDiffeoWithInv fhat ghat X)
    (hfhatc : IsCompositional fhat) :
    SlotIdentifies f ghat := by sorry

end ObjectCentric
Source
Brady, Zimmermann, Sharma, Schölkopf, von Kügelgen and Brendel, Provably Learning Object-Centric Representations, ICML 2023, arXiv:2305.14229v1 (2023), Section 3, Theorem 1, p. 5; proof in Appendix A, p. 20
Read-back

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

Setting. Fix natural numbers KKK (slots), MMM (dimension of each slot) and NNN (pixels), with the hypothesis M>0M > 0M>0. The latent space is

Z=(RM)K,\mathcal Z = (\mathbb R^M)^K,Z=(RM)K,

so a latent zzz consists of KKK slot vectors z1,…,zK∈RMz_1,\dots,z_K \in \mathbb R^Mz1​,…,zK​∈RM. The latent space is all of (RM)K(\mathbb R^M)^K(RM)K, not a subset of it. The pixel space is RN\mathbb R^NRN. Let X⊆RNX \subseteq \mathbb R^NX⊆RN be an arbitrary set.

The maps. The statement involves four maps:

  • f:Z→RNf : \mathcal Z \to \mathbb R^Nf:Z→RN (the generator);
  • g:RN→Zg : \mathbb R^N \to \mathcal Zg:RN→Z;
  • g^:RN→Z\hat g : \mathbb R^N \to \mathcal Zg^​:RN→Z (the inference model);
  • f^:Z→RN\hat f : \mathcal Z \to \mathbb R^Nf^​:Z→RN.

Jacobian notation. For a map F:Z→RNF : \mathcal Z \to \mathbb R^NF:Z→RN and a point zzz, let JF(z)J F(z)JF(z) be the N×KMN \times KMN×KM Jacobian matrix:

  • its rows are indexed by pixels nnn;
  • its columns are indexed by pairs (k,m)(k,m)(k,m) of a slot and a coordinate;
  • its entry is ∂Fn/∂zk,m(z)\partial F_n / \partial z_{k,m}(z)∂Fn​/∂zk,m​(z).

Write ∂Fn/∂zk(z)∈RM\partial F_n/\partial z_k(z) \in \mathbb R^M∂Fn​/∂zk​(z)∈RM for the slot-kkk part of row nnn. Define the index set

IkF(z)={ n:∂Fn/∂zk(z)≠0 }.I_k^F(z) = \{\, n : \partial F_n/\partial z_k(z) \neq 0 \,\}.IkF​(z)={n:∂Fn​/∂zk​(z)=0}.

For a set of pixels SSS, let JFS(z)J F_S(z)JFS​(z) be the submatrix of JF(z)J F(z)JF(z) made of the rows in SSS and all KMKMKM columns.

Hypotheses.

  1. fff is a diffeomorphism onto XXX with inverse ggg. This means all of the following:

    • fff is continuously differentiable on all of Z\mathcal ZZ;
    • ggg is continuously differentiable on XXX;
    • the image of fff is exactly XXX;
    • g(f(z))=zg(f(z)) = zg(f(z))=z for every z∈Zz \in \mathcal Zz∈Z.
  2. fff is compositional. For every zzz and all slots k≠jk \neq jk=j, Ikf(z)∩Ijf(z)=∅I_k^f(z) \cap I_j^f(z) = \emptysetIkf​(z)∩Ijf​(z)=∅. So no pixel has a nonzero partial derivative with respect to two different slots at the same point.

  3. fff is irreducible. Take any zzz, any slot kkk, and any two sets of pixels S1,S2S_1, S_2S1​,S2​ that satisfy all of:

    • both are nonempty;
    • they are disjoint;
    • S1∪S2=Ikf(z)S_1 \cup S_2 = I_k^f(z)S1​∪S2​=Ikf​(z).

    For every such choice,

rank⁡JfS1∪S2(z)  <  rank⁡JfS1(z)+rank⁡JfS2(z).\operatorname{rank} J f_{S_1 \cup S_2}(z) \;<\; \operatorname{rank} J f_{S_1}(z) + \operatorname{rank} J f_{S_2}(z).rankJfS1​∪S2​​(z)<rankJfS1​​(z)+rankJfS2​​(z).

This condition is vacuous at any (z,k)(z,k)(z,k) where Ikf(z)I_k^f(z)Ikf​(z) has fewer than two elements, because no such split exists there.

  1. f^\hat ff^​ is a diffeomorphism onto the same set XXX, with inverse g^\hat gg^​. This means all of the following:

    • f^\hat ff^​ is continuously differentiable on Z\mathcal ZZ;
    • g^\hat gg^​ is continuously differentiable on XXX;
    • the image of f^\hat ff^​ is XXX;
    • g^(f^(z))=z\hat g(\hat f(z)) = zg^​(f^​(z))=z for all zzz.
  2. f^\hat ff^​ is compositional in the same sense as in hypothesis 2. Irreducibility is not assumed for f^\hat ff^​.

What is not assumed. No hypothesis mentions:

  • a probability distribution on latents;
  • reconstruction error;
  • the compositional contrast;
  • the auto-encoder objective;
  • any relation between g^\hat gg^​ and fff beyond both fff and f^\hat ff^​ having image XXX.

Conclusion. g^\hat gg^​ slot-identifies fff. That is, for every slot kkk there exists exactly one slot jjj for which there is a map h:RM→RMh : \mathbb R^M \to \mathbb R^Mh:RM→RM with these properties:

  • hhh is continuously differentiable;
  • hhh has a continuously differentiable two-sided inverse;
  • for every z∈Zz \in \mathcal Zz∈Z,
g^(f(z))j=h(zk).\hat g(f(z))_j = h(z_k).g^​(f(z))j​=h(zk​).

The uniqueness is of the slot jjj only. The map hhh need not be unique.

Edge case. When K=0K = 0K=0 there are no slots, so the conclusion holds trivially.

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

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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