Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Claim 1, p. 5 — changing one list changes the cardinality of the resulting matching by at most one

Proved
RandomListsMatching.Concentration.claim1_one_list_stability

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

bounded-differencesonline-matchingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1random-lists

Let AAA be a set of advertisers and let (l1,…,ln)(l_1, \dots, l_n)(l1​,…,ln​) and (l1′,…,ln′)(l'_1, \dots, l'_n)(l1′​,…,ln′​) be two sequences of lists of advertisers that differ in at most one position ttt, that is, lj=lj′l_j = l'_jlj​=lj′​ for all j≠tj \ne tj=t. Run the list-greedy rule of the Random Lists Algorithms on each: every request is assigned to the first not-yet-matched advertiser of its list, or dropped if there is none. Then the cardinalities of the two resulting matchings differ by at most one:

∣alg(l1,…,ln)−alg(l1′,…,ln′)∣≤1.\bigl|\mathrm{alg}(l_1, \dots, l_n) - \mathrm{alg}(l'_1, \dots, l'_n)\bigr| \le 1 .​alg(l1​,…,ln​)−alg(l1′​,…,ln′​)​≤1.

This is the bounded-difference property that makes McDiarmid's inequality applicable to ALG as a function of the i.i.d. lists, and so yields Lemma 1.

Formalization Note The statement concerns arbitrary list sequences; no graph and no interestedness of the lists is needed. The difference is taken in Z\mathbb ZZ.

Preamble
import Mathlib
import Definitions.Def_RandomListsMatching_Concentration_Setting
Formal statement
namespace RandomListsMatching.Concentration

/-- **Claim 1** (Jaillet & Lu, accepted manuscript (rev. June 2013), §2, p. 5). If two
realizations of the lists differ only in the list of request `t`, the cardinalities of their
resulting matchings differ by at most one. -/
theorem claim1_one_list_stability {A : Type} [DecidableEq A] {n : ℕ} (ls ls' : Fin n → List A)
    (t : Fin n) (hdiff : ∀ j, j ≠ t → ls j = ls' j) :
    |(algValue ls : ℤ) - (algValue ls' : ℤ)| ≤ 1 := by sorry

end RandomListsMatching.Concentration
Source
Jaillet & Lu, Online Stochastic Matching: New Algorithms with Better Bounds, accepted manuscript (rev. June 2013), p. 5, Claim 1
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 10, 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