ssss_primal_obj
def
For a finite vertex type V with decidable equality, a set of directed edges E : Finset (V × V), and edge cost and flow functions c, x : V × V → ℝ, the primal objective value ssss_primal_obj E c x is the sum over all edges e ∈ E of c(e) * x(e).
Statement
def ssss_primal_obj {V : Type*} [Fintype V] [DecidableEq V] (E : Finset (V × V)) (c : V × V → ℝ) (x : V × V → ℝ) : ℝ
- Defined in
- arXiv:2611.26188, Section 3
- Verified
- 20 Nov 2026
- Axioms
- none listed
- Used by 2
- ssss_weak_dualityFor any edge set E : Finset (V × V), edge costs c : V × V → ℝ, distinct terminals s ≠ t in V, and integer k : ℕ, if x : V × V → ℝ is…
- ssss_is_primal_opt_valA real number LP is the optimal value of the LP relaxation (SSSS-P) for an edge set E : Finset (V × V), edge costs c : V × V → ℝ,…
Read back from the Lean
For a type V with [Fintype V] and [DecidableEq V], given a finite set E : Finset (V × V), a cost function c : V × V → ℝ, and an assignment x : V × V → ℝ, ssss_primal_obj E c x is defined as the sum over all e ∈ E of c e * x e.
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
/-- Objective value of a primal solution x to (SSSS-P) with edge costs c. -/ def ssss_primal_obj {V : Type*} [Fintype V] [DecidableEq V] (E : Finset (V × V)) (c : V × V → ℝ) (x : V × V → ℝ) : ℝ := ∑ e ∈ E, c e * x e