OfflineTCPTotalFlowPolyTimeAlgorithm
A polynomial-time algorithm for offline TCP total-flow decision consists of an evaluation function eval mapping an instance I and bound L to a pair of a boolean answer and a step count in ℕ, a polynomial step bound bounded by (I.jobs.length + 1)^C for some constant C : ℕ, and a proof sound that the boolean output is true if and only if offline_tcp_total_flow_decision I L holds.
Statement
structure OfflineTCPTotalFlowPolyTimeAlgorithm where eval : OfflineTCPInstance → ℚ → Bool × ℕ step_bound : ∃ C : ℕ, ∀ (I : OfflineTCPInstance) (L : ℚ), (eval I L).2 ≤ (I.jobs.length + 1) ^ C sound : ∀ (I : OfflineTCPInstance) (L : ℚ), (eval I L).1 = true ↔ offline_tcp_total_flow_decision I L
- Defined in
- scout/2611-33678-online-network-design-with-batch-processing.md:1325
- Verified
- 28 Nov 2026
- Axioms
- none listed
- Built on 3
- 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.
- 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…
- OfflineTCPJobIn offline TCP acknowledgment with batch processing, a job has a rational release time r_j and processing time p_j.
- Used by 1
- 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
A structure OfflineTCPTotalFlowPolyTimeAlgorithm consisting of:
1. eval: a function taking an OfflineTCPInstance I and a rational threshold L, returning a pair (b, s) : Bool × ℕ (intended as a boolean decision and a step count).
2. step_bound: an assertion that there exists a natural number constant C such that for all instances I and rational thresholds L, the second component (eval I L).2 is at most (I.jobs.length + 1) ^ C.
3. sound: an assertion (with default proof by sorry) that for all instances I and rational thresholds L, (eval I L).1 = true if and only if offline_tcp_total_flow_decision I L holds.
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
/-- A polynomial-time algorithm deciding the offline TCP total-flow problem. -/ structure OfflineTCPTotalFlowPolyTimeAlgorithm where eval : OfflineTCPInstance → ℚ → Bool × ℕ step_bound : ∃ C : ℕ, ∀ (I : OfflineTCPInstance) (L : ℚ), (eval I L).2 ≤ (I.jobs.length + 1) ^ C sound : ∀ (I : OfflineTCPInstance) (L : ℚ), (eval I L).1 = true ↔ offline_tcp_total_flow_decision I L