AFTD Auto-Formalizing Theoretical Domains

is_feasible_offline_tcp_schedule

def

A 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 sched.batch j = i, I.jobs[j].release ≤ sched.launch i) and batches do not overlap (for any i₁ < i₂, sched.launch i₁ + offline_tcp_batch_duration I sched i₁ ≤ sched.launch i₂).

Statement

def is_feasible_offline_tcp_schedule (I : OfflineTCPInstance) (sched : OfflineTCPSchedule I.jobs.length) : Prop
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_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…
  • OfflineTCPJobIn offline TCP acknowledgment with batch processing, a job has a rational release time r_j and processing time p_j.
Used by 2
  • offline_tcp_total_flow_decisionThe offline TCP total-flow decision problem asks whether there exists a feasible schedule sched for instance I whose total-flow cost is at…
  • offline_tcp_batch_max_decisionThe offline TCP batch-maximum decision problem asks whether there exists a feasible schedule sched for instance I whose batch-maximum cost…

Read back from the Lean

A definition stating that a schedule sched (with sched.m batches) for an instance I of the offline TCP problem (having I.jobs.length jobs) is feasible if and only if both of the following conditions hold: 1. For every batch index i : Fin sched.m and every job index j : Fin I.jobs.length, if job j is assigned to batch i (sched.batch j = i), then the release time of job j is at most the launch time of batch i (I.jobs[j].release ≤ sched.launch i). 2. For all pairs of batch indices i₁, i₂ : Fin sched.m, if i₁.val < i₂.val, then the launch time of batch i₁ plus the duration of batch i₁ is at most the launch time of batch i₂, where the duration of batch i₁ is the maximum processing time I.jobs[j].processing over all jobs j assigned to batch 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

/-- Feasibility of an offline TCP schedule: release times respected and batches non-overlapping. -/
def is_feasible_offline_tcp_schedule (I : OfflineTCPInstance) (sched : OfflineTCPSchedule I.jobs.length) : Prop := (∀ (i : Fin sched.m) (j : Fin I.jobs.length), sched.batch j = i →
    I.jobs[j].release ≤ sched.launch i) ∧
  (∀ (i₁ i₂ : Fin sched.m), i₁.val < i₂.val →
    sched.launch i₁ + offline_tcp_batch_duration I sched i₁ ≤ sched.launch i₂)
See it in the graphDiscuss this resultChallenge it