Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 18 companion, p. 22 — NonMarginals after ShiftProjectUnshift keeps partial allocations non-negative

Proved
ProductMixAuction.Allocate.lemma_18_nonMarginals_nonneg

by tianyipeng · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

allocation-algorithmproduct-mix-auctionstrong-substitutes

Let A=[p,(Bj)j∈J,(mj)j∈J,r]A=[p,(\mathcal B^j)_{j\in J},(m^j)_{j\in J},r]A=[p,(Bj)j∈J​,(mj)j∈J​,r] be an allocation problem in the sense of Definition 4 (p. 15) with integral bids and an integral price ppp, in which every bid is marginal at ppp. This is the state in which Allocate calls ShiftProjectUnshift, right after NonMarginals. Let i∗∈[n]0i^*\in[n]_0i∗∈[n]0​ be a cycle-link good with an incident cycle edge labelled j∗j^*j∗, and let the SFM oracle return a minimiser of every submodular set function. Let

A′′=ShiftProjectUnshift(A,i∗,j∗)A''=\mathrm{ShiftProjectUnshift}(A,i^*,j^*)A′′=ShiftProjectUnshift(A,i∗,j∗)

be the output of Algorithm 5 (p. 22), and let NonMarginals(A′′)\mathrm{NonMarginals}(A'')NonMarginals(A′′) be the output of the NonMarginals call that follows it in the same loop iteration of Algorithm 1 (p. 14). Then the partial allocations of NonMarginals(A′′)\mathrm{NonMarginals}(A'')NonMarginals(A′′) are non-negative:

mi′j ≥ 0for all j∈J, i∈[n]0.m'^j_i\ \ge\ 0\qquad\text{for all } j\in J,\ i\in[n]_0 .mi′j​ ≥ 0for all j∈J, i∈[n]0​.

Algorithm 1 tacitly needs this so that the problem obtained after each loop iteration is again an allocation problem: Definition 4 requires mj∈Z+n+1m^j\in\mathbb Z_+^{n+1}mj∈Z+n+1​. Lemma 11 alone does not guarantee it (see ProductMixAuction.Allocate.lemma_11_nonneg). The statement says that the bids which ShiftProjectUnshift turns non-marginal at ppp, and which NonMarginals then accepts, contribute a non-negative bundle to each bidder. This parallels the second claim of Lemma 13 (p. 21), that after the shift each bidder demands only bundles it already demanded at ppp.

Formalization Note The hypotheses are those of the milestone ProductMixAuction.Allocate.lemma_18, together with the marginality of all bids, which holds whenever Allocate calls ShiftProjectUnshift.

Preamble
import Mathlib
import Definitions.Def_ProductMixAuction_Allocate_Algorithm
Formal statement
namespace ProductMixAuction.Allocate

theorem lemma_18_nonMarginals_nonneg {n : ℕ} {J : Type*} [Fintype J] [DecidableEq J]
    (A : AllocProblem n J) (hA : IsAllocProblem A)
    (hmarg : ∀ j, ∀ b ∈ A.B j, IsMarginalBid b A.p)
    (hbint : ∀ j, ∀ b ∈ A.B j, ∀ k, ∃ z : ℤ, b.v k = z)
    (hpint : ∀ i, ∃ z : ℤ, A.p i = z)
    (istar : Fin (n + 1)) (jstar : J) (hcyc : IsCycleLink A istar jstar)
    (sfm : SFMOracle n) (hsfm : SfmAdmissible sfm) :
    ∀ j k, 0 ≤ (nonMarginals (shiftProjectUnshift sfm A istar jstar)).m j k := by sorry

end ProductMixAuction.Allocate
Source
Baldwin, Goldberg, Klemperer, Lock, Solving Strong-Substitutes Product-Mix Auctions, arXiv:1909.07313v3, p. 22, Algorithm 5 and Lemma 18 (ShiftProjectUnshift), p. 14 Algorithm 1 (loop: ShiftProjectUnshift followed by NonMarginals), p. 21 Lemma 13 (demand after shifting is a subset of demand at p), Definition 4 p. 15 (m^j in Z_+^{n+1})

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