AFTD Auto-Formalizing Theoretical Domains

electrical_energy

def

The electrical energy E(a) of a demand vector a : Fin k → ℝ with respect to resistances d is the infimum of the flow energies electrical_flow_energy d F over all feasible flows F for a.

Statement

noncomputable def electrical_energy {k : ℕ} (d : Fin k → Fin k → ℝ) (a : Fin k → ℝ) : ℝ
Defined in
arXiv:2611.05669, Section 4.1
Verified
06 Nov 2026
Axioms
none listed
Built on 2
  • electrical_flow_energyGiven resistance values d on pairs in Fin k and a flow F : Fin k → Fin k → ℝ, the electrical energy of F is the sum ∑ i, ∑ j with i < j, d…
  • is_feasible_flowA signed flow F on Fin k is feasible for a demand vector a : Fin k → ℝ if F is skew-symmetric (F i j = -F j i for all i, j) and the net…

Read back from the Lean

Given a natural number k, a weight/resistance matrix d : Fin k → Fin k → ℝ, and a net flow/boundary vector a : Fin k → ℝ, electrical_energy d a is the infimum (sInf) in ℝ of the set of all electrical_flow_energy d F for flows F : Fin k → Fin k → ℝ that satisfy is_feasible_flow F a.

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

/-- The minimum electrical energy of a demand vector a with resistances d. -/
noncomputable def electrical_energy {k : ℕ} (d : Fin k → Fin k → ℝ) (a : Fin k → ℝ) : ℝ := sInf { electrical_flow_energy d F | (F : Fin k → Fin k → ℝ) (_ : is_feasible_flow F a) }
See it in the graphDiscuss this resultChallenge it