Proposition E.1, Eq. (59): the contrastive term tends to a log kernel-density value
ProvedIActThereforeIAm.contrastive_term_kde_limitLet , let , and set . There is a constant with the following property. Take any probability law on , i.i.d. samples from , and any , and let the prediction be locally accurate, . Then almost surely
Here is the negative log-likelihood of and the Gaussian kernel of bandwidth .
This relates the contrastive term of A-JEPA to a Gaussian kernel-density estimate of the representation law.
Formalization Note Only Eq. (59) is stated. Its convergence mode is taken as almost sure for each fixed , as the law-of-large-numbers proof gives. "Independent of the representation distribution" is encoded by choosing before . The samples are a mutually independent sequence. Eqs. (60) and (62) are not included.
import Mathlib import Definitions.Def_IActThereforeIAm_Basic open MeasureTheory Filter Topology open scoped ENNReal NNReal ContDiff
namespace IActThereforeIAm
theorem contrastive_term_kde_limit {d : ℕ} (σ τ : ℝ) (hσ : 0 < σ) (hτ : 0 < τ) :
∃ C : ℝ, ∀ (Ω : Type) [MeasurableSpace Ω] (P : Measure Ω) [IsProbabilityMeasure P]
(μ : Measure (Fin d → ℝ)) [IsProbabilityMeasure μ] (Zs : ℕ → Ω → Fin d → ℝ),
(∀ k, Measurable (Zs k)) → ProbabilityTheory.iIndepFun Zs P → (∀ k, P.map (Zs k) = μ) →
∀ zt : Fin d → ℝ, ∀ᵐ w ∂P,
Tendsto (fun K => contrastiveU σ τ zt (fun k => Zs k w) K) atTop
(𝓝 (Real.log (kernelSmoothed μ (Real.sqrt (τ * σ ^ 2)) zt) + C)) := by sorry
end IActThereforeIAmRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix a dimension (the case is included) and real numbers with and . The statement asserts that there is a real constant , depending only on , and , with the property below. Its value is not specified.
The property must hold for all of the following data:
- every measurable space with a probability measure ;
- every Borel probability measure on ;
- every sequence of maps such that
- each is measurable (Borel -algebra on ),
- the whole family is mutually independent under ,
- each has law under , i.e. the pushforward equals .
For every such choice and every point , there is a -null set outside of which the stated convergence holds. The null set may depend on and on all the other data. For -almost every :
The limit is an ordinary limit of real numbers as through the natural numbers.
The quantity is defined as follows. For , write for the squared Euclidean norm. Then
where
So is the Gaussian negative log-likelihood of under . Note that the point plays the role of the mean. The samples used are the first terms .
For the expression is defined by convention as . This has no effect on the limit.
The right-hand side uses a smoothed density defined by
with the Gaussian kernel
The integrand is continuous, strictly positive and bounded by . Since is a probability measure, this integral is a strictly positive real number, and its logarithm is the ordinary real logarithm.
In the degenerate case , the space is a single point. Every norm is then , so , for , and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.