AFTD Auto-Formalizing Theoretical Domains

ssss_dual_optimal

def

A dual solution (a, y) is optimal for the LP relaxation (SSSS-D) with k : ℕ paths if it is dual feasible for (E, c, s, t) and for every dual feasible solution (a', y'), the dual objective value ssss_dual_obj s t k a' y' is at most ssss_dual_obj s t k a y.

Statement

def ssss_dual_optimal {V : Type*} [Fintype V] [DecidableEq V]
    (E : Finset (V × V)) (c : V × V → ℝ) (s t : V) (k : ℕ)
    (a : V → ℝ) (y : Finset V → ℝ) : Prop
Defined in
arXiv:2611.26188, Section 3
Verified
20 Nov 2026
Axioms
none listed
Built on 2
  • ssss_dual_feasibleA node potential vector a : V → ℝ and cut dual vector y : Finset V → ℝ are feasible for the dual LP relaxation (SSSS-D) on edge set E :…
  • ssss_dual_objThe objective value of a dual solution (a, y) for k paths is k * (a(t) - a(s)) plus twice the sum of y_U over all non-empty subsets U of V…

Read back from the Lean

For a finite type V with decidable equality, a set of directed edges E : Finset (V × V), an edge-cost function c : V × V → ℝ, vertices s, t : V, a parameter k : ℕ, a vertex potential a : V → ℝ, and a cut-weight function y : Finset V → ℝ, ssss_dual_optimal E c s t k a y asserts that (a, y) is feasible for the dual problem and attains the maximum value of the dual objective ssss_dual_obj s t k among all feasible pairs (a', y').

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

/-- A dual solution (a, y) is optimal for (SSSS-D) with k paths. -/
def ssss_dual_optimal {V : Type*} [Fintype V] [DecidableEq V]
    (E : Finset (V × V)) (c : V × V → ℝ) (s t : V) (k : ℕ)
    (a : V → ℝ) (y : Finset V → ℝ) : Prop :=
  ssss_dual_feasible E c s t a y ∧
  ∀ a' y', ssss_dual_feasible E c s t a' y' → ssss_dual_obj s t k a' y' ≤ ssss_dual_obj s t k a y
See it in the graphDiscuss this resultChallenge it