Lemma 5: compositional if and only if the compositional contrast vanishes
ProvedObjectCentric.compositional_iff_contrast_zeroLet be differentiable. Then is compositional (Definition 1) if and only if
The contrast therefore vanishes identically exactly on the compositional maps.
import Mathlib import Definitions.Def_ObjectCentric_Basic open MeasureTheory
namespace ObjectCentric
theorem compositional_iff_contrast_zero {K M N : ℕ} (f : Lat K M → Obs N)
(hf : Differentiable ℝ f) :
IsCompositional f ↔ ∀ z : Lat K M, compContrast f z = 0 := by sorry
end ObjectCentricRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be arbitrary natural numbers, with no positivity assumed. The latent space is . A point is a -tuple of "slots" , and each slot has coordinates . The pixel space is , with pixel coordinates indexed by .
The theorem concerns any map
under a single hypothesis: is (Fréchet) differentiable at every point of . Nothing more is assumed. In particular, it does not assume continuous differentiability, injectivity, invertibility, or that is a diffeomorphism onto its image.
Derived quantities. For , let be the derivative of at .
- Slot gradient. For each pixel and slot , the slot gradient is the vector
Its -th entry is the -th component of applied to the standard basis vector that is in coordinate and elsewhere.
- Index set. The index set of slot at is
This is the set of pixels whose slot- gradient is not the zero vector.
- Compositionality. is compositional if, for every and every pair of distinct slots ,
- Compositional contrast. The compositional contrast at is the real number
Here is the Euclidean norm on . The inner sum runs over slots strictly greater than in the usual order on .
Assertion. For every such differentiable , the following equivalence holds in both directions:
Degenerate cases. In each of the following cases both sides of the equivalence hold trivially:
- If , there are no pairs of distinct slots and the contrast is an empty sum.
- If , all index sets are empty and the contrast is an empty sum.
- If , every slot gradient is the zero vector in , so all index sets are empty and every norm is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.