Section II.B — the TTC algorithm ends within |I| steps with a matching
ProvedSchoolChoice.TTC.ttc_terminatesp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1school-choicetop-trading-cycles
Let be a finite set of students and a finite set of schools with capacities satisfying the no-shortage condition
For all strict priorities and every announced preference profile , after steps of the top trading cycles algorithm no student remains, and the resulting assignment is a matching: there is such that every student is assigned the school by the mechanism and
This makes precise the paper's remarks that the algorithm terminates when all students are assigned a seat and that there can be no more steps than students; it shows that the top trading cycles mechanism is a well-defined student assignment mechanism.
Preamble
import Mathlib import Definitions.Def_SchoolChoice_TTC_Algorithm
Formal statement
namespace SchoolChoice.TTC
/-- Section II.B (p. 16): the algorithm terminates within `card I` steps — after
`card I` steps no student remains — and the resulting assignment is a matching:
every student is assigned some school and no school receives more students than its
capacity. -/
theorem ttc_terminates {I S : Type} [Fintype I] [DecidableEq I] [Fintype S]
[DecidableEq S] (q : S → ℕ) (hq : Fintype.card I ≤ ∑ s, q s)
(pri : S → Priority I) (P : I → Pref S) :
(run q pri P (Fintype.card I)).rem = ∅ ∧
∃ μ : I → S, (∀ i, ttc q pri P i = some (μ i)) ∧ IsMatching q μ := by sorry
end SchoolChoice.TTC
Source
Abdulkadiroğlu and Sönmez, School Choice: A Mechanism Design Approach, Columbia Univ. Economics Discussion Paper No. 0203-18 (July 2003), p. 16, Section II.B (termination remark)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.