Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The conditionally linear distribution of a direct sum is the product of the blocks' distributions

Proved
MIPRE.CL.clDist_famSum

by thomasvidick · Oct 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

linear-algebramip-remipre-formalizationnonlocal-gamesparallel-repetitionverifiers

Let FFF be a finite semiring with decidable equality, ι\iotaι a finite index set with decidable equality, k∈Nk \in \mathbb{N}k∈N, and κ\kappaκ a finite index set with decidable equality together with a bijection e:{0,…,k−1}×ι→κe : \{0,\dots,k-1\} \times \iota \to \kappae:{0,…,k−1}×ι→κ, so that Fκ≅(Fι)kF^\kappa \cong (F^\iota)^kFκ≅(Fι)k; write x(i)=(xe(i,j))j∈ιx^{(i)} = (x_{e(i,j)})_{j \in \iota}x(i)=(xe(i,j)​)j∈ι​ for the iii-th block of x∈Fκx \in F^\kappax∈Fκ. For two functions L,R:Fκ→FκL, R : F^\kappa \to F^\kappaL,R:Fκ→Fκ, the conditionally linear distribution clDist(L,R)\mathrm{clDist}(L, R)clDist(L,R) is the law of the pair (L(x),R(x))(L(x), R(x))(L(x),R(x)) for xxx uniformly random in FκF^\kappaFκ: clDist(L,R)(a,b)=∣{x∈Fκ:L(x)=a, R(x)=b}∣ / ∣Fκ∣\mathrm{clDist}(L,R)(a,b) = |\{x \in F^\kappa : L(x) = a,\ R(x) = b\}| \,/\, |F^\kappa|clDist(L,R)(a,b)=∣{x∈Fκ:L(x)=a, R(x)=b}∣/∣Fκ∣. It is the format of the question distribution of a game whose questions are sampled by CL functions. Let L0,…,Lk−1L_0, \dots, L_{k-1}L0​,…,Lk−1​ and R0,…,Rk−1R_0, \dots, R_{k-1}R0​,…,Rk−1​ be ℓ\ellℓ-level CL presentations on FιF^\iotaFι, and ⨁eL\bigoplus_e L⨁e​L, ⨁eR\bigoplus_e R⨁e​R their direct sums (famSum), the ℓ\ellℓ-level presentations on FκF^\kappaFκ whose stages act blockwise.

For all a,b∈Fκa, b \in F^\kappaa,b∈Fκ,

clDist(⨁eL, ⨁eR)(a,b)  =  ∏i<kclDist(Li,Ri)(a(i),b(i)).\mathrm{clDist}\Bigl(\textstyle\bigoplus_e L,\ \bigoplus_e R\Bigr)(a, b) \;=\; \prod_{i<k} \mathrm{clDist}\bigl(L_i, R_i\bigr)\bigl(a^{(i)}, b^{(i)}\bigr).clDist(⨁e​L, ⨁e​R)(a,b)=∏i<k​clDist(Li​,Ri​)(a(i),b(i)).

The game whose question distribution is the CL distribution of the direct sums is therefore the direct repetition of the game of the blocks: this is the link between the repeated sampler of the parallel repetition theorem and the direct repetition of games, to which the game-level repetition theorem applies.

Formalization Note clDist L R a b := ((Finset.univ.filter fun x => L x = a ∧ R x = b).card : ℝ) / Fintype.card (κ → F), a real number. The statement applies it to the evaluated presentations (CLFun.famSum e ℓ L).eval and (CLFun.famSum e ℓ R).eval, and its right-hand side is ∏ i, clDist (L i).eval (R i).eval (block e i a) (block e i b) over i : Fin k. Arguments: [Fintype F] [DecidableEq F], e : Fin k × ι ≃ κ explicit, {ℓ : ℕ} implicit, L R : Fin k → CLFun F ι ℓ, a b : κ → F; F is a Semiring, ι and κ carry [DecidableEq] [Fintype], and k : ℕ is implicit, from the module's variable declaration. No further hypothesis is assumed (in particular F is not assumed nonempty). Blueprint lem:cl-famsum.

Preamble
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Real.Basic
import Mathlib.LinearAlgebra.Pi
import Definitions.Def_MIPRE_Foundations_CL_Register
import Definitions.Def_MIPRE_Foundations_CL_Basic
import Definitions.Def_MIPRE_Foundations_CL_Closure
import Definitions.Def_MIPRE_Foundations_CL_Repeat

open MIPRE
open MIPRE.CL
set_option linter.unusedSectionVars false
universe u v w
variable {F : Type u} [Semiring F] {ι : Type v} [DecidableEq ι] [Fintype ι] {κ : Type w}
  [DecidableEq κ] [Fintype κ] {k : ℕ}
Formal statement
theorem MIPRE.CL.clDist_famSum [Fintype F] [DecidableEq F] (e : Fin k × ι ≃ κ) {ℓ : ℕ}
    (L R : Fin k → CLFun F ι ℓ) (a b : κ → F) :
    clDist (CLFun.famSum e ℓ L).eval (CLFun.famSum e ℓ R).eval a b =
      ∏ i, clDist (L i).eval (R i).eval (block e i a) (block e i b) := by sorry
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/CL/Repeat.lean#L312-L329; blueprint lem:cl-famsum

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