Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Corollary 1: each ground-truth slot generates pixels of exactly one inferred slot

Proved
ObjectCentric.object_meets_one_inferred_slot

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

identifiabilityjacobian-rankobject-centric-learningrepresentation-learning

Under the hypotheses of Proposition 2: 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 with irreducible mechanisms. Let g^:X→Z\hat{\mathbf g}:\mathcal X\to\mathcal Zg^​:X→Z be a diffeomorphism with inverse f^:Z→X\hat{\mathbf f}:\mathcal Z\to\mathcal Xf^:Z→X that is compositional. Write z^=g^(f(z))\hat{\mathbf z}=\hat{\mathbf g}(\mathbf f(\mathbf z))z^=g^​(f(z)) and let I^j(z^)\hat I_j(\hat{\mathbf z})I^j​(z^) be the index sets of f^\hat{\mathbf f}f^. Then for all z∈Z\mathbf z\in\mathcal Zz∈Z and i∈[K]i\in[K]i∈[K] there is exactly one j∈[K]j\in[K]j∈[K] with

I^j(z^)∩Ii(z)≠∅.\hat I_j(\hat{\mathbf z})\cap I_i(\mathbf z)\neq\emptyset.I^j​(z^)∩Ii​(z)=∅.

Formalization Note The paper states the corollary without repeating hypotheses. They are those of Proposition 2, which it applies, and they are written out here. The slot dimension is assumed to satisfy M≥1M\ge1M≥1.

Preamble
import Mathlib
import Definitions.Def_ObjectCentric_Basic

open MeasureTheory
Formal statement
namespace ObjectCentric

theorem object_meets_one_inferred_slot {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) :
    ∀ (z : Lat K M) (i : Fin K), ∃! j : Fin K,
      (indexSet fhat (ghat (f z)) j ∩ indexSet f z i).Nonempty := 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), Appendix A, Corollary 1, p. 18
Read-back

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

Setting. Fix natural numbers KKK (number of slots), MMM (dimension of each slot) and NNN (number of pixels), with the hypothesis M>0M > 0M>0. No positivity is assumed for KKK or NNN.

  • The latent space is Z=(RM)KZ = (\mathbb{R}^M)^KZ=(RM)K. A point z∈Zz \in Zz∈Z has slot components zk∈RMz_k \in \mathbb{R}^Mzk​∈RM for k∈{1,…,K}k \in \{1,\dots,K\}k∈{1,…,K}.
  • The pixel space is RN\mathbb{R}^NRN.

The data are:

  • a set X⊆RNX \subseteq \mathbb{R}^NX⊆RN;
  • maps f:Z→RNf : Z \to \mathbb{R}^Nf:Z→RN and g:RN→Zg : \mathbb{R}^N \to Zg:RN→Z;
  • maps g^:RN→Z\hat g : \mathbb{R}^N \to Zg^​:RN→Z and f^:Z→RN\hat f : Z \to \mathbb{R}^Nf^​:Z→RN.

Diffeomorphism hypotheses. The pair (f,g)(f, g)(f,g) is assumed to satisfy all of the following:

  • fff is continuously differentiable (C1C^1C1) on all of ZZZ;
  • ggg is C1C^1C1 on the set XXX, in the sense of differentiability relative to XXX; XXX is not required to be open;
  • the image of fff is exactly XXX;
  • g(f(z))=zg(f(z)) = zg(f(z))=z for every z∈Zz \in Zz∈Z, so in particular fff is injective.

The same four conditions are assumed for the pair (f^,g^)(\hat f, \hat g)(f^​,g^​), with the same set XXX:

  • f^\hat ff^​ is C1C^1C1 on ZZZ;
  • g^\hat gg^​ is C1C^1C1 on XXX;
  • f^(Z)=X\hat f(Z) = Xf^​(Z)=X;
  • g^(f^(z))=z\hat g(\hat f(z)) = zg^​(f^​(z))=z for all zzz.

No other relation between f^,g^\hat f, \hat gf^​,g^​ and f,gf, gf,g is assumed, and ggg does not appear in the conclusion.

