The canonical index of the answer variable of j is j
ProvedMIPRE.TM.CookLevin.Desc.idxOf_ansA statement of the module MIPRE.TM.CookLevin.Index of the MIP* = RE formalization (commit 70cbf1c of vidick/MIPRE-formalization). The canonical index of a tableau variable. idxOf e G T v is the index of the variable v in the described 3SAT formula: the answer index j < 4T for a cell of one of the two free tapes inside the answer block — tape 5 for j < 2T and tape 6 otherwise, position r / 2 + 3 for r = j mod 2T, the value 1 for r odd and the blank for r even — and the structured index (encodeVar) for every other variable. So the first 4T variables of the formula are exactly the two answer blocks, which is what item 1 of thm:succinct-sat needs, and decodeVar_fieldsOf_idxOf says that…
The canonical index of the answer variable of j is j.
Formal statement. In Lean, with the scope shown:
open MIPRE
open MIPRE.TM
open MIPRE.TM.CookLevin
open MIPRE.TM.CookLevin.Desc
open MIPRE.TM.Interp MIPRE.SAT MIPRE.Cost
variable (e G T : ℕ)
theorem MIPRE.TM.CookLevin.Desc.idxOf_ans (hT : T ≤ Sof e) {j : ℕ} (hj : j < 4 * T) {jt : Fin 7} {p : Pos (Sof e)}
(hjt : (jt : ℕ) = tapeIdx T j) (hp : (p : ℕ) = rOf T j / 2 + 3) :
idxOf e G T (.cell 0 (.inl jt) p (valOf T j)) = j
Formalization Note MIPRE.TM.CookLevin.Desc.idxOf_ans is declared in MIPRE/TM/CookLevin/Index.lean, lines 237–272. The binders, hypotheses and conclusion are exactly those of the Lean statement above; the uploaded statement elaborates to the same type as the declaration in the repository. The definitions it mentions are those of the published definition bundles of the module's import closure.
import Mathlib.Algebra.BigOperators.Group.Finset.Basic import Mathlib.Algebra.BigOperators.Ring.Finset import Mathlib.Algebra.Order.BigOperators.Group.Finset import Mathlib.Algebra.Order.Group.Abs import Mathlib.Algebra.Order.Group.Int import Mathlib.Algebra.Polynomial.Eval.Defs import Mathlib.Analysis.CStarAlgebra.CStarMatrix import Mathlib.Analysis.CStarAlgebra.Classes import Mathlib.Analysis.Matrix.Order import Mathlib.Computability.Language import Mathlib.Computability.Primrec.List import Mathlib.Data.ENat.Lattice import Mathlib.Data.Finset.Max import Mathlib.Data.Fintype.Basic import Mathlib.Data.Fintype.BigOperators import Mathlib.Data.Fintype.Option import Mathlib.Data.Fintype.Pi import Mathlib.Data.Fintype.Prod import Mathlib.Data.Fintype.Sigma import Mathlib.Data.Fintype.Sum import Mathlib.Data.Int.Interval import Mathlib.Data.List.Basic import Mathlib.Data.Nat.Bits import Mathlib.Data.Nat.Bitwise import Mathlib.Data.Nat.Notation import Mathlib.Data.Nat.Size import Mathlib.Data.Real.Basic import Mathlib.Data.Set.Basic import Mathlib.Data.Sign.Defs 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.Logic.Relation import Mathlib.Tactic import Mathlib.Tactic.DeriveFintype import Mathlib.Tactic.Linarith import Mathlib.Tactic.Ring import Definitions.Def_MIPRE_Foundations_Games import Definitions.Def_MIPRE_Foundations_CL_Register import Definitions.Def_MIPRE_Foundations_CL_Basic import Definitions.Def_MIPRE_Foundations_Cost_Basic_B import Definitions.Def_MIPRE_Foundations_Cost_Encoding_B import Definitions.Def_MIPRE_Foundations_SAT_Circuit import Definitions.Def_MIPRE_Foundations_SAT_Cnf 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_Verifier import Definitions.Def_MIPRE_Foundations_SAT_Succinct import Definitions.Def_MIPRE_Foundations_Cost_Closure import Definitions.Def_MIPRE_Foundations_Cost_Loops_B import Definitions.Def_MIPRE_Foundations_Cost_Fold import Definitions.Def_MIPRE_Foundations_Cost_Unary import Definitions.Def_MIPRE_Foundations_Cost_Numeric_B import Definitions.Def_MIPRE_Foundations_Cost_Codable_B import Definitions.Def_MIPRE_Foundations_Cost_Binary import Definitions.Def_MIPRE_Foundations_SAT_Formula import Definitions.Def_MIPRE_Foundations_SAT_FmlLib import Definitions.Def_MIPRE_Foundations_Cost_Machine_B import Definitions.Def_MIPRE_Foundations_Cost_MachineData_B import Definitions.Def_MIPRE_Foundations_Cost_MachineBound_B import Definitions.Def_MIPRE_Cslib_Foundations_Data_RelatesInSteps import Definitions.Def_MIPRE_Cslib_Computability_Machines_Turing_MultiTape_Deterministic import Definitions.Def_MIPRE_TM_MultiInput_Deterministic import Definitions.Def_MIPRE_TM_CookLevin_Local import Definitions.Def_MIPRE_Foundations_SAT_Tseitin import Definitions.Def_MIPRE_TM_CookLevin_Tableau import Definitions.Def_MIPRE_TM_Interp_Instr import Definitions.Def_MIPRE_TM_Interp_Machine import Definitions.Def_MIPRE_TM_CookLevin_Layout import Definitions.Def_MIPRE_TM_CookLevin_FieldFml import Definitions.Def_MIPRE_TM_CookLevin_Kinds import Definitions.Def_MIPRE_TM_CookLevin_Families import Definitions.Def_MIPRE_TM_CookLevin_Window import Definitions.Def_MIPRE_TM_CookLevin_FamilyFml import Definitions.Def_MIPRE_TM_Interp_Tape import Definitions.Def_MIPRE_TM_Interp_Reach import Definitions.Def_MIPRE_TM_Interp_Routines import Definitions.Def_MIPRE_TM_Interp_Repr import Definitions.Def_MIPRE_TM_Interp_CopyTree import Definitions.Def_MIPRE_TM_Interp_GetEnv import Definitions.Def_MIPRE_TM_Interp_Desc import Definitions.Def_MIPRE_TM_Interp_Step import Definitions.Def_MIPRE_TM_Interp_InputRoutines import Definitions.Def_MIPRE_TM_Interp_Run import Definitions.Def_MIPRE_Foundations_SAT_Table import Definitions.Def_MIPRE_TM_CookLevin_Params import Definitions.Def_MIPRE_TM_CookLevin_AnsEnd import Definitions.Def_MIPRE_TM_CookLevin_Index open MIPRE open MIPRE.TM open MIPRE.TM.CookLevin open MIPRE.TM.CookLevin.Desc open MIPRE.TM.Interp MIPRE.SAT MIPRE.Cost variable (e G T : ℕ)
theorem MIPRE.TM.CookLevin.Desc.idxOf_ans (hT : T ≤ Sof e) {j : ℕ} (hj : j < 4 * T) {jt : Fin 7} {p : Pos (Sof e)}
(hjt : (jt : ℕ) = tapeIdx T j) (hp : (p : ℕ) = rOf T j / 2 + 3) :
idxOf e G T (.cell 0 (.inl jt) p (valOf T j)) = j := by sorry