AFTD Auto-Formalizing Theoretical Domains

gnd_marginal_cost

def

The marginal increase in total power cost caused by assigning a request with weight vector w to a reply set reply ⊆ E under current load vector ℓ is ∑ e ∈ reply, (c e * (ℓ e + w e)^(pe e) - c e * (ℓ e)^(pe e)).

Statement

noncomputable def gnd_marginal_cost {E : Type*} (c : E → ℝ) (pe : E → ℝ) (ℓ : E → ℝ) (w : E → ℝ) (reply : Finset E) : ℝ
Defined in
arXiv:2611.30912 Section 2
Verified
26 Nov 2026
Axioms
none listed
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

Definition of gnd_marginal_cost: Given a type E, functions c : E → ℝ, pe : E → ℝ, ℓ : E → ℝ, and w : E → ℝ, and a finite set reply : Finset E, gnd_marginal_cost c pe ℓ w reply is the real number given by the sum over all e ∈ reply of c e * (ℓ e + w e) ^ (pe e) - c e * (ℓ e) ^ (pe e) (using real exponentiation).

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

/-- Marginal increase in power cost from assigning a request with weight w and reply set reply under current load ℓ. -/
noncomputable def gnd_marginal_cost {E : Type*} (c : E → ℝ) (pe : E → ℝ) (ℓ : E → ℝ) (w : E → ℝ) (reply : Finset E) : ℝ := ∑ e ∈ reply, (c e * (ℓ e + w e) ^ (pe e) - c e * (ℓ e) ^ (pe e))
See it in the graphDiscuss this resultChallenge it