speed_robust_bricks_total_completion_time
Defines speed_robust_bricks_total_completion_time σ for an assignment σ : Fin n → Fin m of n unit-size jobs to m machines as the sum over all machines i : Fin m of triangular_number applied to the number of jobs assigned to machine i, that is, (Finset.univ.filter (fun j => σ j = i)).card.
Statement
def speed_robust_bricks_total_completion_time {n m : ℕ} (σ : Fin n → Fin m) : ℕ- Defined in
- arXiv:2611.20795 Section 2
- Verified
- 18 Nov 2026
- Axioms
- none listed
- Built on 1
- triangular_numberFor any natural number k, the k-th triangular number is defined as k(k+1)/2.
- Used by 1
- speed_robust_bricks_optDefines the noncomputable function speed_robust_bricks_opt n m for natural numbers n and m as the infimum ⨅ σ : Fin n → Fin m,…
Read back from the Lean
For given natural numbers $n$ and $m$ (implicit) and a function $\sigma : \text{Fin } n \to \text{Fin } m$, speed_robust_bricks_total_completion_time is defined as the sum over all $i \in \text{Fin } m$ of the triangular number of the cardinality of the fiber of $\sigma$ at $i$ (i.e., the number of indices $j \in \text{Fin } n$ such that $\sigma(j) = 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
/-- The total completion time of n unit-size jobs assigned to m machines by σ. -/ def speed_robust_bricks_total_completion_time {n m : ℕ} (σ : Fin n → Fin m) : ℕ := ∑ i : Fin m, triangular_number (Finset.card (Finset.univ.filter (fun j => σ j = i)))