The factor spaces of a direct sum of CL presentations, read off a prefix, are blockwise
ProvedMIPRE.CL.CLFun.factorOfPrefix_famSumLet be a semiring, a finite index set with decidable equality (the coordinates of ), , and a finite index set with decidable equality and a bijection , so that : is the -th block of , and is the vector with blocks . An -level conditionally linear (CL) presentation on is the zero presentation at level or, at level , a register subspace , a linear map on and a continuation choosing an -level presentation by the value of . The direct sum of -level presentations on is the -level presentation on whose stages act blockwise (famSum). The structure lemma for CL functions attaches to a presentation its factor spaces , the register subspace of stage , determined by the prefix ; factorOfPrefix j u computes it from the prefix alone.
For every level , every family of -level presentations on , every stage and every prefix ,
A sampler's factor query answers with this space; 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).factorOfPrefix j u = blockSet e fun i => (P i).factorOfPrefix j (block e i u), an equality of Finset κ, quantified in Lean over ℓ : ℕ, P : Fin k → CLFun F ι ℓ, j : ℕ and u : κ → F, with e : Fin k × ι ≃ κ explicit; no hypothesis relates j to ℓ or constrains the family. CLFun.factorOfPrefix is defined by recursion: zero ↦ ∅; cons S _ _ at stage 0 ↦ S; cons S _ next at stage j + 1 with prefix u ↦ (next (proj S u)).factorOfPrefix j (proj Sᶜ u), proj S being the coordinate projection onto V_S; blockSet e T :=Finset.univ.filter fun p => (e.symm p).2 ∈ T (e.symm p).1. F is any Semiring; ι, κ carry [DecidableEq] [Fintype] and k : ℕ is implicit (the module's variable line). Blueprint lem:cl-famsum.
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 × ι ≃ κ)theorem MIPRE.CL.CLFun.factorOfPrefix_famSum : ∀ (ℓ : ℕ) (P : Fin k → CLFun F ι ℓ) (j : ℕ) (u : κ → F),
(famSum e ℓ P).factorOfPrefix j u = blockSet e fun i => (P i).factorOfPrefix j (block e i u) := by sorry