Eq. (20): exact expectation of the pooled Epps–Pulley statistic
ProvedGoodViewsNotEnough.pooled_ep_expectationIn the 512-dimensional model, let be any encoder. Let be a batch of i.i.d. scenes, each with independent nuisances, so that there are outputs. Let be uniform on . Write
- and ;
- and ;
- .
Here and are the marginal and the conditional characteristic functions of . Then the pooled statistic has expectation
The within-example term is what distinguishes the pooled statistic from one computed on unrelated observations.
Formalization Note Only the second line of eq. (20) is stated. The first line, with , is the same expression rearranged.
import Mathlib import Definitions.Def_GoodViewsNotEnough_Basic open MeasureTheory Complex
namespace GoodViewsNotEnough
theorem pooled_ep_expectation (h : Fin 513 → (Fin 512 → Bool) → Fin 512 → ℝ) :
pooledEP h = (2048 - 8) * pooledJ h + (8 - 1) * pooledJc h - 2 * 2048 * pooledX h +
2048 * (∑ j, pooledWeight j * gaussCF (pooledNode j) ^ 2) + ∑ j, pooledWeight j := by sorry
end GoodViewsNotEnoughRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Statement. This holds for every function with no hypotheses on : no whitening, centring, measurability, linearity or boundedness assumption. Here
where is a "scene" index and is a Boolean "nuisance" vector. The theorem asserts the exact identity
Nodes and weights. The symbols are defined as follows.
- Nodes are for , and with .
- Weights are , where and for .
Scene law. The scene law on is and for , which sums to . Each nuisance gets weight .
Directions. For a direction in the unit sphere , write . Here is the surface measure on that Mathlib induces from Lebesgue measure on , divided by its total mass; this is the uniform probability measure.
All -integrals below are Bochner integrals against . Under that convention, a non-integrable integrand would be assigned the value .
Left-hand side. The left-hand side is the finite weighted sum
The sum ranges over all batches . Each batch has examples, and each example consists of:
- one scene , and
- nuisance vectors , one per "view".
These nuisance vectors are not required to be distinct. The batch weight is
meaning that scenes are i.i.d. from and all nuisances are i.i.d. uniform, independent of the scenes. The per-batch, per-direction statistic is
Right-hand side. Write the model's projected characteristic function and the scene-conditional characteristic function as
Then the three terms are:
- ,
- ,
- .
The constants and appearing in the identity are fixed numerals, not parameters.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.