Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (7): exact expectation of the i.i.d. Epps–Pulley statistic

Proved
GoodViewsNotEnough.iid_ep_expectation

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

characteristic-functionepps-pulleyjepanonuniquenessself-supervised-learning

Let μ\muμ be a probability measure on R\mathbb{R}R, let ν\nuν be a finite frequency measure on R\mathbb{R}R, and let N≥1N\ge1N≥1. If y1,…,yNy_1,\dots,y_Ny1​,…,yN​ are i.i.d. with law μ\muμ and μ^N=1N∑nδyn\hat\mu_N=\frac1N\sum_n\delta_{y_n}μ^​N​=N1​∑n​δyn​​, then the Epps–Pulley statistic N Dν(μ^N)N\,D_\nu(\hat\mu_N)NDν​(μ^​N​) has expectation

RN,ν(μ)=E[N Dν(μ^N)]=N Dν(μ)+Aν−Jν(μ),R_{N,\nu}(\mu)=\mathbb{E}\big[N\,D_\nu(\hat\mu_N)\big]=N\,D_\nu(\mu)+A_\nu-J_\nu(\mu),RN,ν​(μ)=E[NDν​(μ^​N​)]=NDν​(μ)+Aν​−Jν​(μ),

where Dν(μ)=∫∣φμ−g∣2dνD_\nu(\mu)=\int|\varphi_\mu-g|^2d\nuDν​(μ)=∫∣φμ​−g∣2dν, Aν=ν(R)A_\nu=\nu(\mathbb{R})Aν​=ν(R) and Jν(μ)=∫∣φμ∣2dνJ_\nu(\mu)=\int|\varphi_\mu|^2d\nuJν​(μ)=∫∣φμ​∣2dν.

This identity converts every expected Epps–Pulley objective of the scalar model into a deterministic function of the output law.

Formalization Note The conditions N≥1N\ge1N≥1 and ν(R)<∞\nu(\mathbb{R})<\inftyν(R)<∞ are implicit in the paper: the formula fails for N=0N=0N=0, and AνA_\nuAν​ must be a real number.

Preamble
import Mathlib
import Definitions.Def_GoodViewsNotEnough_Basic

open MeasureTheory Complex
Formal statement
namespace GoodViewsNotEnough

theorem iid_ep_expectation (N : ℕ) (hN : 0 < N) (ν μ : Measure ℝ) [IsFiniteMeasure ν]
    [IsProbabilityMeasure μ] :
    iidEP N ν μ = N * discrepancy ν μ + freqMass ν - selfTerm ν μ := by sorry

end GoodViewsNotEnough
Source
Anran Xu, Good Views Are Not Enough: Global Counterexamples for Gaussian-Regularized JEPAs, arXiv:2611.12137v1 (2026), Appendix A, eqs. (6)-(7), p. 11
Read-back

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

For every positive integer NNN (the hypothesis N>0N > 0N>0 is explicit, so N=0N = 0N=0 is excluded), every finite measure ν\nuν on R\mathbb{R}R (the "frequency measure", not required to be a probability measure, symmetric, or absolutely continuous), and every probability measure μ\muμ on R\mathbb{R}R, the theorem asserts the exact identity

RN,ν(μ)  =  N⋅Dν(μ)  +  Aν  −  Jν(μ).R_{N,\nu}(\mu) \;=\; N \cdot D_\nu(\mu) \;+\; A_\nu \;-\; J_\nu(\mu).RN,ν​(μ)=N⋅Dν​(μ)+Aν​−Jν​(μ).

The symbols are defined as follows.

  • Gaussian target. g(t)=e−t2/2g(t) = e^{-t^2/2}g(t)=e−t2/2 for t∈Rt \in \mathbb{R}t∈R, viewed as a real number embedded in C\mathbb{C}C.
  • Characteristic function. For a measure ρ\rhoρ on R\mathbb{R}R, φρ(t)=∫Reitx dρ(x)\varphi_\rho(t) = \int_{\mathbb{R}} e^{i t x}\, d\rho(x)φρ​(t)=∫R​eitxdρ(x) (Mathlib's characteristic function).
  • Discrepancy. For measures ν,ρ\nu, \rhoν,ρ on R\mathbb{R}R,
Dν(ρ)=∫R∣φρ(t)−g(t)∣2 dν(t).D_\nu(\rho) = \int_{\mathbb{R}} \bigl|\varphi_\rho(t) - g(t)\bigr|^2 \, d\nu(t).Dν​(ρ)=∫R​​φρ​(t)−g(t)​2dν(t).
  • Total mass. Aν=ν(R)A_\nu = \nu(\mathbb{R})Aν​=ν(R), converted from an extended non-negative real to a real number. It is finite here because ν\nuν is assumed finite.
  • Self term.
Jν(μ)=∫R∣φμ(t)∣2 dν(t).J_\nu(\mu) = \int_{\mathbb{R}} |\varphi_\mu(t)|^2 \, d\nu(t).Jν​(μ)=∫R​∣φμ​(t)∣2dν(t).
  • Empirical law. For a batch y=(y1,…,yN)∈RNy = (y_1, \dots, y_N) \in \mathbb{R}^Ny=(y1​,…,yN​)∈RN,
μ^y=∑n=1N1N δyn.\hat\mu_y = \sum_{n=1}^{N} \tfrac{1}{N}\, \delta_{y_n}.μ^​y​=n=1∑N​N1​δyn​​.

Since N>0N > 0N>0, this is a probability measure.

  • Epps–Pulley statistic. For a batch yyy, Tν(y)=N⋅Dν(μ^y)T_\nu(y) = N \cdot D_\nu(\hat\mu_y)Tν​(y)=N⋅Dν​(μ^​y​).
  • Expected statistic. RN,ν(μ)R_{N,\nu}(\mu)RN,ν​(μ) is the integral of Tν(y)T_\nu(y)Tν​(y) over y∈RNy \in \mathbb{R}^Ny∈RN with respect to the NNN-fold product measure μ⊗N\mu^{\otimes N}μ⊗N. That is, it is the expectation of N⋅Dν(μ^y)N \cdot D_\nu(\hat\mu_y)N⋅Dν​(μ^​y​) when y1,…,yNy_1, \dots, y_Ny1​,…,yN​ are i.i.d. with law μ\muμ:
RN,ν(μ)=∫RNN∫R∣1N∑n=1Neityn−e−t2/2∣2dν(t)  dμ⊗N(y).R_{N,\nu}(\mu) = \int_{\mathbb{R}^N} N \int_{\mathbb{R}} \Bigl|\tfrac{1}{N}\sum_{n=1}^N e^{i t y_n} - e^{-t^2/2}\Bigr|^2 d\nu(t)\; d\mu^{\otimes N}(y).RN,ν​(μ)=∫RN​N∫R​​N1​n=1∑N​eityn​−e−t2/2​2dν(t)dμ⊗N(y).

All integrals are real-valued Bochner integrals. Under that convention, an integral whose integrand is not integrable is assigned the value 000 rather than being undefined.

There are no further hypotheses on μ\muμ: no moment, density, or centring assumptions. The only constraints on ν\nuν are finiteness, and ν\nuν may be the zero measure. The right-hand side mixes three kinds of terms:

  • NNN times the population discrepancy of μ\muμ itself (not of an empirical law);
  • the mass of ν\nuν;
  • minus the ν\nuν-weighted integral of the squared modulus of μ\muμ's characteristic function.
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