§2.1, p. 153, flow sketch after Proposition 2.3 — one day of a balanced schedule exists
ProvedTimetabling85.ClassTeacher.one_day_slicebalanced-edge-coloringmatrix-roundingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1timetabling
Let be an matrix of nonnegative integers with row totals and column totals , and let . Then there is an matrix of nonnegative integers such that for all
The matrix is the content of one day of a CT3 schedule: it satisfies the bounds (8), (9) and (10) simultaneously. In the paper it is the compatible flow of step in the network with lower bounds and capacities ; here it is stated directly about the matrix.
Formalization Note The hypothesis is added: for Lean's division gives , and the paper's "any " means any number of days.
Preamble
import Mathlib import Definitions.Def_Timetabling85_ClassTeacher_Problems
Formal statement
namespace Timetabling85.ClassTeacher
/-- One step of the flow construction (de Werra 1985, §2.1, p. 153): for `p ≥ 1` there is a
one-day slice `y` of `R` meeting the bounds of (8), (9) and (10). -/
theorem one_day_slice {m n : ℕ} (R : Fin m → Fin n → ℕ) (p : ℕ) (hp : 0 < p) :
∃ y : Fin m → Fin n → ℕ,
(∀ i j, lo (R i j) p ≤ y i j ∧ y i j ≤ hi (R i j) p) ∧
(∀ i, lo (rowSum R i) p ≤ ∑ j, y i j ∧ ∑ j, y i j ≤ hi (rowSum R i) p) ∧
(∀ j, lo (colSum R j) p ≤ ∑ i, y i j ∧ ∑ i, y i j ≤ hi (colSum R j) p) := by sorry
end Timetabling85.ClassTeacher
Source
de Werra, An introduction to timetabling, Eur. J. Oper. Res. 19 (1985), p. 153, §2.1, network-flow sketch after Proposition 2.3 (step k of the p compatible-flow problems)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.