Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma (Appendix) for TTC with quotas — the state before the earlier removal step does not depend on i's report

Proved
SchoolChoice.TTCQuota.ttcq_lemma_same_state

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

controlled-choicep2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1school-choicestrategy-proofnesstop-trading-cycles

Consider the top trading cycles algorithm with type-specific quotas, with capacities satisfying ∣I∣≤∑sqs|I|\le\sum_s q_s∣I∣≤∑s​qs​, arbitrary type quotas, types and priorities. Fix a student iii and the announced preferences PjP_jPj​ of all other students j≠ij\ne ij=i. Compare two reports of iii: PiP_iPi​ and an arbitrary QiQ_iQi​.

If at the beginning of some step student iii is still remaining under both reports, then at the beginning of that step the two runs have

  1. the same set of remaining students,
  2. the same school counters csc_scs​ (hence the same remaining schools), and
  3. the same type-specific counters cstc_s^tcst​ (hence the same schools with room for each type).

This is the Lemma preceding the proof of Proposition 4. The paper states that the Lemma and its proof remain valid for the modified mechanism, and uses it in the proof of Proposition 7.

Formalization Note The paper assumes iii is removed at Step TTT under one report and at Step T∗≥TT^*\ge TT∗≥T under the other, and concludes about the beginning of Step TTT. Here the conclusion is stated at every step at whose beginning iii remains under both reports, which covers every step up to and including Step TTT; this is the form the proof establishes. The conclusion includes equality of the counters, which is what "the same schools" means for the modified mechanism, where pointing depends on the type-specific counters. Steps are indexed by the number ttt of completed steps.

Preamble
import Mathlib
import Definitions.Def_SchoolChoice_TTCQuota_Algorithm
Formal statement
namespace SchoolChoice.TTCQuota

/-- The Lemma of the Appendix (pp. 28–29), carried over to the modified mechanism (proof of
Proposition 7, p. 30). Fix the announced preferences of all students other than `i` (they
are `P j`, `j ≠ i`), and compare the report `P i` with any other report `Qi`. At every
step `t` at whose beginning (the beginning of Step `t + 1`) student `i` still remains
under both reports, the remaining students, the school counters and the type-specific
counters (hence the remaining schools and which of them have room for which type) are
the same under both reports. -/
theorem ttcq_lemma_same_state {I S Ty : Type} [Fintype I] [DecidableEq I] [Fintype S]
    [DecidableEq S] [Fintype Ty] [DecidableEq Ty]
    (q : S → ℕ) (qt : S → Ty → ℕ) (τ : I → Ty) (hq : Fintype.card I ≤ ∑ s, q s)
    (pri : S → Priority I) (P : I → Pref S) (i : I) (Qi : Pref S) (t : ℕ)
    (hi : i ∈ (run q qt τ pri P t).rem)
    (hi' : i ∈ (run q qt τ pri (Function.update P i Qi) t).rem) :
    (run q qt τ pri P t).rem = (run q qt τ pri (Function.update P i Qi) t).rem ∧
      (run q qt τ pri P t).cnt = (run q qt τ pri (Function.update P i Qi) t).cnt ∧
      (run q qt τ pri P t).tcnt = (run q qt τ pri (Function.update P i Qi) t).tcnt := by sorry

end SchoolChoice.TTCQuota
Source
Abdulkadiroğlu and Sönmez, School Choice: A Mechanism Design Approach, Columbia Univ. Economics Discussion Paper No. 0203-18 (July 2003), pp. 28–29, Lemma (Appendix); p. 30, proof of Proposition 7 ("The Lemma preceding the proof of Proposition 4 as well as its proof are valid for the modified mechanism.")
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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