Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions of PresentationQueries: The queries of the three-level presentation of the seeded test What a sampler program must compute for `Regs.pres`…

Definition
MIPRE_Background_LIDT_PresentationQueries

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

low-degree-testmip-remipre-formalizationpolynomial-time

The definitions of the module MIPRE.Background.LIDT.PresentationQueries of the MIP* = RE formalization (commit 70cbf1c of vidick/MIPRE-formalization). The queries of the three-level presentation of the seeded test. What a sampler program must compute for Regs.pres (MIPRE/Background/LIDT/Presentation), level by level: its marginals (eval_truncate_one, eval_truncate_two, eval_pres), its stage maps read off a prefix (mapOfPrefix_zero, mapOfPrefix_one, mapOfPrefix_two) and its factor spaces (factorOfPrefix_zero, factorOfPrefix_one, factorOfPrefix_two); from the fourth level on there is nothing (mapOfPrefix_three_le, factorOfPrefix_three_le). The seed a stage map reads is the prefix's seed coordinate, and the diagonal…

Definitions (1): MIPRE.LIDT.CL.Regs.ptMap (The linear map of the point register applied at the third stage.).

Formalization Note The bundle is the module MIPRE.Background.LIDT.PresentationQueries (MIPRE/Background/LIDT/PresentationQueries.lean) with every declaration not listed removed, imports rewritten to the bundles of the module's import closure; the declarations keep their names, statements and bodies; the source module is split over 19 imported bundle(s).

Definition code
/-
Copyright (c) 2026 Thomas Vidick. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Vidick
-/
/- Generated for Prove2Me from vidick/MIPRE-formalization@70cbf1c, MIPRE/Background/LIDT/PresentationQueries.lean (definition bundle: declarations the uploaded statements rest on);
   produced mechanically by prove2me/tools/gen.py, never edited by hand. -/
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Field.ZMod
import Mathlib.Algebra.Polynomial.Eval.Defs
import Mathlib.Analysis.CStarAlgebra.CStarMatrix
import Mathlib.Analysis.CStarAlgebra.Classes
import Mathlib.Analysis.Matrix.Order
import Mathlib.Data.ENat.Lattice
import Mathlib.Data.Fin.Tuple.Basic
import Mathlib.Data.Finset.Image
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.List.Basic
import Mathlib.Data.Nat.Bits
import Mathlib.Data.Nat.Notation
import Mathlib.Data.Nat.Size
import Mathlib.Data.Real.Basic
import Mathlib.Data.ZMod.Basic
import Mathlib.LinearAlgebra.Basis.Defs
import Mathlib.LinearAlgebra.BilinearForm.Orthogonal
import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas
import Mathlib.LinearAlgebra.Matrix.Kronecker
import Mathlib.LinearAlgebra.Pi
import Mathlib.Tactic.DeriveFintype
import Definitions.Def_MIPRE_Foundations_Games
import Definitions.Def_MIPRE_Foundations_Distances
import Definitions.Def_MIPRE_Background_LIDT_Game
import Definitions.Def_MIPRE_Foundations_CL_Register
import Definitions.Def_MIPRE_Foundations_CL_Canonical
import Definitions.Def_MIPRE_Background_LIDT_CLGame
import Definitions.Def_MIPRE_Foundations_CL_Basic
import Definitions.Def_MIPRE_Background_LIDT_Presentation
import Definitions.Def_MIPRE_Foundations_Cost_Basic_B
import Definitions.Def_MIPRE_Foundations_Cost_Encoding_B
import Definitions.Def_MIPRE_Foundations_Cost_PolyTime
import Definitions.Def_MIPRE_Foundations_CL_Closure
import Definitions.Def_MIPRE_Foundations_CL_Closure_B
import Definitions.Def_MIPRE_Foundations_CL_Sampler
import Definitions.Def_MIPRE_Foundations_CL_Embedding
import Definitions.Def_MIPRE_Foundations_CL_Product
import Definitions.Def_MIPRE_Foundations_CL_Downsize
import Definitions.Def_MIPRE_Foundations_CL_TypedSampler
import Definitions.Def_MIPRE_Foundations_CL_ProductSampler

/-!
# The queries of the three-level presentation of the seeded test

What a sampler program must compute for `Regs.pres` (`MIPRE/Background/LIDT/Presentation`), level
by level: its marginals (`eval_truncate_one`, `eval_truncate_two`, `eval_pres`), its stage maps
read off a prefix (`mapOfPrefix_zero`, `mapOfPrefix_one`, `mapOfPrefix_two`) and its factor
spaces (`factorOfPrefix_zero`, `factorOfPrefix_one`, `factorOfPrefix_two`); from the fourth level
on there is nothing (`mapOfPrefix_three_le`, `factorOfPrefix_three_le`).

The seed a stage map reads is the prefix's seed coordinate, and the diagonal line's direction is
the prefix's direction register, already cut down by the selector.
-/

noncomputable section

namespace MIPRE.LIDT.CL.Regs

open Finset MIPRE.CL MIPRE.CL.CLFun

variable {ι : Type*} [DecidableEq ι] [Fintype ι] {n : ℕ} (R : Regs ι n)
variable {F : Type*} [Field F] [Fintype F] [DecidableEq F] [NeZero n] {hn : n ∣ Fintype.card F}
  (S : Sel F n hn)

/-- The linear map of the point register applied at the third stage. -/
def ptMap : Ty → F → Point F n → (Point F n →ₗ[F] Point F n)
  | .point, _, _ => LinearMap.id
  | .aline, s, _ => MIPRE.CL.canonLin (Submodule.span F {Pi.single (S.χ s) 1})
  | .dline, _, v => MIPRE.CL.canonLin (Submodule.span F {v})

/-! ## The marginals -/

/-! ## The stage maps and factor spaces, read off a prefix -/

end MIPRE.LIDT.CL.Regs

end
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Background/LIDT/PresentationQueries.lean

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