Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.1 — the dual-price allocation is in the core of SAG([Z], D)

Proved
DecentralizedDistribution.FirstBest.dual_allocation_in_core

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

cooperative-gamecorelinear-programming-dualityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1transshipment

Fix a distribution system, a nonnegative profile [Z][Z][Z] of local stocks and claims (so that all warehouse inventory is claimed) and any demand realization D⃗\vec DD. Consider the snapshot allocation game SAG([Z],D⃗)([Z],\vec D)([Z],D) whose value for a coalition S⊆N\mathcal S\subseteq\mathcal NS⊆N is the shipping-LP value WS∗([Z],D⃗)W^*_{\mathcal S}([Z],\vec D)WS∗​([Z],D) of (6). Its core is the set of allocations α\alphaα with

∑j∈Sαj ≥ WS∗([Z],D⃗)∀ S⊆N,∑j∈Nαj=WN∗([Z],D⃗).(7)\sum_{j\in\mathcal S}\alpha_j\ \ge\ W^*_{\mathcal S}([Z],\vec D)\quad\forall\,\mathcal S\subseteq\mathcal N,\qquad \sum_{j\in\mathcal N}\alpha_j=W^*_{\mathcal N}([Z],\vec D).\qquad(7)j∈S∑​αj​ ≥ WS∗​([Z],D)∀S⊆N,j∈N∑​αj​=WN∗​([Z],D).(7)

Then:

  1. the core of SAG([Z],D⃗)([Z],\vec D)([Z],D) is nonempty;
  2. the dual of the grand-coalition shipping LP (6) has an optimal solution;
  3. for every optimal dual solution (ν,γ,δ)(\nu,\gamma,\delta)(ν,γ,δ), the dual-price allocation
αn([Z],D⃗)=νnHn+∑w∈WγwYw,n+δnEn,n∈N,(8)\alpha_n([Z],\vec D)=\nu_nH_n+\sum_{w\in\mathcal W}\gamma_wY_{w,n}+\delta_nE_n,\qquad n\in\mathcal N,\qquad(8)αn​([Z],D)=νn​Hn​+w∈W∑​γw​Yw,n​+δn​En​,n∈N,(8)

lies in the core.

This is the paper's main theorem: pricing residual inventory, claimed warehouse stock and residual demand at their shadow prices gives an allocation that no coalition can improve on by shipping among its own members.

Formalization Note. The core is the platform definition Supermodularity.Cooperative.Core with ground set all retailers, which is exactly (7a)–(7b) (the empty coalition has value 000). Part 3 is asserted for every optimal dual, not just one; the paper notes that dual prices need not be unique.

Preamble
import Mathlib
import Definitions.Def_Supermodularity_Cooperative_Core
import Definitions.Def_DecentralizedDistribution_FirstBest_System
import Definitions.Def_DecentralizedDistribution_FirstBest_DualPrices

open Supermodularity.Cooperative
Formal statement
namespace DecentralizedDistribution.FirstBest

/-- Theorem 4.1 (p. 358). For a nonnegative profile `[Z]` (all inventory claimed) and any demand
realization `D⃗`: the core of SAG([Z], D⃗) is nonempty, the dual of the grand-coalition shipping
LP (6) has an optimal solution, and for every optimal dual solution `(ν, γ, δ)` the allocation (8)
`α_n = ν_n H_n + ∑_w γ_w Y_{w,n} + δ_n E_n` lies in the core (7). -/
theorem dual_allocation_in_core {N W : ℕ} (sys : System N W) (Z : Profile N W) (hZ : Z.Nonneg)
    (D : Demand N) :
    (Core Finset.univ (fun S => coalitionValue sys S Z D)).Nonempty ∧
    (∃ p, IsOptimalDual sys Z D p) ∧
    ∀ p, IsOptimalDual sys Z D p →
      dualAllocation Z D p ∈ Core Finset.univ (fun S => coalitionValue sys S Z D) := by sorry

end DecentralizedDistribution.FirstBest
Source
Anupindi, Bassok & Zemel, A General Framework for the Study of Decentralized Distribution Systems, MSOM 3(4) 2001, p. 358, Theorem 4.1, Eq. (7a)-(7b), (8)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let N,WN,WN,W be arbitrary natural numbers and take any system with NNN retailers and WWW warehouses. Its parameters are arbitrary reals, except that 0≤βi,n≤10\le\beta_{i,n}\le10≤βi,n​≤1.

