AFTD Auto-Formalizing Theoretical Domains

offline_tcp_batch_duration

def

For 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 sched i is the maximum processing time of the jobs assigned to batch i.

Statement

def offline_tcp_batch_duration (I : OfflineTCPInstance) (sched : OfflineTCPSchedule I.jobs.length) (i : Fin sched.m) : ℚ
Defined in
scout/2611-33678-online-network-design-with-batch-processing.md:490
Verified
28 Nov 2026
Axioms
none listed
Built on 4
  • OfflineTCPInstanceAn offline TCP instance consists of a launch fee K > 0 and a list of jobs, each with positive processing time and nonnegative release time.
  • OfflineTCPScheduleA schedule for n jobs is parameterized by n : ℕ and consists of a natural number m (the number of batches), a surjective assignment…
  • offline_tcp_batch_jobsFor 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…
  • OfflineTCPJobIn offline TCP acknowledgment with batch processing, a job has a rational release time r_j and processing time p_j.
Used by 1
  • is_feasible_offline_tcp_scheduleA schedule sched for an offline TCP instance I is feasible if every job is launched at or after its release time (for all i and j with…

Read back from the Lean

offline_tcp_batch_duration I sched i defines the duration of batch i (where i : Fin sched.m) in a schedule sched for the offline TCP instance I. It returns the maximum processing time (I.jobs[j].processing) among all jobs j : Fin I.jobs.length assigned to batch i (i.e., satisfying sched.batch j = i).

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 processing duration of batch i in an offline TCP instance schedule. -/
def offline_tcp_batch_duration (I : OfflineTCPInstance) (sched : OfflineTCPSchedule I.jobs.length) (i : Fin sched.m) : ℚ := (offline_tcp_batch_jobs sched i).sup'
    (by
      obtain ⟨j, hj⟩ := sched.batch_surj i
      exact ⟨j, Finset.mem_filter.mpr ⟨Finset.mem_univ j, hj⟩⟩)
    (fun j => I.jobs[j].processing)
See it in the graphDiscuss this resultChallenge it