Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.1 — one step of Rule(n_A, n_B, k) with n_A ≤ n_B preserves the stack ordering (3.1)

Proved
PowerOfDUniversality.Fluid.proposition_3_1

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

couplingload-balancingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1stochastic-ordering

Let AAA and BBB be two ensembles of N≥1N\ge 1N≥1 stacks with maximum height b≥1b\ge 1b≥1: occupancy vectors QA,QB\mathbf Q^A,\mathbf Q^BQA,QB of NNN servers with buffer bbb (with Q0≡NQ_0\equiv NQ0​≡N) together with counts LA,LBL^A,L^BLA,LB of discarded items. Suppose they are ordered as in (3.1):

∑i=mbQiA+LA≤∑i=mbQiB+LBfor every m≥1.\sum_{i=m}^{b}Q^A_i+L^A\le\sum_{i=m}^{b}Q^B_i+L^B\qquad\text{for every } m\ge 1 .i=m∑b​QiA​+LA≤i=m∑b​QiB​+LBfor every m≥1.

Apply one step of Rule(nA,nB,k)\mathrm{Rule}(n_A,n_B,k)Rule(nA​,nB​,k) with nA≤nBn_A\le n_BnA​≤nB​:

  1. either an item is removed from the kkk-th ordered stack of both ensembles (1≤k≤N1\le k\le N1≤k≤N; nothing happens to an empty stack), by (3.2);
  2. or an item is added to the nAn_AnA​-th ordered stack of AAA and to the nBn_BnB​-th ordered stack of BBB (1≤nA≤nB≤N1\le n_A\le n_B\le N1≤nA​≤nB​≤N), and discarded into LLL if that stack is full, by (3.3).

Then the updated ensembles again satisfy (3.1) for every m≥1m\ge 1m≥1.

Iterating, the ordering is preserved at every step whenever the rule is followed with nA≤nBn_A\le n_BnA​≤nB​. This deterministic statement is the engine of the stochastic comparisons of §3.2.

Formalization Note The printed statement says "for all m≤bm\le bm≤b". For finite bbb the proof uses (3.5) at m+1=b+1m+1=b+1m+1=b+1, i.e. LA≤LBL^A\le L^BLA≤LB, and without it the claim fails at m=bm=bm=b (one stack, b=1b=1b=1, Q1A=0Q^A_1=0Q1A​=0, LA=1L^A=1LA=1, Q1B=1Q^B_1=1Q1B​=1, LB=0L^B=0LB=0, a removal). The formal statement therefore orders all levels m≥1m\ge 1m≥1, where for m>bm>bm>b the sums are empty; in every application LA(0)=LB(0)=0L^A(0)=L^B(0)=0LA(0)=LB(0)=0, so the extra levels hold at time 000.

Preamble
import Mathlib
import Definitions.Def_PowerOfDUniversality_Fluid_Model
import Definitions.Def_PowerOfDUniversality_Fluid_FluidSpace

open MeasureTheory ProbabilityTheory Filter Topology
open scoped ENNReal NNReal
Formal statement
namespace PowerOfDUniversality.Fluid

/-- **Proposition 3.1** (p. 11, deterministic stack ordering). Let `A` and `B` be ensembles of
`N` stacks with maximum height `b` (occupancy vectors plus discarded items) that are ordered as
in (3.1): `∑_{i=m}^{b} Q^A_i + L^A ≤ ∑_{i=m}^{b} Q^B_i + L^B` for every `m ≥ 1`. After one step of
`Rule(n_A, n_B, k)` with `n_A ≤ n_B` (an item removed from the `k`-th ordered stack of both, or an
item added to the `n_A`-th ordered stack of `A` and the `n_B`-th of `B`), the ordering still
holds for every `m ≥ 1`. -/
theorem proposition_3_1 (N : ℕ) (hN : 1 ≤ N) (b : ℕ∞) (hb : 1 ≤ b) (A B : Ensemble)
    (hA : IsOccupancy N b A.Q) (hB : IsOccupancy N b B.Q) (hAB : StackOrdered A B) :
    (∀ k : ℕ, 1 ≤ k → k ≤ N → StackOrdered (removeItem N k A) (removeItem N k B)) ∧
    (∀ nA nB : ℕ, 1 ≤ nA → nA ≤ nB → nB ≤ N →
      StackOrdered (addItem N b nA A) (addItem N b nB B)) := by sorry

end PowerOfDUniversality.Fluid
Source
Mukherjee, Borst, van Leeuwaarden & Whiting, Universality of Power-of-d Load Balancing in Many-Server Systems, arXiv:1612.00723v2, pp. 10–12, Proposition 3.1, (3.1)–(3.3), Rule(n_A, n_B, k)
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