Let ZZZ be any nonnegative profile: every Xn≥0X_n\ge0Xn​≥0 and every claim Yw,n≥0Y_{w,n}\ge0Yw,n​≥0. Let D∈RND\in\mathbb R^ND∈RN be any demand vector; negative entries are allowed. Write Hn=max⁡{Xn−Dn,0}H_n=\max\{X_n-D_n,0\}Hn​=max{Xn​−Dn​,0} and En=max⁡{Dn−Xn,0}E_n=\max\{D_n-X_n,0\}En​=max{Dn​−Xn​,0}. Write WS∗(Z,D)W^*_S(Z,D)WS∗​(Z,D) for the coalition value: the real supremum of the shipping profit

∑j∈S,n∈Smj,nqj,n+∑w, n∈Smw,nqw,n,mi,n=rn−vi−ti,n,\sum_{j\in S,n\in S}m_{j,n}q_{j,n}+\sum_{w,\,n\in S}m_{w,n}q_{w,n},\qquad m_{i,n}=r_n-v_i-t_{i,n},j∈S,n∈S∑​mj,n​qj,n​+w,n∈S∑​mw,n​qw,n​,mi,n​=rn​−vi​−ti,n​,

over plans that satisfy all of:

  • q≥0q\ge0q≥0;
  • shipments only on arcs from SSS or a warehouse into SSS;
  • qi,n=0q_{i,n}=0qi,n​=0 when βi,n=0\beta_{i,n}=0βi,n​=0;
  • ∑n∈Sqj,n≤Hj\sum_{n\in S}q_{j,n}\le H_j∑n∈S​qj,n​≤Hj​ for j∈Sj\in Sj∈S;
  • ∑n∈Sqw,n≤∑n∈SYw,n\sum_{n\in S}q_{w,n}\le\sum_{n\in S}Y_{w,n}∑n∈S​qw,n​≤∑n∈S​Yw,n​ for every www;
  • ∑iqi,n/βi,n≤En\sum_{i}q_{i,n}/\beta_{i,n}\le E_n∑i​qi,n​/βi,n​≤En​ for n∈Sn\in Sn∈S, summing over retailers of SSS and all warehouses.

Conclusion. The statement asserts all three of the following:

  1. Core([N], S↦WS∗(Z,D))\mathrm{Core}\big([N],\,S\mapsto W^*_S(Z,D)\big)Core([N],S↦WS∗​(Z,D)) is nonempty. Core\mathrm{Core}Core is an imported definition whose text is not part of the code shown.
  2. An optimal dual exists. This is a triple (ν,γ,δ)(\nu,\gamma,\delta)(ν,γ,δ) that is nonnegative, satisfies
βj,nmj,n≤βj,nνj+δnandβw,nmw,n≤βw,nγw+δn\beta_{j,n}m_{j,n}\le\beta_{j,n}\nu_j+\delta_n\quad\text{and}\quad\beta_{w,n}m_{w,n}\le\beta_{w,n}\gamma_w+\delta_nβj,n​mj,n​≤βj,n​νj​+δn​andβw,n​mw,n​≤βw,n​γw​+δn​

for all retailers j,nj,nj,n and warehouses www, and minimizes ∑jνjHj+∑wγw∑nYw,n+∑nδnEn\sum_j\nu_jH_j+\sum_w\gamma_w\sum_nY_{w,n}+\sum_n\delta_nE_n∑j​νj​Hj​+∑w​γw​∑n​Yw,n​+∑n​δn​En​ among such triples. 3. For every optimal dual, the vector with entries

αn=νnHn+∑wγwYw,n+δnEn\alpha_n=\nu_nH_n+\sum_w\gamma_wY_{w,n}+\delta_nE_nαn​=νn​Hn​+w∑​γw​Yw,n​+δn​En​

lies in that same core.

Degenerate cases.

  • No retailers. When N=0N=0N=0, the ground set is empty. The claim then reduces to what the imported Core\mathrm{Core}Core says about the empty ground set, and to the empty allocation belonging to it.
  • No warehouses. When W=0W=0W=0, the warehouse terms vanish.
  • Negative demand. Demand vectors with negative entries are covered too, giving En=0E_n=0En​=0 and possibly larger HnH_nHn​.
  • Costs. No hypothesis restricts c,r,v,tc,r,v,tc,r,v,t.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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