Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 17.4: the assignment LP over doubly stochastic matrices has an optimal solution that is a permutation matrix

Proved
UnderstandingML.assignment_lp_integral

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

assignment-problemdoubly-stochasticlinear-programming

Lemma 17.4. There exists an optimal solution of Equation (17.10), argmin⁡B⟨A,B⟩\operatorname{argmin}_B \langle A, B\rangleargminB​⟨A,B⟩ over doubly stochastic BBB, that is also an optimal solution of the assignment problem (17.9), i.e. a permutation matrix.

Formally: for every cost matrix AAA there is a permutation σ\sigmaσ with ⟨A,Pσ⟩≤⟨A,B⟩\langle A, P_\sigma\rangle \le \langle A, B\rangle⟨A,Pσ​⟩≤⟨A,B⟩ for every doubly stochastic BBB.

Preamble
import Definitions.Def_UnderstandingML_Multiclass

open MeasureTheory
open scoped InnerProductSpace
Formal statement
namespace UnderstandingML

/-- **Lemma 17.4** (p. 243). There exists an optimal solution of the linear program (17.10),
`min ⟨A, B⟩` over doubly stochastic `B`, that is also an optimal solution of the assignment
problem (17.9): a permutation matrix `C` with `⟨A, C⟩ ≤ ⟨A, B⟩` for every doubly stochastic `B`. -/
theorem assignment_lp_integral {r : ℕ} (A : Matrix (Fin r) (Fin r) ℝ) :
    ∃ σ : Equiv.Perm (Fin r), ∀ B ∈ doublyStochastic ℝ (Fin r),
      matrixInner A (σ.permMatrix ℝ) ≤ matrixInner A B := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §17.4.1 p. 243, Lemma 17.4 with its proof
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me