Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma (Appendix) — before i's earlier removal step, the remaining students and schools do not depend on i's report

Proved
SchoolChoice.TTC.ttc_lemma_same_state

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

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

Let III, SSS and capacities (qs)(q_s)(qs​) satisfy the no-shortage condition ∣I∣≤∑sqs|I|\le\sum_s q_s∣I∣≤∑s​qs​, and fix strict priorities. Fix a student iii, the announced preferences PjP_jPj​ of every other student j≠ij\ne ij=i, and two reports of student iii: PiP_iPi​ and an arbitrary QiQ_iQi​. Write P′=(Qi,P−i)P' = (Q_i, P_{-i})P′=(Qi​,P−i​).

For every t≥0t\ge 0t≥0: if student iii is still remaining at the beginning of Step t+1t+1t+1 both when she announces PiP_iPi​ and when she announces QiQ_iQi​, then at the beginning of Step t+1t+1t+1

  1. the sets of remaining students coincide, and
  2. the sets of remaining schools coincide,

under the two reports.

This is the Lemma the paper uses to prove Proposition 4: if iii is removed at Step TTT under one report and at Step T∗≥TT^*\ge TT∗≥T under the other, the remaining students and schools at the beginning of Step TTT are the same.

Formalization Note "Suppose iii is removed at Step TTT under QiQ_iQi​ and at Step T∗T^*T∗ under Qi∗Q_i^*Qi∗​, with T≤T∗T\le T^*T≤T∗" is rendered as "iii is still remaining at the beginning of the step under both reports", which avoids a removal-step function. The statement is thereby asserted at every step up to and including Step TTT, not only at Step TTT; this is exactly what the paper's proof establishes.

Preamble
import Mathlib
import Definitions.Def_SchoolChoice_TTC_Algorithm
Formal statement
namespace SchoolChoice.TTC

/-- The Lemma of the Appendix (pp. 28–29). 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 and the remaining schools
are the same under both reports. -/
theorem ttc_lemma_same_state {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) (i : I) (Qi : Pref S) (t : ℕ)
    (hi : i ∈ (run q pri P t).rem)
    (hi' : i ∈ (run q pri (Function.update P i Qi) t).rem) :
    (run q pri P t).rem = (run q pri (Function.update P i Qi) t).rem ∧
      remSchools (run q pri P t) = remSchools (run q pri (Function.update P i Qi) t) := 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), pp. 28–29, Appendix, Lemma
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