AFTD Auto-Formalizing Theoretical Domains

OfflineTCPSchedule

structure

A schedule for n jobs is parameterized by n : ℕ and consists of a natural number m (the number of batches), a surjective assignment function batch : Fin n → Fin m, and a launch time function launch : Fin m → ℚ.

Statement

structure OfflineTCPSchedule (n : ℕ) where
  m : ℕ
  batch : Fin n → Fin m
  launch : Fin m → ℚ
  batch_surj : Function.Surjective batch
Defined in
scout/2611-33678-online-network-design-with-batch-processing.md:490
Verified
28 Nov 2026
Axioms
none listed
Used by 7
  • 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…
  • 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…
  • 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

For a given natural number n, OfflineTCPSchedule n is a structure consisting of: 1. A natural number m. 2. A function batch : Fin n → Fin m. 3. A function launch : Fin m → ℚ. 4. A proof batch_surj that batch is surjective (Function.Surjective batch), with a default value 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

/-- A schedule for n jobs partitioned into m batches with launch times. -/
structure OfflineTCPSchedule (n : ℕ) where
  m : ℕ
  batch : Fin n → Fin m
  launch : Fin m → ℚ
  batch_surj : Function.Surjective batch
See it in the graphDiscuss this resultChallenge it