Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 6, proof of (2), p. 114 — under cycle prices a trader cannot afford goods of earlier cycles

Proved
ShapleyScarf.TopTrading.affordable_iff_later_stage

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

competitive-equilibriumhousing-marketp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1top-trading-cycles

Let N=S1∪⋯∪SpN = S^1 \cup \cdots \cup S^pN=S1∪⋯∪Sp be a top-trading-cycle partition of a housing market, with cyclic successor map next\mathrm{next}next, and assign 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. Then for every trader i∈Sji \in S^ji∈Sj:

  1. the item of his cyclic successor costs exactly what his own item sells for, πj\pi^jπj;
  2. every item he can afford (price at most πj\pi^jπj) belongs to Sj∪Sj+1∪⋯∪SpS^j \cup S^{j+1} \cup \cdots \cup S^pSj∪Sj+1∪⋯∪Sp; in particular he cannot afford any item of S1,…,Sj−1S^1, \dots, S^{j-1}S1,…,Sj−1.

Combined with the defining property of top trading cycles, this shows that buying his successor's item maximizes trader iii's utility within his budget.

Formalization Note The price of item kkk is πstage(k)\pi^{\mathrm{stage}(k)}πstage(k), with π\piπ indexed by Fin p from 000 and the strict decrease written as StrictAnti π. Clause 2 is the explicit content of "He cannot afford any items from S1,…,Sj−1S^1,\dots,S^{j-1}S1,…,Sj−1": an item whose price is at most πj\pi^jπj has stage at least jjj. Positivity of the prices is carried as on the page, although it is not needed.

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

/-- §6, proof of (2), p. 114: with prices `π¹ > π² > ⋯ > πᵖ > 0` on the goods of the cycles
`S¹, …, Sᵖ`, the item of a trader's cyclic successor costs exactly what his own item sells for,
and every item he can afford lies in his own cycle or a later one. -/
theorem affordable_iff_later_stage {N : Type*} [Fintype N] [DecidableEq N]
    (A : N → N → ℝ) (P : TTCPartition A) (π : Fin P.p → ℝ) (hπ : StrictAnti π)
    (hπpos : ∀ j, 0 < π j) (i : N) :
    π (P.stage (P.next i)) = π (P.stage i) ∧
      ∀ k, π (P.stage k) ≤ π (P.stage i) → P.stage i ≤ 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, proof of assertion (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