AFTD Auto-Formalizing Theoretical Domains

OfflineTCPInstance

structure

An offline TCP instance consists of a launch fee K > 0 and a list of jobs, each with positive processing time and nonnegative release time.

Statement

structure OfflineTCPInstance where
  launchFee : ℚ
  jobs : List OfflineTCPJob
  fee_pos : 0 < launchFee
  proc_pos : ∀ j ∈ jobs, 0 < j.processing
  rel_nonneg : ∀ j ∈ jobs, 0 ≤ j.release
Defined in
arXiv:2611.33678, Sec. 2 & 7
Verified
28 Nov 2026
Axioms
none listed
Built on 1
  • OfflineTCPJobIn offline TCP acknowledgment with batch processing, a job has a rational release time r_j and processing time p_j.
Used by 9
  • 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…
  • 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_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…
  • OfflineTCPBatchMaxPolyTimeAlgorithmA polynomial-time algorithm for offline TCP batch-maximum decision consists of an evaluation function eval mapping an instance I and bound…
  • 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 structure OfflineTCPInstance bundling: 1. launchFee : ℚ, a rational number; 2. jobs : List OfflineTCPJob, a list of jobs; 3. fee_pos : 0 < launchFee, asserting that the launch fee is strictly positive; 4. proc_pos : ∀ j ∈ jobs, 0 < j.processing, asserting that every job in jobs has strictly positive processing time; 5. rel_nonneg : ∀ j ∈ jobs, 0 ≤ j.release, asserting that every job in jobs has non-negative release time, with a default proof provided by by sorry.

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

/-- An instance of the offline TCP acknowledgment problem with batch processing. -/
structure OfflineTCPInstance where
  launchFee : ℚ
  jobs : List OfflineTCPJob
  fee_pos : 0 < launchFee
  proc_pos : ∀ j ∈ jobs, 0 < j.processing
  rel_nonneg : ∀ j ∈ jobs, 0 ≤ j.release
See it in the graphDiscuss this resultChallenge it