AFTD Auto-Formalizing Theoretical Domains

uniform_kserver_total_weight

def

For a natural number k, a family of spaces M indexed by Fin k, and a finitely supported weight function ϕ on configurations, uniform_kserver_total_weight ϕ is the total weight, defined as the sum of ϕ x over all configurations x in its support.

Statement

noncomputable def uniform_kserver_total_weight {k : ℕ} {M : Fin k → Type*}
    (ϕ : (∀ i, M i) →₀ ℝ) : ℝ
Defined in
arXiv:2610.37192 Section 3.1
Verified
28 Oct 2026
Axioms
none listed
Used by 1
  • uniform_kserver_expected_costFor a natural number k, a family of spaces M indexed by Fin k with decidable equality, an initial configuration a, and a list of requests…

Read back from the Lean

Given a natural number $k$, a family of types $M : \mathrm{Fin}\ k \to \mathrm{Type}^*$, and a finitely supported function $\phi : (\forall i : \mathrm{Fin}\ k, M\ i) \to_0 \mathbb{R}$, uniform_kserver_total_weight is defined as the sum over the support of $\phi$ of its values, i.e., $\sum_{x \in \phi.\mathrm{support}} \phi(x)$.

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 weight of a finitely supported weight function on configurations. -/
noncomputable def uniform_kserver_total_weight {k : ℕ} {M : Fin k → Type*}
    (ϕ : (∀ i, M i) →₀ ℝ) : ℝ := ϕ.sum fun _ c => c
See it in the graphDiscuss this resultChallenge it