Lemma (Appendix) — before i's earlier removal step, the remaining students and schools do not depend on i's report
ProvedSchoolChoice.TTC.ttc_lemma_same_stateLet , and capacities satisfy the no-shortage condition , and fix strict priorities. Fix a student , the announced preferences of every other student , and two reports of student : and an arbitrary . Write .
For every : if student is still remaining at the beginning of Step both when she announces and when she announces , then at the beginning of Step
- the sets of remaining students coincide, and
- the sets of remaining schools coincide,
under the two reports.
This is the Lemma the paper uses to prove Proposition 4: if is removed at Step under one report and at Step under the other, the remaining students and schools at the beginning of Step are the same.
Formalization Note "Suppose is removed at Step under and at Step under , with " is rendered as " 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 , not only at Step ; this is exactly what the paper's proof establishes.
import Mathlib import Definitions.Def_SchoolChoice_TTC_Algorithm
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.