gnd_load
Given a type E with decidable equality, an implicit natural number N, a reply function reply : Fin N → Finset E, and a weight function w : Fin N → E → ℝ, gnd_load reply w defines the function from E to ℝ mapping each e : E to the sum over all i : Fin N of (if e ∈ reply i then w i e else 0).
Statement
noncomputable def gnd_load {E : Type*} [DecidableEq E] {N : ℕ} (reply : Fin N → Finset E) (w : Fin N → E → ℝ) : E → ℝ
- Defined in
- arXiv:2611.30912 Section 1.1
- Verified
- 26 Nov 2026
- Axioms
- none listed
Read back from the Lean
Given a type E with decidable equality, a natural number N, a function reply : Fin N → Finset E assigning a finite subset of E to each index i : Fin N, and a weight function w : Fin N → E → ℝ, gnd_load reply w is defined as the function from E to ℝ that maps each element e : E to the sum over all i : Fin N of w i e if e ∈ reply i, 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
/-- Total load on each resource induced by a sequence of replies and request weights. -/ noncomputable def gnd_load {E : Type*} [DecidableEq E] {N : ℕ} (reply : Fin N → Finset E) (w : Fin N → E → ℝ) : E → ℝ := fun e => ∑ i : Fin N, if e ∈ reply i then w i e else 0