def
definition
def or abbrev
totalAccessCost
show as:
view Lean formalization →
formal statement (Lean)
26noncomputable def totalAccessCost (n : ℕ) (freq : Fin n → ℝ) (dist : Fin n → ℝ) : ℝ :=
proof body
Definition body.
27 ∑ i : Fin n, freq i * dist i
28
29/-- Cached access cost: cached items accessed at distance ε, uncached at full distance,
30 plus maintenance overhead α per cached item. -/