The stage maps of a direct sum of CL presentations, read off a prefix, are blockwise
ProvedMIPRE.CL.CLFun.mapOfPrefix_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 stage maps , the linear map of stage given the prefix ; mapOfPrefix j u computes it from the prefix alone.
For every , every family of -level presentations on , every and all ,
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.
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.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