Proof of Theorem 2, p. 16 — the interchange leaves the census unchanged at every epoch
ProvedDischargeTiming.Ranking.interchange_censusFix an initial state , an exogenous arrival path, a horizon and a feasible discharge schedule with trajectory . Let , put , and let , be types with and . Suppose that at epoch at least one patient is discharged, , while some patient is kept, ; and that the same -cohort is still present at : if then , and if then .
Let be the interchanged schedule: , , and otherwise. Then the census of the two trajectories agrees at every epoch:
This is the first step of the interchange argument: "the occupancies are the same under both policies under all sample paths", so the holding costs of the two schedules coincide.
Formalization Note When the action at is never used, and the kept patient is the one present at the horizon. The hypothesis (or ) identifies a later discharge (or the presence at the horizon) of a member of the cohort of the kept patient, which is how the page's "is discharged at a later time, " is read.
import Mathlib import Definitions.Def_DischargeTiming_Ranking_Model
namespace DischargeTiming.Ranking
theorem interchange_census {M J : ℕ} (P : Model M J) (x0 : State M J)
(arr : ℕ → Fin M → ℕ) (H : ℕ) (D : ℕ → Action M J)
(hD : FeasibleSchedule P x0 arr H D)
(m1 m2 : Fin M) (t1 t2 : Fin (J + 1)) (k k' : ℕ) (hkk' : k < k') (hk'H : k' ≤ H)
(h1 : (t1 : ℕ) + (k' - k) ≤ J) (h2 : (t2 : ℕ) + (k' - k) ≤ J)
(hD2 : 1 ≤ D k m2 t2) (hD1 : D k m1 t1 < traj x0 arr D k m1 t1)
(hlate : k' < H → 1 ≤ D k' m1 (losShift t1 (k' - k) h1))
(hterm : k' = H → 1 ≤ traj x0 arr D H m1 (losShift t1 (k' - k) h1)) :
∀ i ≤ H,
census (traj x0 arr
(interchange D k k' m1 t1 (losShift t1 (k' - k) h1) m2 t2 (losShift t2 (k' - k) h2)) i)
= census (traj x0 arr D i) := by sorry
end DischargeTiming.Ranking
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.