Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 1 — the transfer-price allocation (0, 0, 16, 0) is not in the core

Proved
DecentralizedDistribution.FirstBest.example1_transfer_price_not_in_core

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

cooperative-gamecoreexamplep2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Consider four retailers and no warehouses with rn=10r_n=10rn​=10, vn=5v_n=5vn​=5 for every nnn, ti,n=1t_{i,n}=1ti,n​=1 and βi,n=1\beta_{i,n}=1βi,n​=1 for every arc, so that every shipment of excess supply to excess demand earns 10−5−1=410-5-1=410−5−1=4 per unit. Take local stocks X=(3,1,0,0)X=(3,1,0,0)X=(3,1,0,0) and demands D⃗=(0,0,5,2)\vec D=(0,0,5,2)D=(0,0,5,2), so that H1=3H_1=3H1​=3, H2=1H_2=1H2​=1, E3=5E_3=5E3​=5, E4=2E_4=2E4​=2 and all other residuals vanish. Then

WN∗([Z],D⃗)=16,W{1,4}∗([Z],D⃗)=8,W^*_{\mathcal N}([Z],\vec D)=16,\qquad W^*_{\{1,4\}}([Z],\vec D)=8,WN∗​([Z],D)=16,W{1,4}∗​([Z],D)=8,

and the allocation (0,0,16,0)(0,0,16,0)(0,0,16,0), which gives the whole excess profit to the retailers whose residual demand is served, is not in the core of SAG([Z],D⃗)([Z],\vec D)([Z],D): it violates the core constraint (7a) for the coalition {1,4}\{1,4\}{1,4}.

The example shows that allocations by predetermined transfer prices need not lie in the core.

Formalization Note. Retailers 1,…,41,\dots,41,…,4 are indices 0,…,30,\dots,30,…,3, so {1,4}\{1,4\}{1,4} is {0, 3}. The costs cnc_ncn​ are left arbitrary (they do not enter W∗W^*W∗). The paper gives only the residuals; the stocks and demands above are one realization producing them.

Preamble
import Mathlib
import Definitions.Def_Supermodularity_Cooperative_Core
import Definitions.Def_DecentralizedDistribution_FirstBest_System

open Supermodularity.Cooperative
Formal statement
namespace DecentralizedDistribution.FirstBest

/-- Example 1 (p. 358). Four retailers, no warehouses, `r_n = 10`, `v_n = 5`, `t_{i,n} = 1`,
`β_{i,n} = 1`; stocks `X = (3, 1, 0, 0)` and demands `D = (0, 0, 5, 2)`, so that
`H_1 = 3, H_2 = 1, E_3 = 5, E_4 = 2` (all other residuals zero). Then `W*_𝒩 = 16`, the coalition
`{1, 4}` (indices `0, 3`) has `W*_{{1,4}} = 8`, and the transfer-price allocation `(0, 0, 16, 0)`
is not in the core of SAG([Z], D⃗). -/
theorem example1_transfer_price_not_in_core (sys : System 4 0)
    (hr : ∀ n, sys.r n = 10) (hv : ∀ n, sys.v n = 5)
    (ht : ∀ i n, sys.t i n = 1) (hβ : ∀ i n, sys.β i n = 1)
    (Z : Profile 4 0) (hX : (fun n => (Z n).X) = ![3, 1, 0, 0])
    (D : Demand 4) (hD : D = ![0, 0, 5, 2]) :
    coalitionValue sys Finset.univ Z D = 16 ∧
    coalitionValue sys {0, 3} Z D = 8 ∧
    (![0, 0, 16, 0] : Fin 4 → ℝ) ∉ 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, Example 1
Read-back

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

Setting. Consider any system with 444 retailers, indexed 0,1,2,30,1,2,30,1,2,3, and no warehouses. Assume rn=10r_n=10rn​=10 and vn=5v_n=5vn​=5 for all nnn, and ti,n=1t_{i,n}=1ti,n​=1 and βi,n=1\beta_{i,n}=1βi,n​=1 for all locations iii and retailers nnn (including i=ni=ni=n). The costs cnc_ncn​ are unconstrained. Every margin is therefore rn−vi−ti,n=4r_n-v_i-t_{i,n}=4rn​−vi​−ti,n​=4.

Let ZZZ be any profile whose local stocks are (X0,X1,X2,X3)=(3,1,0,0)(X_0,X_1,X_2,X_3)=(3,1,0,0)(X0​,X1​,X2​,X3​)=(3,1,0,0). With no warehouses there are no claims. Let the demand be D=(0,0,5,2)D=(0,0,5,2)D=(0,0,5,2). Then

H=(3,1,0,0),E=(0,0,5,2).H=(3,1,0,0),\qquad E=(0,0,5,2).H=(3,1,0,0),E=(0,0,5,2).

Conclusion. The statement asserts all three of the following:

  1. W{0,1,2,3}∗(Z,D)=16W^*_{\{0,1,2,3\}}(Z,D)=16W{0,1,2,3}∗​(Z,D)=16;
  2. W{0,3}∗(Z,D)=8W^*_{\{0,3\}}(Z,D)=8W{0,3}∗​(Z,D)=8;
  3. the vector (0,0,16,0)(0,0,16,0)(0,0,16,0) is not in Core({0,1,2,3}, S↦WS∗(Z,D))\mathrm{Core}\big(\{0,1,2,3\},\,S\mapsto W^*_S(Z,D)\big)Core({0,1,2,3},S↦WS∗​(Z,D)).

Here WS∗W^*_SWS∗​ is the maximal shipping profit of retailer set SSS (the real supremum of the profit ∑j,n∈S4 qj,n\sum_{j,n\in S}4\,q_{j,n}∑j,n∈S​4qj,n​) over plans satisfying:

  • q≥0q\ge0q≥0;
  • qj,n=0q_{j,n}=0qj,n​=0 unless j,n∈Sj,n\in Sj,n∈S;
  • ∑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;
  • ∑j∈Sqj,n≤En\sum_{j\in S}q_{j,n}\le E_n∑j∈S​qj,n​≤En​ for n∈Sn\in Sn∈S.

Core\mathrm{Core}Core is an imported definition whose text is not part of the code shown. It is applied to the ground set of all four retailers and the characteristic function S↦WS∗(Z,D)S\mapsto W^*_S(Z,D)S↦WS∗​(Z,D).

Degenerate cases. The hypotheses are jointly satisfiable, so the claim is not vacuous. Indices in the vectors are 000-based. The costs cnc_ncn​ play no role. All warehouse terms are empty.

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