co-NP 2026-10-24
The class of decision problems whose complements belong to NP. Equivalently, negative instances admit polynomially bounded witnesses verifiable in polynomial time. A problem is co-NP-complete when it is in co-NP and every problem in co-NP has a polynomial-time reduction to it. Unsatisfiability of a propositional formula is a basic example: its complement is the NP-complete Boolean satisfiability problem.
Given a Boolean game and a query propositional formula , decide whether some pure strategy Nash equilibrium satisfies . The problem is complete for the existential second level of the polynomial hierarchy.
For membership, existentially choose a Boolean valuation and universally check every player's every unilateral deviation. The goal must remain false under all such deviations for each player whose goal is currently false. Each individual check takes polynomial time.
For hardness, start with a two-block quantified Boolean formula . Give player 1 control of and the constant true goal. Give player 2 control of and goal , and use as the query. A queried Nash equilibrium exists exactly when some choice of leaves player 2 unable to falsify by changing . This is precisely the input quantified statement, and the construction is a polynomial-time reduction.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 38 3 Solution Created 2026-10-03 Updated 2026-10-14
For decision problems, the usual meaning of “no harder” is a polynomial-time reduction: if there is a polynomial-time computable map taking each instance of to an instance of such that is a yes-instance exactly when is. A polynomial-time algorithm for would then solve in polynomial time. A problem is NP-hard if every problem in NP admits such a reduction to it.
For a zero-sum game with rational payoff matrix , the row player can calculate its value by linear programming:The minimax theorem identifies this optimum with the game value. Rational linear programming has polynomial-time algorithms, and an optimal rational value can be compared exactly with rational in polynomial time in the binary input length. Thus the decision problem belongs to P. If it were NP-hard, composing the reductions with this algorithm would put every problem in NP in P, contradicting the assumed separation. ThereforeThe finite rational encoding is part of the computational model; arbitrary real inputs without an encoding would not define the same complexity question.
For the set cover reduction to equilibrium support, first take and assume every element belongs to some subset. Suppose rows cover . Let player 1 use the uniform mixed strategy on these rows and let player 2 play column . The row player's payoff is one for every row, so any row mixture is a best response to column . If denotes the probability that a random supported row covers element , then , and player 2's payoff from column isColumn also pays one. It is therefore a best response, giving a Nash equilibrium whose row-player support of a mixed strategy contains exactly rows.
Conversely, suppose an equilibrium has row support of size , and some element is not covered by . For that column , so player 2 can earn . This is the largest possible column payoff, and it is attained exactly at columns corresponding to elements uncovered by . The column player's mixed strategy must consequently put all its probability on these columns, with none on column . Every currently supported row gives player 1 payoff zero. Choose any positive-probability column ; because , there is some row containing . Deviating to gives strictly positive expected payoff, contradicting the best response condition. Thus must be a cover, provingunder the stated union and conditions.
The printed formulation omits both conditions. For , its payoffs contain division by zero. Without the union condition its claimed implication is false: take , , and . No selection covers , but any row mixture supported on two rows, paired with pure column , is a Nash equilibrium. The row player always gets zero, and column is the column player's strictly optimal choice with payoff two. This gives an explicit counterexample to the unrestricted wording.
These restrictions do not weaken the complexity conclusion. The set cover problem remains NP-complete when every element occurs in some subset and : globally uncovered elements and the easy cases can be recognized and replaced by fixed promised yes- or no-instances. A cover by at most subsets can be padded to exactly . The constructed game has polynomial size, so deciding whether a Nash equilibrium of the specified support size exists is NP-hard. Computing a complete description of all equilibria would resolve this question and hence is at least this difficult. In addition, the equilibrium set may be infinite; a complete output must then describe families rather than list individual points. There is a finite representation by feasible pairs of supports and their associated strategy polytopes, but there are exponentially many support pairs to consider. This reduction concerns locating specified supports or describing all equilibria, rather than finding one unrestricted equilibrium.
For the intended finite representation, put . For each , form the mintermA Boolean valuation satisfies exactly when its selected subset is . Therefore the weighted formula utility representationrepresents exactly: at the Boolean valuation for , only that minterm contributes, with weight . This proves completeness and the bound of rules simultaneously. Zero-weight rules may be omitted. The bound counts rules; writing each minterm also requires symbols in Big O notation.
For the computational question, assume rule weights are rational numbers encoded in binary. This makes exact equality of sums a finite computational task. With this conventional encoding, equivalence of weighted formula utility representations is co-NP-complete.
For membership, the complement has a short witness: a Boolean valuation on the variables occurring in either rule base. Evaluate each propositional formula, sum the weights of satisfied rules, and accept the witness if the sums differ. Propositional formula evaluation takes polynomial time. Exact sums of binary rational numbers also have polynomially bounded bit lengths: the product of their denominators has bit length at most the sum of the input denominator lengths. Thus non-equivalence lies in NP, and equivalence lies in co-NP.
For hardness, take a Boolean satisfiability problem instance and constructThe first utility function is one at satisfying Boolean valuations and zero elsewhere, while the second is always zero. ConsequentlyThe unsatisfiable Boolean formula problem is co-NP-complete, as the complement of the NP-complete Boolean satisfiability problem. The construction is a polynomial-time reduction, proving hardness even with the single weight .
Two qualifications matter in the literal wording. First, unrestricted real weights have no specified finite encoding, so a standard bit-complexity classification needs the encoding assumption above. Second, the problem says only that is nonempty. If infinite is allowed while rule bases remain finite, its completeness claim is false. For , take when is infinite and when is finite. A finite rule base mentions only a finite subset of the variables. The Boolean valuations for and agree on all those variables but have different required values. No such rule base represents this . Thus the construction answers the intended finite-set question and identifies the missing hypothesis in the unrestricted statement.
The definition in this part uses a single Boolean valuation, so the relevant Nash equilibria are pure strategy equilibria of a Boolean game. Use its standard convention that the players' control sets form a set partition of the variables.
Membership follows from an existential choice of a strategy profile and a universal check of all unilateral deviations. Assign payoff one to satisfying a player's goal and zero otherwise. A strategy profile is a Nash equilibrium precisely when, for every player and every alternative Boolean valuation of that player's variables,is true: either the goal is already satisfied or no deviation can satisfy it. Thus the requested property isThe strings encoding , and have polynomial length, and evaluating the bracketed propositional formulas takes polynomial time. Invalid encodings of a player index can simply be ignored by the test. This is the existential second level of the polynomial hierarchy, .
For hardness, reduce the canonical complete problem of deciding a two-block quantified Boolean formulaMake a two-player Boolean game: player 1 controls and has goal ; player 2 controls and has goal . Set the query formula to . The construction has size linear in the input formula.
If an assignment satisfies , combine it with any assignment . Player 1 already satisfies its goal, and player 2 cannot satisfy by any unilateral deviation. Thus is a Nash equilibrium satisfying the query.
Conversely, let be a Nash equilibrium satisfying . Player 2 currently has payoff zero. If some alternative made false, that deviation would satisfy player 2's goal and increase its payoff to one. The Nash equilibrium condition therefore implies . This proves the required equivalence and the polynomial-time reduction.
Together, membership and hardness prove -completeness of existential equilibrium checking in a Boolean game. The reduction works with only two players and one constant goal.