Lemma (Appendix) for TTC with quotas — the state before the earlier removal step does not depend on i's report
ProvedSchoolChoice.TTCQuota.ttcq_lemma_same_stateConsider the top trading cycles algorithm with type-specific quotas, with capacities satisfying , arbitrary type quotas, types and priorities. Fix a student and the announced preferences of all other students . Compare two reports of : and an arbitrary .
If at the beginning of some step student is still remaining under both reports, then at the beginning of that step the two runs have
- the same set of remaining students,
- the same school counters (hence the same remaining schools), and
- the same type-specific counters (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 is removed at Step under one report and at Step under the other, and concludes about the beginning of Step . Here the conclusion is stated at every step at whose beginning remains under both reports, which covers every step up to and including Step ; 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 of completed steps.
import Mathlib import Definitions.Def_SchoolChoice_TTCQuota_Algorithm
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.