Jacobians and index sets. For a C1C^1C1 map F:Z→RNF : Z \to \mathbb{R}^NF:Z→RN and a point z∈Zz \in Zz∈Z:

  • JF(z)J F(z)JF(z) is the N×(KM)N \times (KM)N×(KM) Jacobian matrix. Its rows are indexed by pixels nnn, and its columns by pairs (k,m)(k, m)(k,m) of a slot kkk and a coordinate m∈{1,…,M}m \in \{1,\dots,M\}m∈{1,…,M}. Its entries are ∂Fn/∂zk,m(z)\partial F_n / \partial z_{k,m}(z)∂Fn​/∂zk,m​(z).
  • ∂Fn/∂zk(z)∈RM\partial F_n / \partial z_k(z) \in \mathbb{R}^M∂Fn​/∂zk​(z)∈RM is the vector of these entries for fixed nnn and kkk.
  • The index set of slot kkk is
IkF(z)={ n∈{1,…,N}:∂Fn∂zk(z)≠0∈RM }.I^F_k(z) = \{\, n \in \{1,\dots,N\} : \tfrac{\partial F_n}{\partial z_k}(z) \neq 0 \in \mathbb{R}^M \,\}.IkF​(z)={n∈{1,…,N}:∂zk​∂Fn​​(z)=0∈RM}.
  • For a set SSS of pixels, JFS(z)J F_S(z)JFS​(z) is the submatrix of JF(z)J F(z)JF(z) consisting of the rows in SSS and all KMKMKM columns. Its rank is the real matrix rank.

Structural hypotheses.

  • fff is compositional: for every z∈Zz \in Zz∈Z and all slots k≠jk \neq jk=j, Ikf(z)∩Ijf(z)=∅I^f_k(z) \cap I^f_j(z) = \emptysetIkf​(z)∩Ijf​(z)=∅.
  • fff is irreducible: for every z∈Zz \in Zz∈Z, every slot kkk, and all sets S1,S2S_1, S_2S1​,S2​ of pixels that are nonempty, disjoint, and satisfy S1∪S2=Ikf(z)S_1 \cup S_2 = I^f_k(z)S1​∪S2​=Ikf​(z), we have
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 whenever Ikf(z)I^f_k(z)Ikf​(z) has fewer than two elements.

  • f^\hat ff^​ is compositional: for every w∈Zw \in Zw∈Z and all k≠jk \neq jk=j, Ikf^(w)∩Ijf^(w)=∅I^{\hat f}_k(w) \cap I^{\hat f}_j(w) = \emptysetIkf^​​(w)∩Ijf^​​(w)=∅.
  • f^\hat ff^​ is not assumed irreducible.

Conclusion. For every z∈Zz \in Zz∈Z and every slot i∈{1,…,K}i \in \{1,\dots,K\}i∈{1,…,K}, write z^=g^(f(z))∈Z\hat z = \hat g(f(z)) \in Zz^=g^​(f(z))∈Z. Then there exists exactly one slot j∈{1,…,K}j \in \{1,\dots,K\}j∈{1,…,K} such that

Ijf^(z^)∩Iif(z)≠∅.I^{\hat f}_j(\hat z) \cap I^f_i(z) \neq \emptyset.Ijf^​​(z^)∩Iif​(z)=∅.

In words, exactly one slot jjj has an index set for f^\hat ff^​ at z^\hat zz^ that shares at least one pixel with the index set Iif(z)I^f_i(z)Iif​(z) of slot iii for fff at zzz.

Edge cases.

  • The existence part of the conclusion entails that Iif(z)I^f_i(z)Iif​(z) is nonempty for every zzz and every iii. That is, every slot of fff has at least one pixel with a nonzero partial derivative at every point. This is not stated among the hypotheses.
  • If K=0K = 0K=0, there are no slots iii and the statement holds vacuously.
  • If N=0N = 0N=0 and K≥1K \geq 1K≥1, every index set is empty. In that case the hypotheses cannot all hold, since f:RKM→R0f : \mathbb{R}^{KM} \to \mathbb{R}^0f:RKM→R0 with KM>0KM > 0KM>0 cannot be injective.
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