Documentation

CslibFrontier.GameTheory.Market.ZeroOneFisher

Strongly polynomial algorithm for 0/1 linear Fisher markets #

This module formalizes Exercise 5.1 of [Vaz07] (Chapter 5, p. 133): a strongly polynomial combinatorial algorithm for computing exact market equilibria in linear Fisher markets with 0/1 utilities (∀ i g, M.utility i g = 0 ∨ M.utility i g = 1), using at most n (n + 1) / 2 + 1 = O(n²) max-flow oracle calls (n = |G|), completely independent of the magnitudes or bit-lengths of buyer budgets and good supplies.

Algorithm #

Unlike the general linear DPSV algorithm (CslibFrontier.GameTheory.Market.DPSVAlgorithm, Theorem 5.22), which depends logarithmically on M = ∑ e_i and U = max u_{i g}, under 0/1 utilities every buyer's bang-per-buck on a desired good g is simply 1 / p_g, so buyers always prefer their cheapest desired goods. Raising prices uniformly on the remaining active goods A ⊆ G above the previously frozen price threshold prevPrice decouples frozen buyers (who desire at least one frozen good in G \ A priced ≤ prevPrice) from active buyers (activeBuyers A). Each round invokes LinearFisherMarket.findTightSetProgram (CslibFrontier.GameTheory.Market.BalancedFlow, Lemma 5.11) on A at auxiliary prices p_cur g = if g ∈ A then prevPrice + 1 else p g to find the exact minimum tight ratio x* and maximal tight set S* ⊆ A in at most |A| max-flow oracle calls, freezes p g := x* * (prevPrice + 1) > prevPrice on S*, and removes S* from A. Because |A| strictly shrinks by |S*| ≥ 1 in every round, all goods freeze in at most n rounds and at most n (n + 1) / 2 max-flow calls; one final max-flow call on M.equalityNetwork p* recovers an exact equilibrium allocation by Lemma 5.2 (isEquilibrium_of_isMaxRealFlow).

Main definitions #

Main results #

References #

A linear Fisher market has 0/1 utilities ([Vaz07], Exercise 5.1, p. 133) if every marginal utility M.utility i g is either 0 or 1.

Output of the strongly polynomial 0/1 linear Fisher market algorithm.

  • allocation : I → G → ℝ

    Exact equilibrium allocation.

  • price : G → ℝ

    Exact equilibrium price vector.

  • rounds : ℕ

    Number of tight-set peeling rounds executed.

Strongly polynomial algorithm for 0/1 linear Fisher markets ([Vaz07], Exercise 5.1, p. 133): iteratively peels tight subsets of goods via findTightSetProgram in at most |G| rounds and |G| (|G| + 1) / 2 max-flow oracle calls, then runs one final max-flow call on M.equalityNetwork p* to compute an exact equilibrium allocation.

theorem Cslib.GameTheory.Market.LinearFisherMarket.zeroOneFisherProgram_spec {I G : Type u} [Fintype I] [Fintype G] [DecidableEq I] [DecidableEq G] {M : LinearFisherMarket I G} (hnd : M.IsNonDegenerate) (h01 : M.IsZeroOneUtilities) {oracle : {ι : Type u} → MaxFlowQuery I G ι → ι} (horacle : IsValidMaxFlowOracle fun {ι : Type u} => oracle) :
have res := FreeM.eval (fun {ι : Type u} => oracle) M.zeroOneFisherProgram; M.IsEquilibrium res.allocation res.price ∧ res.rounds ≤ Fintype.card G ∧ FreeM.countQueries (fun {ι : Type u} => oracle) M.zeroOneFisherProgram ≤ Fintype.card G * (Fintype.card G + 1) / 2 + 1

Exercise 5.1 ([Vaz07], Chapter 5, p. 133): for every non-degenerate 0/1 linear Fisher market M (with arbitrary positive real budgets and supplies) and any valid max-flow oracle oracle, M.zeroOneFisherProgram computes an exact market equilibrium in at most |G| peeling rounds and at most |G| (|G| + 1) / 2 + 1 = O(|G|²) max-flow oracle calls.