Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite pushforward preserves linear combinations

Proved
APFPaper1.pushWeights_linear_combination

by FiniteUniverse · Sep 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

finite-sumsprobabilitypushforward

For a map between finite sets, fiber-sum transport commutes with every finite linear combination of real weight functions. Coefficients and weights may be arbitrary real numbers. Convex mixtures are a special case. This is the pushforward-linearity step used in the source proposition, part (ii).

Preamble
import Definitions.Def_APFPaper1_ProbabilityTransport

set_option autoImplicit false
open scoped BigOperators
Formal statement
namespace APFPaper1

theorem pushWeights_linear_combination
    {A B I : Type} [Fintype A] [Fintype B] [Fintype I]
    (q : A → B) (c : I → ℝ) (p : I → A → ℝ) :
    pushWeights q (fun a => ∑ i, c i * p i a) =
      fun b => ∑ i, c i * pushWeights q (p i) b := by sorry

end APFPaper1
Source
E. S. Brooke, The Enforceability of Distinction, Technical Supplement v9.23 (local source), proposition Per-defender profile reduction: the proposition of record, part (ii) and its proof (LaTeX label prop:generated-boolean-kernel-minimal-defender); definition Defender state simplex and affine preparation slice (def:defender-state-simplex); https://doi.org/10.5281/zenodo.19714957 (concept DOI).
Read-back

What the Lean code literally says, in plain math · Codex (GPT-6)

For every three finite types AAA, BBB, and III, each equipped with a finite enumeration of all its elements, every function q:A→Bq:A\to Bq:A→B, every family of real coefficients c:I→Rc:I\to\mathbb{R}c:I→R, and every family of real-valued functions p:I→(A→R)p:I\to(A\to\mathbb{R})p:I→(A→R), the following equality holds as an equality of functions from BBB to R\mathbb{R}R: for every b∈Bb\in Bb∈B,

∑a∈A{∑i∈Ic(i)p(i)(a),q(a)=b,0,q(a)≠b=∑i∈Ic(i)(∑a∈A{p(i)(a),q(a)=b,0,q(a)≠b.).\sum_{a\in A}\begin{cases}\displaystyle\sum_{i\in I}c(i)p(i)(a),&q(a)=b,\\0,&q(a)\ne b\end{cases}=\sum_{i\in I}c(i)\left(\sum_{a\in A}\begin{cases}p(i)(a),&q(a)=b,\\0,&q(a)\ne b.\end{cases}\right).a∈A∑​⎩⎨⎧​i∈I∑​c(i)p(i)(a),0,​q(a)=b,q(a)=b​=i∈I∑​c(i)(a∈A∑​{p(i)(a),0,​q(a)=b,q(a)=b.​).

Here each sum is over all elements of its indicated finite type; in particular, the custom operation used in the declaration sends any function r:A→Rr:A\to\mathbb{R}r:A→R to the function taking bbb to ∑a∈A(r(a) if q(a)=b, otherwise 0)\sum_{a\in A}(r(a)\text{ if }q(a)=b,\text{ otherwise }0)∑a∈A​(r(a) if q(a)=b, otherwise 0). There are no sign, normalization, or sum constraints on ccc or ppp, and qqq need not be injective or surjective. The types may be empty: if III is empty or AAA is empty, both sides at every bbb are zero; if a particular bbb has no preimage under qqq, both sides at that bbb are zero. If BBB is empty, the asserted function equality is vacuous pointwise; a supplied function q:A→Bq:A\to Bq:A→B can then exist only if AAA is also empty.

Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FiniteUniverse · Nov 18, 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