Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The stage maps of a direct sum of CL presentations, read off a prefix, are blockwise

Proved
MIPRE.CL.CLFun.mapOfPrefix_famSum

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

linear-algebramip-remipre-formalizationparallel-repetitionverifiers

Let FFF be a semiring, ι\iotaι a finite index set with decidable equality (the coordinates of V=FιV = F^\iotaV=Fι), k∈Nk \in \mathbb{N}k∈N, and κ\kappaκ a finite index set with decidable equality and 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: x(i)=(xe(i,j))j∈ιx^{(i)} = (x_{e(i,j)})_{j \in \iota}x(i)=(xe(i,j)​)j∈ι​ is the iii-th block of x∈Fκx \in F^\kappax∈Fκ, and joine(v)∈Fκ\mathrm{join}_e(v) \in F^\kappajoine​(v)∈Fκ is the vector with blocks v0,…,vk−1∈Fιv_0, \dots, v_{k-1} \in F^\iotav0​,…,vk−1​∈Fι. An ℓ\ellℓ-level conditionally linear (CL) presentation on FιF^\iotaFι is the zero presentation at level 000 or, at level ℓ+1\ell + 1ℓ+1, a register subspace S⊆ιS \subseteq \iotaS⊆ι, a linear map L1L_1L1​ on VSV_SVS​ and a continuation choosing an ℓ\ellℓ-level presentation by the value of L1L_1L1​. The direct sum ⨁eP\bigoplus_e P⨁e​P of ℓ\ellℓ-level presentations P0,…,Pk−1P_0, \dots, P_{k-1}P0​,…,Pk−1​ on FιF^\iotaFι is the ℓ\ellℓ-level presentation on FκF^\kappaFκ whose stages act blockwise (famSum). The structure lemma for CL functions attaches to a presentation its stage maps Lj+1,uL_{j+1,u}Lj+1,u​, the linear map of stage j+1j+1j+1 given the prefix u=L≤j(x)u = L_{\leq j}(x)u=L≤j​(x); mapOfPrefix j u computes it from the prefix alone.

For every ℓ\ellℓ, every family PPP of ℓ\ellℓ-level presentations on FιF^\iotaFι, every j∈Nj \in \mathbb{N}j∈N and all u,y∈Fκu, y \in F^\kappau,y∈Fκ,

Lj+1,u(⨁eP)(y)  =  joine(i↦Lj+1,u(i)(Pi)(y(i))).L_{j+1,u}\Bigl(\textstyle\bigoplus_e P\Bigr)(y) \;=\; \mathrm{join}_e\Bigl(i \mapsto L_{j+1,u^{(i)}}(P_i)\bigl(y^{(i)}\bigr)\Bigr).Lj+1,u​(⨁e​P)(y)=joine​(i↦Lj+1,u(i)​(Pi​)(y(i))).

A sampler's linear query answers with this map; the identity is one of those that let the repeated sampler of the parallel repetition theorem answer its queries blockwise.

Formalization Note The statement is (famSum e ℓ P).mapOfPrefix j u y = join e fun i => (P i).mapOfPrefix j (block e i u) (block e i y), an equality in κ → F, the linear maps mapOfPrefix j u : (κ → F) →ₗ[F] (κ → F) being applied to y, quantified in Lean over ℓ : ℕ, P : Fin k → CLFun F ι ℓ, j : ℕ and u y : κ → F, with e : Fin k × ι ≃ κ explicit; no hypothesis relates j to ℓ or constrains the family. CLFun.mapOfPrefix by recursion: zero ↦ 0; cons _ L₁ _ at stage 0 ↦ L₁.toLinearMap; cons S _ next at stage j + 1 ↦ (next (proj S u)).mapOfPrefix j (proj Sᶜ u), proj S being the coordinate projection onto V_S and L₁ : RegLinear F S a linear endomorphism L of ι → F with proj S ∘ L ∘ proj S = L. F is any Semiring; ι, κ carry [DecidableEq] [Fintype] and k : ℕ is implicit (the module's variable line). 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
open MIPRE.CL.CLFun
set_option linter.unusedSectionVars false
universe u v w
variable {F : Type u} [Semiring F] {ι : Type v} [DecidableEq ι] [Fintype ι] {κ : Type w}
  [DecidableEq κ] [Fintype κ] {k : ℕ}
variable {ℓ : ℕ}
variable (e : Fin k × ι ≃ κ)
Formal statement
theorem MIPRE.CL.CLFun.mapOfPrefix_famSum : ∀ (ℓ : ℕ) (P : Fin k → CLFun F ι ℓ) (j : ℕ) (u y : κ → F),
    (famSum e ℓ P).mapOfPrefix j u y = join e fun i => (P i).mapOfPrefix j (block e i u) (block e i y) := by sorry
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/CL/Repeat.lean#L279-L294; 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