AFTD Auto-Formalizing Theoretical Domains

seven_cost

def

The total routing cost on the seven-vertex network, given by the sum of unit arc costs times arc loads across all nine arcs.

Statement

def seven_cost (load : SevenArc → ℝ) (l : SevenArc → ℝ) : ℝ
Defined in
arXiv:2611.23244 Equation (3)
Verified
19 Nov 2026
Axioms
none listed
Built on 1
  • SevenArcThe nine directed arcs of the seven-vertex graph: arborescence arcs (s,u), (u,v), (v,w), (v,t_1), (w,t_2), (w,t_3) and shortcut arcs…
Used by 1
  • seven_c_one_uThe minimum routing cost c_1^u(f; l) attainable by an unsplittable flow that is 1-admissible relative to f under unit arc-cost vector l,…

Read back from the Lean

seven_cost is a function that takes two arguments, load : SevenArc → ℝ and l : SevenArc → ℝ, and returns the real number defined as the sum of l a * load a over all nine constructors a of SevenArc: l(su) * load(su) + l(uv) * load(uv) + l(vw) * load(vw) + l(vt1) * load(vt1) + l(wt2) * load(wt2) + l(wt3) * load(wt3) + l(st1) * load(st1) + l(st2) * load(st2) + l(ut3) * load(ut3).

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 routing cost on the seven-vertex network under arc loads and unit arc costs. -/
def seven_cost (load : SevenArc → ℝ) (l : SevenArc → ℝ) : ℝ := l SevenArc.su * load SevenArc.su + l SevenArc.uv * load SevenArc.uv + l SevenArc.vw * load SevenArc.vw +
  l SevenArc.vt1 * load SevenArc.vt1 + l SevenArc.wt2 * load SevenArc.wt2 + l SevenArc.wt3 * load SevenArc.wt3 +
  l SevenArc.st1 * load SevenArc.st1 + l SevenArc.st2 * load SevenArc.st2 + l SevenArc.ut3 * load SevenArc.ut3
See it in the graphDiscuss this resultChallenge it