Indivisible Compound Order Matching (NP-Complete and Σ₂ᵖ-Complete) and O(log n)-Event Bounds #
This module completes the computational complexity classification of compound prediction market order matching from [PennockSami2007, §26.3.1, pp. 659–661]:
- Example 26.4 ([PennockSami2007, p. 660]): concrete 2-event indivisible matching witness
(
exampleTwoEventOrders,exampleTwoEventOrders_mem_IndivisibleOrderMatching). - Theorem 26.7(i) ([PennockSami2007, p. 661]): indivisible compound order matching restricted
to
O(log n)base events (2 ^ |E| ≤ C * (n + 1) ^ con the generalencOrderListencoding) is nativelyNP-complete for every nontrivial parameter pair2 ≤ C * 2 ^ c(LogBoundedIndivisibleOrderMatching_npComplete), proved by enumerating the≤ C * (n + 1) ^ cdistinct-variable truth assignments for membership and reducingSubsetSumusing a single base eventX₀for hardness. - Theorem 26.7(ii) ([PennockSami2007, p. 661]): general indivisible compound order matching with
unlimited base events is natively
Σ₂ᵖ-complete (IndivisibleOrderMatching_sigmaPComplete_two, inSigmaP 2 encOrderList). Membership checks integer-scaled auctioneer surplus over the existential acceptance mask and universal variable assignment; hardness reduces an arbitraryΣ₂ᵖlanguage directly via the Cook–Levin CNF tableau of the negated verifier and a base-3 unconditional order-book gadget forcing unique acceptance of the checker, master, and one literal order per existential certificate bit. - Theorem 26.6(i) reduction and
NP ∩ coNPmembership ([PennockSami2007, pp. 660–661]): divisible compound order matching withO(log n)base events (LogBoundedDivisibleOrderMatching) reduces unconditionally in polynomial time toLPFeasibility(polyTimeReducible_LogBoundedDivisibleOrderMatching_LPFeasibility), placing it unconditionally inNP ∩ coNP(LogBoundedDivisibleOrderMatching_mem_NP_inter_coNP). Because polynomial-time LP solving (LPFeasibility ∈ P) is not yet formalized in this library (open under#7789), the consequentP-membership (LogBoundedDivisibleOrderMatching_mem_P_of_LPFeasibility_mem_P) is provided as a named conditional step rather than an unconditional headline.
Main definitions #
Cslib.GameTheory.PredictionMarket.IndivisibleOrderMatching: indivisible compound order matching decision problem [PennockSami2007, Definition 26.3, p. 659].Cslib.GameTheory.PredictionMarket.distinctOrderVars: the deduplicated list of base events occurring in an order book.Cslib.GameTheory.PredictionMarket.LogBoundedEvents,Cslib.GameTheory.PredictionMarket.LogBoundedIndivisibleOrderMatching,Cslib.GameTheory.PredictionMarket.LogBoundedDivisibleOrderMatching: theO(log n)base-event restrictions (2 ^ |E| ≤ C * (|encOrderList O| + 1) ^ c) on the general order-list encoding.Cslib.GameTheory.PredictionMarket.exampleTwoEventOrders: the two-order, two-event book of [PennockSami2007, Example 26.4, p. 660].
Main results #
Cslib.GameTheory.PredictionMarket.exampleTwoEventOrders_mem_IndivisibleOrderMatching,Cslib.GameTheory.PredictionMarket.exampleTwoEventOrders_mem_LogBoundedIndivisibleOrderMatching: [PennockSami2007, Example 26.4, p. 660].polyTimeReducible_LogBoundedDivisibleOrderMatching_LPFeasibility,LogBoundedDivisibleOrderMatching_mem_NP_inter_coNP,LogBoundedDivisibleOrderMatching_mem_P_of_LPFeasibility_mem_P: polynomial-time LP reduction, unconditionalNP ∩ coNPmembership, and conditionalPstep for [PennockSami2007, Theorem 26.6(i), pp. 660–661].LogBoundedIndivisibleOrderMatching_mem_NP,polyTimeReducible_SubsetSum_LogBoundedIndivisibleOrderMatching,LogBoundedIndivisibleOrderMatching_npHard,LogBoundedIndivisibleOrderMatching_npComplete: nativeNP-completeness forO(log n)base events [PennockSami2007, Theorem 26.7(i), p. 661].Cslib.GameTheory.PredictionMarket.IndivisibleOrderMatching_mem_SigmaP_two,Cslib.GameTheory.PredictionMarket.IndivisibleOrderMatching_sigmaPHard_two,Cslib.GameTheory.PredictionMarket.IndivisibleOrderMatching_sigmaPComplete_two: nativeΣ₂ᵖ-completeness for unlimited base events [PennockSami2007, Theorem 26.7(ii), p. 661].
References #
Decision problems, distinct base events, and O(log n) restriction #
Decision problem Indivisible Compound Order Matching
[PennockSami2007, Definition 26.3 & Theorem 26.7, pp. 659, 661]: lists of compound orders admitting
an indivisible match (α ∈ {0, 1}^m \ {0} with nonnegative auctioneer surplus in every state).
The deduplicated list of distinct base events occurring across all event and conditioning
formulas of O, ordered by first occurrence.
Polynomial-state-space (O(log n) base-event) restriction on the general encoding
encOrderList: the |E| = (distinctOrderVars O).length distinct base events yield at most
C * (|encOrderList O| + 1) ^ c truth-value states [PennockSami2007, §26.3.1.3, p. 660].
Indivisible compound order matching restricted to O(log n) base events on the general
encOrderList encoding [PennockSami2007, Theorem 26.7(i), p. 661].
Divisible compound order matching restricted to O(log n) base events on the general
encOrderList encoding [PennockSami2007, Theorem 26.6(i), pp. 660–661].
Example 26.4 ([PennockSami2007, p. 660]) #
The concrete 2-event, 2-order book of [PennockSami2007, Example 26.4, p. 660]:
buy 1 unit of S_{X₀ ∧ X₁} at 0.4 = 2/5, and sell 1 unit of S_{X₀} at 0.3 = 3/10.
Example 26.4 ([PennockSami2007, p. 660]): the two orders match indivisibly (α = (1, 1)),
yielding nonnegative auctioneer surplus ϒ_auc = (0.1, 1.1, 0.1, 0.1) across all 4 states.
Example 26.4 also lies in LogBoundedIndivisibleOrderMatching 1 1 (|E| = 2, 2 ^ 2 = 4).
Shared integer-scaled auctioneer payoff and polynomial-time helpers #
Theorem 26.6(i): O(log n)-event divisible matching reduces to LPFeasibility #
Polynomial-time reduction from O(log n)-event divisible matching to LPFeasibility
[PennockSami2007, Theorem 26.6(i) proof, pp. 660–661]: for every fixed C, c : ℕ,
LogBoundedDivisibleOrderMatching C c reduces in polynomial time to rational LP feasibility.
Unconditional NP ∩ coNP membership for O(log n)-event divisible matching
(step toward [PennockSami2007, Theorem 26.6(i), pp. 660–661]): follows immediately from
polyTimeReducible_LogBoundedDivisibleOrderMatching_LPFeasibility and
LPFeasibility.mem_NP_inter_coNP.
Conditional P-membership step (not an unconditional proof of [PennockSami2007, Theorem
26.6(i), pp. 660–661], which remains open under #7789 until LPFeasibility ∈ P is formalized):
assuming LPFeasibility ∈ P LPFeasibility.encSystem, divisible matching with O(log n) base events
belongs to P encOrderList.
Theorem 26.7(i): O(log n)-event indivisible matching is NP-complete #
O(log n)-event indivisible matching belongs to NP [PennockSami2007, Theorem 26.7(i),
p. 661]: an acceptance bitmask of length |encOrderList O| is verified in polynomial time across
all 2 ^ |E| ≤ C * (|encOrderList O| + 1) ^ c states.
Polynomial-time many-one reduction SubsetSum ≤ₚ LogBoundedIndivisibleOrderMatching C c
using a single base event X₀, valid for every nontrivial bound 2 ≤ C * 2 ^ c
[PennockSami2007, Theorem 26.7(i), p. 661].
O(log n)-event indivisible matching is NP-hard for every 2 ≤ C * 2 ^ c
[PennockSami2007, Theorem 26.7(i), p. 661].
Theorem 26.7(i) ([PennockSami2007, p. 661]): indivisible compound order matching with
O(log n) base events (2 ^ |E| ≤ C * (|encOrderList O| + 1) ^ c for any 2 ≤ C * 2 ^ c, e.g.
C = 1, c ≥ 1 or constant C = 2, c = 0) is NP-complete.
Theorem 26.7(ii): general indivisible matching is Σ₂ᵖ-complete #
General indivisible compound order matching belongs to Σ₂ᵖ
[PennockSami2007, Theorem 26.7(ii), p. 661].
Base-3 Cook–Levin reduction for Σ₂ᵖ-hardness (Theorem 26.7(ii)) #
General indivisible compound order matching is Σ₂ᵖ-hard
[PennockSami2007, Theorem 26.7(ii), p. 661]: every language A ∈ SigmaP 2 enc reduces to
IndivisibleOrderMatching in polynomial time via the Cook–Levin CNF tableau of the negated
verifier and the base-3 order-book gadget sigmaTwoOrders.
Theorem 26.7(ii) ([PennockSami2007, p. 661]): the indivisible order-matching problem for
compound conditional securities with unlimited base events is Σ₂ᵖ-complete.