Lemma 3: every mechanism has rank
ProvedObjectCentric.mechanism_rank_eq_slot_dimLet and , let and let . Let be a diffeomorphism with inverse that is compositional. Then every mechanism has rank equal to the slot dimension: for all and ,
Formalization Note The slot dimension is assumed to satisfy , which the paper takes for granted (each slot encodes object properties). This statement does not need it: for every rank in it is and it still holds.
import Mathlib import Definitions.Def_ObjectCentric_Basic open MeasureTheory
namespace ObjectCentric
theorem mechanism_rank_eq_slot_dim {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) :
∀ (z : Lat K M) (k : Fin K), subRank f z (indexSet f z k) = M := by sorry
end ObjectCentricRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers (number of slots), (dimension of each slot) and (number of pixels), and assume . The latent space is
whose elements assign to each slot a vector . The pixel space is , with pixel of written .
Let be any set, and let and be arbitrary functions satisfying two hypotheses.
Hypothesis 1: diffeomorphism with inverse. This means all of the following hold:
- is continuously differentiable () on all of ;
- is on the set (in the "within " sense; nothing is required of outside );
- the image of is exactly , i.e. ;
- for every . In particular, is injective.
Hypothesis 2: compositionality. For every and every pair of distinct slots , the index sets and are disjoint. Here
This is the set of pixels whose vector of partial derivatives with respect to the coordinates of slot , evaluated at , is not identically zero.
The partial derivatives come from the Jacobian . This is the real matrix whose row and column is
the derivative of at applied to the standard basis vector for coordinate of slot , read off at pixel .
Conclusion. For every and every slot , consider the submatrix . It is formed by keeping only the rows of indexed by pixels in , and keeping all columns, i.e. columns for every slot, not only slot . The theorem asserts that this submatrix has rank exactly :
Edge cases.
- If , there are no slots and the conclusion holds vacuously.
- If , injectivity of forces to be a single point. Since , this can only happen when .
- The function does not appear in the conclusion. It enters only through the requirement that has a left inverse that is on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.