Exactness of a direct sum of CL presentations is blockwise
ProvedMIPRE.CL.CLFun.exactlyOn_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). For , . A presentation is exact on (ExactlyOn) when, at level , , and at level , and every continuation is exact on : the register subspaces along every run partition (item (2) of lem:cl-kth).
For every level , every family of -level presentations on and every family of register subspaces of ,
Samplers are required to be exact, so this is what makes the repeated sampler of the parallel repetition theorem, the direct sum of copies of the input sampler's CL function, a sampler.
Formalization Note CLFun.ExactlyOn is defined by recursion on the presentation: zero is exact on T iff T = ∅; cons S L₁ next is exact on T iff S ⊆ T ∧ ∀ v, (next v).ExactlyOn (T \ S). CLFun.famSum e ℓ P is zero at level 0 and, at level ℓ + 1, cons (blockSet e fun i => (P i).hdS) (RegLinear.blockSum e fun i => (P i).hdL) fun v => famSum e ℓ fun i => (P i).tl (block e i v). Quantified in Lean over ℓ : ℕ, P : Fin k → CLFun F ι ℓ and T : Fin k → Finset ι, with e : Fin k × ι ≃ κ explicit; 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.exactlyOn_famSum : ∀ (ℓ : ℕ) (P : Fin k → CLFun F ι ℓ) (T : Fin k → Finset ι),
(∀ i, (P i).ExactlyOn (T i)) → (famSum e ℓ P).ExactlyOn (blockSet e T) := by sorry