Lemma bitsVal_lt of the MIP* = RE formalization
ProvedMIPRE.SAT.bitsVal_ltA statement of the module MIPRE.Foundations.SAT.FmlLib of the MIP* = RE formalization (commit 70cbf1c of vidick/MIPRE-formalization). Formulas on bit vectors. The vocabulary in which the describer of the succinct Cook–Levin theorem is written (planning/succinct-cook-levin.md, S3): a field is a list of formulas read as a binary number, least significant bit first (Fml.val); the fields of an index are slices of the input bits (Fml.field); and the tests on fields are conjunctions and disjunctions (andList, orList), equality with a constant or another field (eqConst, eqFields), comparison (ltConst, ltFields), addition of a constant with its carry (addBits, addConstRel), subtraction of a constant by the…
Formal statement. In Lean, with the scope shown:
open MIPRE
open MIPRE.SAT
open MIPRE.Cost
theorem MIPRE.SAT.bitsVal_lt (l : BitStr) : bitsVal l < 2 ^ l.length
Formalization Note MIPRE.SAT.bitsVal_lt is declared in MIPRE/Foundations/SAT/FmlLib.lean, lines 34–37. 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.Polynomial.Eval.Defs import Mathlib.Data.List.Basic import Mathlib.Data.Nat.Bits import Mathlib.Data.Nat.Notation import Mathlib.Data.Nat.Size import Mathlib.Tactic.Linarith import Mathlib.Tactic.Ring 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_Cost_PolyTime 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_Binary import Definitions.Def_MIPRE_Foundations_SAT_Formula import Definitions.Def_MIPRE_Foundations_SAT_FmlLib open MIPRE open MIPRE.SAT open MIPRE.Cost
theorem MIPRE.SAT.bitsVal_lt (l : BitStr) : bitsVal l < 2 ^ l.length := by sorry