Finite pushforward preserves descended expectations
ProvedAPFPaper1.pushWeights_expectationFor any map between finite sets and a real-valued function that descends along it, the expectation computed with transported weights and the descended function equals the original weighted sum. The weights may be signed and need not be normalized. The map need not be surjective; target points outside its image receive weight zero. This is the tested-value reproduction identity in the source proposition, part (ii) and proof.
import Definitions.Def_APFPaper1_ProbabilityTransport set_option autoImplicit false open scoped BigOperators
namespace APFPaper1
theorem pushWeights_expectation
{A B : Type} [Fintype A] [Fintype B]
(q : A → B) (p f : A → ℝ) (g : B → ℝ)
(hdesc : ∀ a, g (q a) = f a) :
(∑ b, pushWeights q p b * g b) = ∑ a, p a * f a := by sorry
end APFPaper1Read-back
What the Lean code literally says, in plain math · Codex (GPT-6)
For every pair of finite types and , each equipped with an enumeration of all its elements, every function , every pair of real-valued functions , and every real-valued function , if for every , then
Here the inner sum is the definition of the transported weight at : it sums over all with , equivalently summing when and otherwise over all of . There is no nonnegativity or total-mass requirement on , and no injectivity or surjectivity requirement on . The hypothesis requires to have the same value at any two elements mapped by to the same element of ; is unrestricted outside the image of , where the transported weight is . Empty types are included and every empty sum is : if is empty, the hypothesis is vacuous and both sides are for any ; if is empty, a function can exist only when is also empty, again giving .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.