Proposition 3: asymptotics of as the number of negatives grows
ProvedContrastiveInverts.delta_infonce_asymptoticsLet and be convex bodies in , , and . Let be a metric induced by a norm, or a semi-metric of such a metric. Let positive pairs be drawn as , . Let map injectively into , let the encoder map into , and let be measurable on . Then
where and , with the uniform marginal.
This is the convex-body analogue of the alignment–uniformity decomposition of Wang and Isola (2020).
Formalization Note The standing assumptions of Appendix A.2.1 are included: and are convex bodies, is injective on , , . Following eq. (5), is induced by a norm, which makes it continuous.
import Mathlib import Definitions.Def_ContrastiveInverts_Basic open MeasureTheory Filter Topology
namespace ContrastiveInverts
theorem delta_infonce_asymptotics {N K : ℕ} (hNK : N ≤ K) (Z Z' : Set (Vec N))
(hZ : IsConvexBody Z) (hZ' : IsConvexBody Z') (lam τ : ℝ) (hlam : 0 < lam) (hτ : 0 < τ)
(δ : Vec N → Vec N → ℝ) (hδ : IsNormSemimetric δ)
(X : Set (Vec K)) (g : Vec N → Vec K) (hgX : ∀ z ∈ Z, g z ∈ X) (hg_inj : Set.InjOn g Z)
(f : Vec K → Vec N) (hf : ∀ x ∈ X, f x ∈ Z')
(hmeas : AEMeasurable (f ∘ g) (volume.restrict Z)) :
Tendsto (fun M : ℕ => deltaInfoNCE lam δ τ δ Z (f ∘ g) M - Real.log M) atTop
(𝓝 (deltaAlign lam δ τ δ Z (f ∘ g) + deltaUnif τ δ Z (f ∘ g))) := by sorry
end ContrastiveInvertsRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix natural numbers . Write and for the Euclidean spaces, and for Lebesgue measure on . The statement takes the following data and hypotheses:
- Two convex bodies . Each is convex, compact and has nonempty interior. Nothing relates and to each other. When , is a single point and is allowed.
- Real parameters and , with no relation between them.
- A function . There must exist and such that
-
satisfies:
- ;
- ;
- .
So is a norm on , not necessarily Euclidean.
-
maps bijectively onto , is continuous on , and has . Its values off are unconstrained.
-
A set and two maps. A set ; a map with and injective on ; and a map with .
- No continuity is assumed for or .
- No injectivity is assumed for .
- The only regularity assumed is that is almost-everywhere measurable with respect to restricted to .
- The hypotheses force .
Distributions. Let be the uniform probability measure on . The ground-truth conditional uses the same and the rate :
Here a division by would give . The positive-pair law on is with density .
InfoNCE objective. For each :
Alignment and uniformity terms.
Conventions. All integrals are Bochner integrals, which are defined to be when the integrand is not integrable. The logarithm satisfies and , and also applies to the term at .
Conclusion. As through the natural numbers,
The same appears in all three places: the data-generating conditional (with rate ), the contrastive objective, and both limit terms (with temperature ). The sets and and the dimension enter only through the stated range and injectivity conditions on and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.