BundleMVL-2 NP checker, step 1: the shape-and-sign filter is polynomial-time computable
ProvedMultiPurchase.Hardness.shape_filter_polytimeLet words over the alphabet be checker inputs. For an integer list and a bit list , write for the word chkWord c d: the binary code of (each integer as an optional minus sign, its binary digits least significant first without leading zeros, and a separator), the symbol , then the bits of .
Claim. The filter
is computable in polynomial time by a Cook Turing machine. Here says: ; has exactly entries; ; the numerators of the revenues are positive; the numerators of all weights , are nonnegative; and the numerator of is positive.
This is the first of three polynomial-time checks whose composition decides the checking language of the BundleMVL-2 decision problem; it recognizes the syntax of an instance code together with an -bit certificate and the sign conditions of a well-formed instance.
Formalization Note. ShapeOK and chkWord are from Definitions.Def_MultiPurchase_Hardness_Checker; the if is classical.
import Mathlib import Definitions.Def_CookPvsNP_defs import Definitions.Def_ProjSchedTW_Complexity_Encoding import Definitions.Def_MultiPurchase_Hardness_Model import Definitions.Def_MultiPurchase_Hardness_Checker
namespace MultiPurchase.Hardness
open CookPvsNP ProjSchedTW.Complexity
open Classical in
theorem shape_filter_polytime :
PolyTimeComputable (fun u : List (Option (BSym ⊕ Bool)) =>
if ∃ c d, u = chkWord c d ∧ ShapeOK c d then u else []) := by sorry
end MultiPurchase.Hardness