Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 6, proof of (1), p. 114 — a trader in the first cycle meeting S already gets his best payoff available in S

Proved
ShapleyScarf.TopTrading.best_in_coalition_of_first_stage

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

corehousing-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 preference matrix AAA, and let next(i)\mathrm{next}(i)next(i) be trader iii's cyclic successor. Let SSS be a coalition, let jjj be the first index with S∩Sj≠∅S\cap S^j \ne \emptysetS∩Sj=∅, and let i∈S∩Sji \in S \cap S^ji∈S∩Sj. Then S⊆Sj∪⋯∪SpS \subseteq S^j \cup \cdots \cup S^pS⊆Sj∪⋯∪Sp, and iii is already getting the highest payoff available to him in SSS:

aik≤ai next(i)for every k∈S.a_{ik} \le a_{i\,\mathrm{next}(i)}\qquad\text{for every } k\in S.aik​≤ainext(i)​for every k∈S.

This is the heart of the proof that the cycle allocation is in the core: no member of S∩SjS\cap S^jS∩Sj can be made strictly better off by trading within SSS.

Formalization Note "The first jjj such that S∩Sj≠∅S \cap S^j \ne \emptysetS∩Sj=∅" and "i∈S∩Sji \in S\cap S^ji∈S∩Sj" are expressed by i∈Si \in Si∈S together with stage(i)≤stage(k)\mathrm{stage}(i) \le \mathrm{stage}(k)stage(i)≤stage(k) for all k∈Sk\in Sk∈S. "The highest possible payoff available to him in SSS" is read as: the item of his successor is at least as good for him as every item of SSS.

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

/-- §6, proof of (1), p. 114: if `i ∈ S` lies in the first cycle `Sʲ` that meets the coalition
`S` (every member of `S` has stage `≥ j`), then `i` already gets, from his cyclic successor,
the highest payoff available to him from the items of `S`. -/
theorem best_in_coalition_of_first_stage {N : Type*} [Fintype N] [DecidableEq N]
    (A : N → N → ℝ) (P : TTCPartition A) (S : Finset N) (i : N) (hi : i ∈ S)
    (hfirst : ∀ k ∈ S, P.stage i ≤ P.stage k) :
    ∀ k ∈ S, A i k ≤ A i (P.next i) := 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 (1)
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