BundleMVL-2 NP checker, step 3: checking for a certified set is polynomial-time
OpenMultiPurchase.Hardness.rev_check_polytimemulti-purchasenp-completenesspolynomial-time
With the notation of Definitions.Def_MultiPurchase_Hardness_Checker, there is a function on checker inputs that is computable in polynomial time by a Cook Turing machine, maps the empty word to the empty word, and satisfies, for every with and ,
Here, reading the rationals from and , is the inequality
i.e. (eq. (4), p. 17) for the recommendation set , since the denominator of is positive.
This is the arithmetic core of the NP verifier for the BundleMVL-2 decision problem: given the guessed set , the expected revenue is a ratio of sums of products of the input rationals, and comparing it with takes polynomially many additions and multiplications of binary numbers whose lengths stay polynomial in the input length.
Preamble
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
Formal statement
namespace MultiPurchase.Hardness
open CookPvsNP ProjSchedTW.Complexity
theorem rev_check_polytime :
∃ g : List (Option (BSym ⊕ Bool)) → List (Option (BSym ⊕ Bool)),
PolyTimeComputable g ∧ g [] = [] ∧
∀ c d, ShapeOK c d → CanonOK c → (g (chkWord c d) ≠ [] ↔ RevOK c d) := by sorry
end MultiPurchase.Hardness
Source
Tulabandhula, Sinha, Karra & Patidar, Multi-Purchase Behavior: Modeling, Estimation and Optimization, arXiv:2006.08055v2, p. 17, Theorem 1 (membership half: the decision version of (5) is in NP), eq. (4); polynomial-time computability as in S. Cook, The P versus NP problem (Clay Mathematics Institute), §1 and Definition 3