Formalizing Scarf, Brouwer, and Nash in Lean
Brouwer's fixed point theorem and Nash equilibrium existence are usually invoked as black-box results, hiding the finite combinatorial structure that underlies them. A modular, inspectable formal proof route exposing this structure was lacking in Lean.
The development follows Ivanov's indexed-order formulation of Scarf's combinatorial theorem, formalizing dominant sets, cells, rooms, doors, and the parity argument yielding a colorful room. The theorem is instantiated on finite grids of the standard simplex, and compactness, continuity, and vanishing-diameter estimates yield a Brouwer fixed point. An explicit embedding–projection construction extends this to finite products of simplices, which is applied to the Nash map to prove mixed equilibrium existence. Intermediate proof objects are exposed as named Lean definitions and lemmas.
A complete Lean 4 formalization spanning Scarf, Brouwer (standard simplex and products), and Nash equilibrium existence is provided. As a by-product, BrouwerBench, an 80-item Lean-grounded pilot benchmark probing proof-structure understanding, is derived from the development.
