AFTD Auto-Formalizing Theoretical Domains

gnd_partial_load

def

For a sequence of N requests, the online load on resource e immediately prior to processing request i is the sum of weights w j e over prior requests j < i where e ∈ reply j.

Statement

noncomputable def gnd_partial_load {E : Type*} [DecidableEq E] {N : ℕ} (reply : Fin N → Finset E) (w : Fin N → E → ℝ) (i : Fin N) : E → ℝ
Defined in
arXiv:2611.30912 Section 2
Verified
25 Nov 2026
Axioms
none listed
Built on 2
  • TotalPreorderA total preorder: a preorder where ≤ is total (complete). This is weaker than LinearOrder — it does NOT require antisymmetry or…
  • LinearOrder.toTotalPreorderEvery LinearOrder is a TotalPreorder.
Used by 1
  • is_tau_approx_greedyAn online reply sequence alg_reply is tau-approximately greedy if each alg_reply i is feasible (alg_reply i ∈ replies i) and its marginal…

Read back from the Lean

Given a type E with decidable equality, a natural number N, a function reply : Fin N → Finset E, a weight function w : Fin N → E → ℝ, and an index i : Fin N, gnd_partial_load reply w i is defined as the function E → ℝ sending each e : E to the sum over all j : Fin N with j < i of w j e if e ∈ reply j, and 0 otherwise.

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

/-- Partial load on each resource from requests prior to request i. -/
noncomputable def gnd_partial_load {E : Type*} [DecidableEq E] {N : ℕ} (reply : Fin N → Finset E) (w : Fin N → E → ℝ) (i : Fin N) : E → ℝ := fun e => ∑ j ∈ Finset.Iio i, if e ∈ reply j then w j e else 0
See it in the graphDiscuss this resultChallenge it