Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The tabulated acceptance table of the verifier a string denotes, read back on the doubled game

Proved
MIPRE.Halting.acc_mem_iff

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

mip-remipre-formalizationnonlocal-gamestabulationverifiers

Fix a gap-preserving compression instance GGG and a universal machine UUU. A bit string xxx denotes the verifier Vx=Vof(G,U,x)\mathcal V_x = \mathrm{Vof}(G, U, x)Vx​=Vof(G,U,x): the compressed sampler SλxcomprS^{\mathrm{compr}}_{\lambda_x}Sλx​compr​ at the parameter λx\lambda_xλx​ the string carries, and the string's decider datum Dx\mathcal D_xDx​, run by UUU inside the question-length check, which together form its decider DVx\mathcal D_{\mathcal V_x}DVx​​. At level nnn its questions are F2s(n)\mathbb F_2^{s(n)}F2s(n)​, s(n)s(n)s(n) the sampler's dimension, and its answers the strings of length at most T=ansBound(x,n)=boundG(n+λx)T = \mathrm{ansBound}(x, n) = \mathrm{bound}_G(n + \lambda_x)T=ansBound(x,n)=boundG​(n+λx​). It is nnn-bounded (IsBounded n) when for all m≥2m \ge 2m≥2, s(m)≤mns(m) \le m^ns(m)≤mn and its sampler and decider run within cost mn(∣d∣+1)nm^n(|d|+1)^nmn(∣d∣+1)n on every input (m,d)(m, d)(m,d), and its description has size at most nnn.

tab(x,n)\mathrm{tab}(x, n)tab(x,n) is a game description (GameData) of this game with doubled questions: question indices 0,…,nX0, \dots, n_X0,…,nX​, nX+1=2s(n)+1n_X + 1 = 2^{s(n)+1}nX​+1=2s(n)+1, answer indices 0,…,nA0, \dots, n_A0,…,nA​, one per string of length at most TTT, and an acceptance list acc\mathrm{acc}acc of tuples of naturals, with relabelings eX:Fin(nX+1)≃Bool×F2s(n)e_X : \mathrm{Fin}(n_X + 1) \simeq \mathrm{Bool} \times \mathbb F_2^{s(n)}eX​:Fin(nX​+1)≃Bool×F2s(n)​ (a tag and a point) and eA:Fin(nA+1)≃{0,1}≤Te_A : \mathrm{Fin}(n_A + 1) \simeq \{0,1\}^{\le T}eA​:Fin(nA​+1)≃{0,1}≤T.

Assume Vx\mathcal V_xVx​ is nnn-bounded. For all question indices i,ji, ji,j and answer indices k,lk, lk,l,

(i,j,k,l)∈acc(tab(x,n))  ⟺  tag(eXi)=false∧tag(eXj)=true∧DVx accepts (n, bits(pt(eXi)), bits(pt(eXj)), eAk, eAl),(i, j, k, l) \in \mathrm{acc}(\mathrm{tab}(x, n)) \iff \mathrm{tag}(e_X i) = \mathsf{false} \wedge \mathrm{tag}(e_X j) = \mathsf{true} \wedge \mathcal D_{\mathcal V_x}\ \text{accepts}\ \bigl(n,\ \mathrm{bits}(\mathrm{pt}(e_X i)),\ \mathrm{bits}(\mathrm{pt}(e_X j)),\ e_A k,\ e_A l\bigr),(i,j,k,l)∈acc(tab(x,n))⟺tag(eX​i)=false∧tag(eX​j)=true∧DVx​​ accepts (n, bits(pt(eX​i)), bits(pt(eX​j)), eA​k, eA​l),

where a decider accepts an input when it halts on its encoding with output 111 (Decider.Accepts), and bits\mathrm{bits}bits lists the coordinates of a vector.

Acceptance clause of the tabulation obligation O2 of the halting reduction; with mu_clause it yields tab_match.

Formalization Note. The statement is MIPRE.Halting.acc_mem_iff. tab G U x n is tabOf on the encoded sampler and wrapped-decider programs of Vof G U x, the tabulated dimension, the cut ansBound G x n and G.deg; acc is the list accListW; i j k l are cast to ℕ; (eXof … i).1/.2 are the tag and point and (eAof … k).1 the string. The only hypothesis is (Vof G U x).IsBounded n; per the module docstring the match could not hold of every string, acceptance being Σ1\Sigma_1Σ1​.

