offline_tcp_total_flow_decision
The offline TCP total-flow decision problem asks whether there exists a feasible schedule sched for instance I whose total-flow cost is at most L.
Statement
def offline_tcp_total_flow_decision (I : OfflineTCPInstance) (L : ℚ) : Prop
- Defined in
- scout/2611-33678-online-network-design-with-batch-processing.md:1325
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Built on 5
- 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…
- 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…
- 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 ∈…
- OfflineTCPJobIn offline TCP acknowledgment with batch processing, a job has a rational release time r_j and processing time p_j.
- Used by 2
- OfflineTCPTotalFlowPolyTimeAlgorithmA polynomial-time algorithm for offline TCP total-flow decision consists of an evaluation function eval mapping an instance I and bound L…
- op_2401_offline_tcp_poly_time_solvableOpen Problem OP-2401: with arbitrarily many distinct processing lengths, either the offline TCP total-flow objective or the offline TCP…
Read back from the Lean
Given an instance I : OfflineTCPInstance (with positive launch fee I.launchFee : ℚ and a list of jobs I.jobs each having positive processing time and non-negative release time) and a bound L : ℚ, offline_tcp_total_flow_decision I L asserts that there exists a schedule sched for the I.jobs.length jobs such that:
1. sched is feasible:
- For every batch i : Fin sched.m and every job j : Fin I.jobs.length, if job j is assigned to batch i (sched.batch j = i), then job j's release time is at most the launch time of batch i (I.jobs[j].release ≤ sched.launch i).
- For all batch indices i₁, i₂ : Fin sched.m with i₁.val < i₂.val, the launch time of batch i₁ plus the batch's duration is at most the launch time of batch i₂ (sched.launch i₁ + offline_tcp_batch_duration I sched i₁ ≤ sched.launch i₂).
2. The total flow cost of sched is at most L, i.e., offline_tcp_total_flow_cost I sched ≤ L.
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 offline TCP total-flow decision problem. -/ def offline_tcp_total_flow_decision (I : OfflineTCPInstance) (L : ℚ) : Prop := ∃ sched : OfflineTCPSchedule I.jobs.length, is_feasible_offline_tcp_schedule I sched ∧ offline_tcp_total_flow_cost I sched ≤ L