Documentation

CslibFrontier.GameTheory.Bimatrix.PPAD

Two-player Nash equilibrium is in PPAD #

Finding a mixed Nash equilibrium of a two-player bimatrix game with rational payoffs belongs to PPAD [Pap94b], [vS07], Chapter 3.

The encoded game type BimatrixCode (under encBimatrix), strategy-pair encoding StrategyPair (under encWitness), exact rational Nash search relation BimatrixNash, and its FNP membership are developed in CslibFrontier.GameTheory.Bimatrix.FNP.

The reduction to EndOfLine normalizes (A, B) to positive integers in [1, H], perturbs the right-hand sides of the best-response polytopes (P, Q) by powers of K_B = 2 ^ bitBound m n H, and walks completely-labelled / k₀ = 0-almost-completely-labelled basis pairs (T₁, T₂) represented by 2 * (m + n) bits (with the artificial origin (T₁⁰, T₂⁰) mapped to 0^(2(m+n))). Incident half-edges are oriented by Shapley's determinant index (ShapleyOrientation), pivoting without division via detRows and cramerRows. Every unbalanced non-origin vertex yields an unperturbed exact rational Nash equilibrium by Cramer rounding (RationalVertex), giving a polynomial-time search reduction to endOfLineRel (BimatrixNash_mem_PPAD).

Main definitions #

Main results #

References #

Section 1: Positive normalization, vertex encoding, and polytope execution #

Vertex bit-length for the PPAD graph: 2 * (rows + cols) on well-formed inputs, else 0.

Section 2: Executable pivoting, Shapley orientation, and PPAD graph #

Polynomial-time predecessor map on encoded Lemke–Howson graph nodes (-targetSign c).

Polynomial-time successor map on encoded Lemke–Howson graph nodes (+targetSign c).

Section 3: Witness extraction and PPAD membership #

Polynomial-time Nash witness extractor from any non-origin end-of-line basis pair (T₁, T₂). Produces the canonical bit-encoded pair (x, y) on well-formed games and [] otherwise.

theorem Cslib.GameTheory.BimatrixCode.length_encList_ge_mul {α : Type u_1} (enc : α ↪ List Bool) (l : List α) (K : ℕ) (hK : ∀ a ∈ l, K ≤ (enc a).length) :

Lower bound on the framed bit-length of encList enc l from an elementwise lower bound.

Every vertex solving endOfLineRel vertexLen pred succ c extracts via extractNash to a solution of BimatrixNash c.

Every solution witness of a well-formed game decodes to a Nash equilibrium of c.toGame.

Two-player rational Nash equilibrium search-reduces in polynomial time to the canonical PPAD problem endOfLineRel vertexLen pred succ.

Two-player rational Nash equilibrium is in TFNP (and hence total by Brouwer / Lemke–Howson).

Totality of two-player Nash: every encoded rational game has a valid rational Nash equilibrium witness (or empty witness on malformed inputs).

Reduction to circuit EndOfLine: two-player rational Nash search-reduces in polynomial time to canonical circuit EndOfLine.