Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The inhomogeneous random bipartite compatibility graph is almost surely eventually connected

Proved
StrictCompatLB.FullInhomogeneous.random_graph_eventually_connected_ae

by Nickrobbins95 · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

load-balancingrandom-graphsstrict-compatibility

Let MN≥1M_N\ge 1MN​≥1 dispatchers and NNN servers, where each server-dispatcher pair (v,w)(v,w)(v,w) is an edge independently with probability pw(N)∈(0,1]p_w(N)\in(0,1]pw​(N)∈(0,1], and let pˉ(N)=min⁡wpw(N)\bar p(N)=\min_w p_w(N)pˉ​(N)=minw​pw​(N). Assume (H.1) Npˉ(N)/(log⁡MN+log⁡N)→∞N\bar p(N)/(\log M_N+\log N)\to\inftyNpˉ​(N)/(logMN​+logN)→∞ and (H.3) log⁡NMN2∑wpw(N)−2→0\frac{\log N}{M_N^2}\sum_w p_w(N)^{-2}\to 0MN2​logN​∑w​pw​(N)−2→0. If the random adjacency matrices XNX_NXN​ on a common probability space have these laws, then almost surely the bipartite compatibility graph GNG_NGN​ is connected for all sufficiently large NNN.

Preamble
import Mathlib
import Definitions.Def_StrictCompatLB_Inhomogeneous_RandomGraph
import Definitions.Def_StrictCompatLB_MeanField_GraphConditions

open MeasureTheory Filter Topology
open StrictCompatLB.MeanField StrictCompatLB.Inhomogeneous
open scoped ENNReal NNReal
Formal statement
namespace StrictCompatLB.FullInhomogeneous

theorem random_graph_eventually_connected_ae (M : ℕ → ℕ) (hM : ∀ N, 0 < M N)
    (p : (N : ℕ) → Fin (M N) → ℝ)
    (hp_pos : ∀ N w, 0 < p N w) (hp_le : ∀ N w, p N w ≤ 1)
    (h1 : Tendsto (fun N : ℕ =>
      (N : ℝ) / (Real.log (M N) + Real.log N) * minEdgeProb M p N) atTop atTop)
    (h3 : Tendsto (fun N : ℕ =>
      Real.log N / (M N : ℝ) ^ 2 * ∑ w : Fin (M N), 1 / (p N w) ^ 2) atTop (𝓝 0))
    {Ω : Type*} [MeasurableSpace Ω] (P₀ : Measure Ω) [IsProbabilityMeasure P₀]
    (X : (N : ℕ) → Ω → (Fin N × Fin (M N) → Bool))
    (hX_meas : ∀ N, Measurable (X N))
    (hX_law : ∀ N, P₀.map (X N) = edgeLaw M p N) :
    ∀ᵐ ω ∂P₀, ∃ N₀ : ℕ, ∀ N ≥ N₀,
      (compatGraph M (fun N => graphOf (X N ω)) N).Connected := by sorry

end StrictCompatLB.FullInhomogeneous
Source
D. Rutten, D. Mukherjee, Load Balancing Under Strict Compatibility Constraints, https://arxiv.org/abs/2008.07562, Theorem 3.6 p. 14 (G_N connected for all large N, almost surely, under (H.1)-(H.3)) and Appendix B p. 35; proof: every dispatcher has a neighbour and every two servers share a dispatcher (union bound, P <= N^2 exp(-sum_w p_w^2) + M exp(-N pbar) <= 2/N^2 using Cauchy-Schwarz with (H.3) and (H.1)), then the first Borel-Cantelli lemma (R. Durrett, Probability: Theory and Examples, 5th ed., Theorem 2.3.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