Dual prices for Frank–Wolfe algorithms
Sebastian Pokutta
v1 2026-11-28 · last 2026-11-29
Additional material: arXiv:2101.02087
Note: Formalizes the certificate property of dual prices (2.1), the identity (2.2) of the Frank–Wolfe gap and the complementarity gap, and Observation 2.1 with (2.3) to (2.5) of Braun & Pokutta (2021).
Abstract. Over a polyhedron the linear minimization oracle of a Frank–Wolfe algorithm is a linear program, and solvers certify a minimizer of with dual prices , and . Dual prices certify optimality, the condition on the value is complementary slackness, and the Frank–Wolfe gap at is the complementarity gap . For a smooth convex objective and an approximately optimal point , dual prices keep their meaning from linear programming as the rate of change of the optimal value under a change of to : if are dual prices for Frank–Wolfe vertices and of both problems and is feasible, the optimal value over the new polyhedron lies between and . The errors are the Frank–Wolfe gap at , which vanishes at optimal solutions, and the nonlinearity of .
Frank–Wolfe algorithms access the feasible region only through a linear minimization oracle. Over a polytope such an oracle is a linear program solver, and solvers certify optimality with dual prices: for a minimizer of , multipliers with and . For linear programs, dual prices are the rate of change of the optimal value under changes of . The note observes that the dual prices of the linear subproblem at an approximately optimal point of a smooth convex problem keep this meaning, with an additive error of the Frank–Wolfe gap at and a smoothness term. So a Frank–Wolfe algorithm provides sensitivity information at no extra cost.
Throughout, is a real normed space, the rows of are continuous linear functionals, and . Gradients are the derivatives , linear functionals on , and the norm is arbitrary.
Dual prices¶
By strong duality of linear programming, a point minimizes over if and only if dual prices exist. The formalization uses the easy direction, which needs no linear programming:
Both statements come from for , with equality exactly when every term vanishes.
Indeed . For the left-hand side is the Frank–Wolfe gap at , the usual stopping criterion of Frank–Wolfe algorithms and an upper bound on the primal gap.
Sensitivity in the right-hand side¶
Change to , with , and let and be Frank–Wolfe vertices at over and . The point moves along with the vertex.
For , convexity gives , and ; the point need not lie in . The upper bound is smoothness along , and the dual prices give . So the dual prices are the rate of change of the optimal value, up to the Frank–Wolfe gap at , which vanishes at optimal solutions, and the error from the nonlinearity of .
The paper argues that the assumption holds when is close to an optimal solution and is close to : then every constraint tight at is tight at , and the slack constraints at absorb the small changes. The computation behind this is the following.
For a tight constraint, . For a slack one, .
Coverage¶
This entry covers (2.1) in the direction that dual prices certify optimality, with complementary slackness, (2.2), Observation 2.1 with (2.3), (2.4) and (2.5), and the feasibility computation for the translated point. Not covered are the strong duality of linear programming and the optimality conditions it gives, which the paper recalls, and the informal argument that the constraints tight at are tight at near an optimal solution.
The formal statements at a glance¶
/-- (2.1): dual prices certify optimality, and `g v = -λb` is complementary slackness. -/
theorem dual_certificate : DualCertificate := Proof.dual_certificate
/-- (2.2): the Frank–Wolfe gap equals the complementarity gap `λ(b - Ax)`. -/
theorem gap_complementarity : GapComplementarity := Proof.gap_complementarity
/-- Observation 2.1: dual prices measure the change of the optimal value under a change of `b`, up
to the Frank–Wolfe gap and the smoothness term `L‖v' - v‖²/2`. -/
theorem dual_price_sensitivity : DualPriceSensitivity := Proof.dual_price_sensitivity
/-- The translated point `x - v + v'` is feasible for `b'` when the tight constraints at `x` are
tight at `v` and the slack constraints have enough slack. -/
theorem translate_feasible : TranslateFeasible := Proof.translate_feasibleFormal verification — ✅ all 7 formal results are kernel-checked
◇ elaborated definition (Lean v4.35.0) Polyhedra —
Lemmata.FWDualPrices.poly(source)◇ elaborated definition (Lean v4.35.0) Frank–Wolfe vertices —
Lemmata.FWDualPrices.IsFWVertex(source)◇ elaborated definition (Lean v4.35.0) Dual prices —
Lemmata.FWDualPrices.IsDualPrice(source)✓ kernel-checked (Lean v4.35.0) Dual prices certify optimality —
Lemmata.FWDualPrices.dual_certificate(source)✓ kernel-checked (Lean v4.35.0) The Frank–Wolfe gap is the complementarity gap —
Lemmata.FWDualPrices.gap_complementarity(source)✓ kernel-checked (Lean v4.35.0) Observation 2.1 —
Lemmata.FWDualPrices.dual_price_sensitivity(source)✓ kernel-checked (Lean v4.35.0) Feasibility of the translated point —
Lemmata.FWDualPrices.translate_feasible(source)
Checked at commit 89e42fdee8df. The formal statement is machine-checked; that it matches the prose is checked by review. What “checked” means.
Lean poly · ◇ elaborated · source
Definition in Lean
/-- The polyhedron `{z : a_i z ≤ b_i for all i}`, that is `{z : Az ≤ b}` with the rows `a_i`
of `A`. -/
def poly (a : Fin m → StrongDual ℝ E) (b : Fin m → ℝ) : Set E := {z | ∀ i, a i z ≤ b i}Lean IsFWVertex · ◇ elaborated · source
Definition in Lean
/-- `v` is a Frank–Wolfe vertex for the linear objective `g` over `P`: a minimizer of `g` on `P`. -/
def IsFWVertex (P : Set E) (g : StrongDual ℝ E) (v : E) : Prop := v ∈ P ∧ ∀ z ∈ P, g v ≤ g zLean IsDualPrice · ◇ elaborated · source
Definition in Lean
/-- `λ` are dual prices for `v` and the linear objective `g` over `{z : Az ≤ b}`, as in (2.1):
`λ ≥ 0`, `g = -λA` and `g v = -λb`. -/
def IsDualPrice (a : Fin m → StrongDual ℝ E) (b : Fin m → ℝ) (g : StrongDual ℝ E) (v : E)
(lam : Fin m → ℝ) : Prop :=
(∀ i, 0 ≤ lam i) ∧ g = -∑ i, lam i • a i ∧ g v = -∑ i, lam i * b iLean dual_certificate · ✅ kernel-checked · source
Statement in Lean
/-- (2.1): dual prices certify optimality, and `g v = -λb` is complementary slackness. -/
theorem dual_certificate : DualCertificatewhere DualCertificate is (source):
/-- **Dual prices certify optimality** (2.1). For `v ∈ P`, `λ ≥ 0` and `g = -λA`, the condition
`g v = -λb` is complementary slackness, `a_i v = b_i` whenever `λ_i > 0`, and dual prices make `v` a
minimizer of `g` over `P`. -/
def DualCertificate : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
(b : Fin m → ℝ) (g : StrongDual ℝ E) (v : E) (lam : Fin m → ℝ),
v ∈ poly a b → (∀ i, 0 ≤ lam i) → g = -∑ i, lam i • a i →
(IsDualPrice a b g v lam ↔ ∀ i, 0 < lam i → a i v = b i) ∧
(IsDualPrice a b g v lam → IsFWVertex (poly a b) g v)Lean gap_complementarity · ✅ kernel-checked · source
Statement in Lean
/-- (2.2): the Frank–Wolfe gap equals the complementarity gap `λ(b - Ax)`. -/
theorem gap_complementarity : GapComplementaritywhere GapComplementarity is (source):
/-- **The Frank–Wolfe gap is the complementarity gap** (2.2). For dual prices `λ` of `v`,
`g(x - v) = λ(b - Ax)` for every `x`. -/
def GapComplementarity : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
(b : Fin m → ℝ) (g : StrongDual ℝ E) (v : E) (lam : Fin m → ℝ),
IsDualPrice a b g v lam → ∀ x : E, g (x - v) = ∑ i, lam i * (b i - a i x)Lean dual_price_sensitivity · ✅ kernel-checked · source
Statement in Lean
/-- Observation 2.1: dual prices measure the change of the optimal value under a change of `b`, up
to the Frank–Wolfe gap and the smoothness term `L‖v' - v‖²/2`. -/
theorem dual_price_sensitivity : DualPriceSensitivitywhere DualPriceSensitivity is (source):
/-- **Observation 2.1** (sensitivity in `b`). Let `f` be convex and `L`-smooth on a convex set `D`
containing `P = {z : Az ≤ b}` and `P' = {z : Az ≤ b'}`, let `x ∈ P`, and let `v` and `v'` be
Frank–Wolfe vertices at `x` over `P` and `P'` with `x' = x - v + v' ∈ P'`. Then
`f(x) - ∇f(x)(x - v)` is a lower bound on `f` over `P` (2.3), `f(x) - ∇f(x)(x - v) + ∇f(x)(v' - v)`
is one over `P'`, and `f(x') ≤ f(x) + ∇f(x)(v' - v) + L‖v' - v‖²/2` (2.4). For common dual prices
`λ` of `v` and `v'`, `∇f(x)(v' - v) = λ(b - b')` (2.5). -/
def DualPriceSensitivity : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
(b b' : Fin m → ℝ) (D : Set E) (f : E → ℝ) (L : ℝ) (x v v' : E),
poly a b ⊆ D → poly a b' ⊆ D → ConvexOn ℝ D f → IsSmoothOn D f L →
x ∈ poly a b → DifferentiableAt ℝ f x →
IsFWVertex (poly a b) (fderiv ℝ f x) v → IsFWVertex (poly a b') (fderiv ℝ f x) v' →
x - v + v' ∈ poly a b' →
(∀ z ∈ poly a b, f x - fderiv ℝ f x (x - v) ≤ f z) ∧
(∀ z ∈ poly a b', f x - fderiv ℝ f x (x - v) + fderiv ℝ f x (v' - v) ≤ f z) ∧
f (x - v + v') ≤ f x + fderiv ℝ f x (v' - v) + L / 2 * ‖v' - v‖ ^ 2 ∧
∀ lam : Fin m → ℝ, IsDualPrice a b (fderiv ℝ f x) v lam →
IsDualPrice a b' (fderiv ℝ f x) v' lam → fderiv ℝ f x (v' - v) = ∑ i, lam i * (b i - b' i)Lean translate_feasible · ✅ kernel-checked · source
Statement in Lean
/-- The translated point `x - v + v'` is feasible for `b'` when the tight constraints at `x` are
tight at `v` and the slack constraints have enough slack. -/
theorem translate_feasible : TranslateFeasiblewhere TranslateFeasible is (source):
/-- **Feasibility of the translated point.** If every constraint tight at `x ∈ P` is tight at `v`,
`v' ∈ P'`, and every constraint slack at `x` has slack at least `|b'_i - b_i| + ‖a_i‖‖v' - v‖`,
then `x' = x - v + v' ∈ P'`. -/
def TranslateFeasible : Prop :=
∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
(b b' : Fin m → ℝ) (x v v' : E),
x ∈ poly a b → v' ∈ poly a b' → (∀ i, a i x = b i → a i v = b i) →
(∀ i, a i x < b i → |b' i - b i| + ‖a i‖ * ‖v' - v‖ ≤ b i - a i x) →
x - v + v' ∈ poly a b'AI use. The formalization and this page were developed with Claude (Anthropic) under the author’s direction and review, on top of the shared entry Frank–Wolfe: the core.
Acknowledgements. This research was conducted in the context of the Agentic AI in Mathematics (EF-LiOpt-3) project at the Berlin Mathematics Research Center MATH (EXC-2046/2, project ID 390685689), funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy. This work has been partially supported by OpenAI’s Academic Researchers program.
License: CC BY 4.0
Comments.
- Braun, G., & Pokutta, S. (2021). Dual Prices for Frank–Wolfe Algorithms. 10.48550/arXiv.2101.02087