offline_tcp_batch_jobs
def
For a schedule sched on n jobs and a batch index i : Fin sched.m, offline_tcp_batch_jobs sched i is the finset of all job indices j : Fin n assigned to batch i, that is, those satisfying sched.batch j = i.
Statement
def offline_tcp_batch_jobs {n : ℕ} (sched : OfflineTCPSchedule n) (i : Fin sched.m) : Finset (Fin n)- Defined in
- scout/2611-33678-online-network-design-with-batch-processing.md:490
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Built on 1
- OfflineTCPScheduleA schedule for n jobs is parameterized by n : ℕ and consists of a natural number m (the number of batches), a surjective assignment…
- Used by 3
- offline_tcp_batch_durationFor an offline TCP instance I, a schedule sched on I.jobs.length jobs, and a batch index i : Fin sched.m, offline_tcp_batch_duration I…
- offline_tcp_total_flow_costThe total-flow cost of a schedule sched for an offline TCP instance I is sched.m * I.launchFee + ∑ i : Fin sched.m, ∑ j ∈…
- offline_tcp_batch_max_costThe batch-maximum cost of a schedule sched for an offline TCP instance I is the sum over all batches i of I.launchFee plus the maximum…
Read back from the Lean
Given a natural number n, an offline TCP schedule sched for n jobs (which specifies a number of batches m, a surjective batch assignment function batch : Fin n → Fin m, and a launch time function launch : Fin m → ℚ), and a batch index i : Fin sched.m, offline_tcp_batch_jobs sched i is defined as the finite set of all job indices j : Fin n such that sched.batch j = i (i.e., the fiber of batch index i under sched.batch).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The finset of job indices assigned to batch i in a schedule. -/ def offline_tcp_batch_jobs {n : ℕ} (sched : OfflineTCPSchedule n) (i : Fin sched.m) : Finset (Fin n) := Finset.univ.filter (fun j => sched.batch j = i)