AFTD Auto-Formalizing Theoretical Domains

ssss_is_primal_opt_val

def

A 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 → ℝ, terminals s, t ∈ V, and integer k : ℕ if there exists a primal feasible solution x : V × V → ℝ with ssss_primal_obj E c x = LP, and every primal feasible solution x' satisfies LP ≤ ssss_primal_obj E c x'.

Statement

def ssss_is_primal_opt_val {V : Type*} [Fintype V] [DecidableEq V]
    (E : Finset (V × V)) (c : V × V → ℝ) (s t : V) (k : ℕ) (LP : ℝ) : Prop
Defined in
arXiv:2611.26188, Section 3
Verified
20 Nov 2026
Axioms
none listed
Built on 2
  • ssss_primal_feasibleFor a finite vertex set V with decidable equality, a set of directed edges E : Finset (V × V), terminals s, t ∈ V, and an integer k : ℕ, a…
  • ssss_primal_objFor 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…

Read back from the Lean

Given a finite type V with decidable equality, a set of directed edges E ⊆ V × V, an edge cost function c : V × V → ℝ, vertices s, t ∈ V, a demand k ∈ ℕ, and a real value LP : ℝ: The proposition ssss_is_primal_opt_val asserts that LP is the minimum value of the primal objective over all primal feasible solutions x : V × V → ℝ. That is: 1. There exists x : V × V → ℝ such that x is primal feasible (ssss_primal_feasible E s t k x) and the primal objective value (ssss_primal_obj E c x) equals LP. 2. For all x : V × V → ℝ, if x is primal feasible, then LP ≤ ssss_primal_obj E c x.

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 real number LP is the optimal value of the primal LP relaxation (SSSS-P) for k paths. -/
def ssss_is_primal_opt_val {V : Type*} [Fintype V] [DecidableEq V]
    (E : Finset (V × V)) (c : V × V → ℝ) (s t : V) (k : ℕ) (LP : ℝ) : Prop :=
  (∃ x, ssss_primal_feasible E s t k x ∧ ssss_primal_obj E c x = LP) ∧
  (∀ x, ssss_primal_feasible E s t k x → LP ≤ ssss_primal_obj E c x)
See it in the graphDiscuss this resultChallenge it