Preamble
import Mathlib.Algebra.BigOperators.Fin
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Polynomial.Eval.Defs
import Mathlib.Algebra.Polynomial.Eval.Degree
import Mathlib.Analysis.CStarAlgebra.CStarMatrix
import Mathlib.Analysis.CStarAlgebra.Classes
import Mathlib.Analysis.Matrix.Order
import Mathlib.Computability.Halting
import Mathlib.Computability.Partrec
import Mathlib.Computability.PartrecBasis
import Mathlib.Computability.PartrecCode
import Mathlib.Computability.Primrec.List
import Mathlib.Computability.RE
import Mathlib.Computability.TuringMachine.Config
import Mathlib.Data.ENat.Lattice
import Mathlib.Data.Fintype.BigOperators
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.List.Basic
import Mathlib.Data.List.NodupEquivFin
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.Matrix.Kronecker
import Mathlib.LinearAlgebra.Pi
import Mathlib.Logic.Denumerable
import Mathlib.Logic.Function.Iterate
import Mathlib.Tactic.Linarith
import Mathlib.Tactic.Ring
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_Cost_Basic
import Definitions.Def_MIPRE_Foundations_Cost_Basic_B
import Definitions.Def_MIPRE_Foundations_Cost_Encoding
import Definitions.Def_MIPRE_Foundations_Cost_Encoding_B
import Definitions.Def_MIPRE_Foundations_Cost_PolyTime
import Definitions.Def_MIPRE_Foundations_CL_Sampler
import Definitions.Def_MIPRE_Foundations_Games
import Definitions.Def_MIPRE_Foundations_GameTransport
import Definitions.Def_MIPRE_HaltingGameValue
import Definitions.Def_MIPRE_Foundations_GameDescription
import Definitions.Def_MIPRE_Foundations_Cost_Closure
import Definitions.Def_MIPRE_Foundations_Cost_Toolkit
import Definitions.Def_MIPRE_Foundations_Cost_Toolkit_B
import Definitions.Def_MIPRE_Foundations_Cost_Machine
import Definitions.Def_MIPRE_Foundations_Cost_Machine_B
import Definitions.Def_MIPRE_Foundations_Cost_Loops
import Definitions.Def_MIPRE_Foundations_Cost_Loops_B
import Definitions.Def_MIPRE_Foundations_Cost_Codable
import Definitions.Def_MIPRE_Foundations_Cost_Codable_B
import Definitions.Def_MIPRE_Foundations_Cost_MachineData
import Definitions.Def_MIPRE_Foundations_Cost_MachineData_B
import Definitions.Def_MIPRE_Foundations_Cost_Interpreter
import Definitions.Def_MIPRE_Foundations_Cost_Interpreter_B
import Definitions.Def_MIPRE_Foundations_Cost_Unary
import Definitions.Def_MIPRE_Foundations_Cost_MachineBound
import Definitions.Def_MIPRE_Foundations_Cost_MachineBound_B
import Definitions.Def_MIPRE_Foundations_Cost_Universal
import Definitions.Def_MIPRE_Foundations_Cost_Universal_B
import Definitions.Def_MIPRE_Foundations_Cost_Kleene
import Definitions.Def_MIPRE_Foundations_Cost_Kleene_B
import Definitions.Def_MIPRE_Foundations_Cost_FromPartrec
import Definitions.Def_MIPRE_Foundations_Cost_FromPartrec_B
import Definitions.Def_MIPRE_Foundations_Cost_Partrec
import Definitions.Def_MIPRE_Foundations_Cost_Partrec_B
import Definitions.Def_MIPRE_Foundations_Cost_Semidecide
import Definitions.Def_MIPRE_Foundations_GameDouble
import Definitions.Def_MIPRE_Foundations_Verifier
import Definitions.Def_MIPRE_Foundations_GapCompression
import Definitions.Def_MIPRE_Foundations_VerifierValue
import Definitions.Def_MIPRE_Foundations_Halting_Freeze
import Definitions.Def_MIPRE_Foundations_Halting_Classes
import Definitions.Def_MIPRE_Foundations_Halting_Descriptions
import Definitions.Def_MIPRE_Foundations_Cost_Numeric
import Definitions.Def_MIPRE_Foundations_Cost_Numeric_B
import Definitions.Def_MIPRE_Foundations_Halting_Lists
import Definitions.Def_MIPRE_Foundations_Cost_Growth
import Definitions.Def_MIPRE_Foundations_Halting_Arith
import Definitions.Def_MIPRE_Foundations_Halting_Wrapper
import Definitions.Def_MIPRE_Foundations_Halting_Enumerate
import Definitions.Def_MIPRE_Foundations_Cost_BoundedEval
import Definitions.Def_MIPRE_Foundations_Halting_Tabulate
import Definitions.Def_MIPRE_Foundations_Cost_BitQuery
import Definitions.Def_MIPRE_Foundations_Cost_Succinct
import Definitions.Def_MIPRE_Foundations_Cost_Clocked
import Definitions.Def_MIPRE_Foundations_Cost_Threshold
import Definitions.Def_MIPRE_Foundations_Compression
import Definitions.Def_MIPRE_Foundations_Halting_Instantiation

open MIPRE
open MIPRE.Halting
open MIPRE.Cost
open HaltingGameValue (GameData)
variable (G : GapCompression) (U : UniversalMachine)
Formal statement
theorem MIPRE.Halting.acc_mem_iff (x : BitStr) (n : ℕ) (hb : (Vof G U x).IsBounded n)
    (i j : Fin ((tab G U x n).nX + 1)) (k l : Fin ((tab G U x n).nA + 1)) :
    ((i : ℕ), (j : ℕ), (k : ℕ), (l : ℕ)) ∈ (tab G U x n).acc
      ↔ ((eXof G U x n i).1 = false ∧ (eXof G U x n j).1 = true ∧
          (Vof G U x).decider.Accepts n (CL.toBits (eXof G U x n i).2)
            (CL.toBits (eXof G U x n j).2) (eAof G U x n k).1 (eAof G U x n l).1) := by sorry
Source
https://github.com/vidick/MIPRE-formalization/blob/70cbf1c52e3d5e1dff1162fdf952c9a9f4bd99ed/MIPRE/Foundations/Halting/Instantiation.lean#L537-L578; internal lemma of the tabulation (obligation O2) of blueprint thm:halting, per the module docstring; no blueprint label is attached to this declaration

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