Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 6, assertions (1) and (2), p. 114 — the top-trading-cycle allocation is in the core and is competitive

Proved
ShapleyScarf.TopTrading.ttc_core_and_competitive

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

competitive-equilibriumcorehousing-marketindivisible-goodsp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1top-trading-cycles

Let NNN be the finite set of traders of a housing market with preference matrix A=(aij)A = (a_{ij})A=(aij​), ties allowed. Let

N=S1∪S2∪⋯∪SpN = S^1 \cup S^2 \cup \cdots \cup S^pN=S1∪S2∪⋯∪Sp

be any top-trading-cycle partition (SjS^jSj a top trading cycle for N−(S1∪⋯∪Sj−1)N - (S^1\cup\cdots\cup S^{j-1})N−(S1∪⋯∪Sj−1)), and let the trades indicated within each cycle be carried out: trader i=irj∈Sji = i^j_r \in S^ji=irj​∈Sj receives the good of his cyclic successor ir+1ji^j_{r+1}ir+1j​, so his payoff is xi=ai ir+1jx_i = a_{i\, i^j_{r+1}}xi​=aiir+1j​​. Then:

  1. this allocation is a core allocation: it is a permutation of the goods, and no nonempty coalition can reshuffle its own goods so that every one of its members is strictly better off;
  2. it is competitive at the prices obtained by assigning arbitrary prices
π1>π2>⋯>πp>0\pi^1 > \pi^2 > \cdots > \pi^p > 0π1>π2>⋯>πp>0

to the goods of the respective cycles S1,…,SpS^1, \dots, S^pS1,…,Sp: each trader can afford his successor's good by selling his own, and no good he can afford is better for him.

This is David Gale's constructive proof, reported by Shapley and Scarf, that every housing market with indivisible goods has a nonempty core, and moreover a core allocation supported by competitive prices, without any assumption of strict preferences.

Formalization Note Assertion (2) of the paper says that "a set of competitive prices exists"; its proof assigns arbitrary prices π1>⋯>πp>0\pi^1 > \cdots > \pi^p > 0π1>⋯>πp>0, and the statement asserts the result for every such choice, which is stronger than existence. Core allocations and competitive allocations are as in the definition item ShapleyScarf.TopTrading.Market (strict improvement for every member of the blocking coalition; budget and optimization clauses for prices). The cycle index of item kkk is P.stage k : Fin p, counted from 000, and the strict decrease is StrictAnti π.

Preamble
import Mathlib
import Definitions.Def_ShapleyScarf_TopTrading_Market
import Definitions.Def_ShapleyScarf_TopTrading_TopTradingCycle
Formal statement
namespace ShapleyScarf.TopTrading

/-- §6, assertions (1) and (2), p. 114: for every top-trading-cycle partition, the allocation
that gives each trader the item of his cyclic successor is a core allocation, and it is
competitive at the prices `π^{stage k}` for every choice `π¹ > π² > ⋯ > πᵖ > 0`. -/
theorem ttc_core_and_competitive {N : Type*} [Fintype N] [DecidableEq N]
    (A : N → N → ℝ) (P : TTCPartition A) :
    IsCoreAllocation A P.next ∧
      ∀ π : Fin P.p → ℝ, StrictAnti π → (∀ j, 0 < π j) →
        IsCompetitive A P.next (fun k => π (P.stage k)) := by sorry

end ShapleyScarf.TopTrading
Source
Shapley and Scarf, On cores and indivisibility, J. Math. Econ. 1 (1974); p. 114 of the source printing, Section 6, assertions (1) and (2)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me