Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 4.6, p. 10 (corrected) — best response = maximum-weight path, certified by the DP rows of LP1-(b)

Proved
BlottoLP.Flow.best_response_dp

by mikedeng1 · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

colonel-blottodynamic-programminglongest-pathp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let W=(Wk,i)W=(W_{k,i})W=(Wk,i​), 1≤k≤K1\le k\le K1≤k≤K, 0≤i≤N0\le i\le N0≤i≤N, be real weights, where Wk,iW_{k,i}Wk,i​ is the weight of the edges vk−1,j→vk,j+iv_{k-1,j}\to v_{k,j+i}vk−1,j​→vk,j+i​ of the layered graph of a player with NNN troops, so that a pure strategy yyy (a canonical path) has weight ∑kWk,yk\sum_k W_{k,y_k}∑k​Wk,yk​​. For every real ttt,

(∀y: ∑k=1KWk,yk≤t)  ⟺  ∃D: D0,0=0,  Dk,i≥Dk−1,j+Wk,i−j (1≤k≤K, 0≤j≤i≤N),  DK,N≤t.\Big(\forall y:\ \sum_{k=1}^{K} W_{k,y_k}\le t\Big)\iff \exists D:\ D_{0,0}=0,\ \ D_{k,i}\ge D_{k-1,j}+W_{k,i-j}\ (1\le k\le K,\ 0\le j\le i\le N),\ \ D_{K,N}\le t.(∀y: k=1∑K​Wk,yk​​≤t)⟺∃D: D0,0​=0,  Dk,i​≥Dk−1,j​+Wk,i−j​ (1≤k≤K, 0≤j≤i≤N),  DK,N​≤t.

That is, the maximum weight of a canonical path is at most ttt exactly when the dynamic-programming rows of Linear Program 1-(b) have a solution with DK,N≤tD_{K,N}\le tDK,N​≤t.

With W=WBW=W^BW=WB from eq. (4), the left side says that no pure strategy of B earns more than ttt against A's marginals; this is how Linear Program 1 encodes the exponentially many payoff constraints with O(N2K)O(N^2K)O(N2K) rows.

Formalization Note The printed LP1 fixes D0,i=0D_{0,i}=0D0,i​=0 for every 0≤i≤N0\le i\le N0≤i≤N. With that row the implication "⇒\Rightarrow⇒" fails, because paths may then start at v0,iv_{0,i}v0,i​ with i>0i>0i>0 (allocations of fewer than NNN troops). The statement uses the corrected row D0,0=0D_{0,0}=0D0,0​=0 only, with D0,iD_{0,i}D0,i​ free for i>0i>0i>0, and the index Wk,i−jW_{k,i-j}Wk,i−j​ for the paper's Wk−1,i−jBW^B_{k-1,i-j}Wk−1,i−jB​.

Preamble
import Mathlib
import Definitions.Def_BlottoLP_Flow_Model
Formal statement
namespace BlottoLP.Flow

/-- Proof of Theorem 4.6, p. 10 (corrected): with weight `W k i` on the edges
`v_{k,j} → v_{k+1,j+i}` of the layered graph of a player with `N` troops, every pure strategy has
weight at most `t` (the maximum-weight canonical path weighs at most `t`) if and only if the
dynamic-programming rows of Linear Program 1-(b), with `D_{0,0} = 0`, have a solution with
`D_{K,N} ≤ t`. -/
theorem best_response_dp (K N : ℕ) (W : Fin K → Fin (N + 1) → ℝ) (t : ℝ) :
    (∀ y : Pure K N, ∑ k, W k (y.1 k) ≤ t) ↔
      ∃ D : Fin (K + 1) → Fin (N + 1) → ℝ, IsDPBound W D ∧ D (Fin.last K) (Fin.last N) ≤ t := by sorry

end BlottoLP.Flow
Source
Behnezhad, Dehghani, Derakhshan, Hajiaghayi, Seddighin, Faster and Simpler Algorithm for Optimal Strategies of Blotto Game, arXiv preprint (arXiv:1612.04029, PDF of 2016-12-28), p. 10, proof of Theorem 4.6 (maximum-weight path and the constraint D^B_{k,i} ≥ D^B_{k−1,j} + W^B_{k−1,i−j}), corrected
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 20, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me