Documentation

CslibFrontier.GameTheory.PredictionMarket.IndivisibleMatching

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]:

Main definitions #

Main results #

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.

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.