Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4, p. 14 — G_{n,p} contains a spanning regular subgraph of degree about pn − C_reg,1 √(n log n) w.h.p.

Proved
LPCommunity.SBMRecovery.proposition_4

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

erdos-renyip2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1random-graphsregular-graphs

There is a constant Creg,1>0C_{\mathrm{reg},1}>0Creg,1​>0 such that for every p∈(0,1)p\in(0,1)p∈(0,1) the following holds. Let G∼Gn,pG\sim\mathcal G_{n,p}G∼Gn,p​ and

dreg=pn−Creg,1nlog⁡n.d_{\mathrm{reg}}=pn-C_{\mathrm{reg},1}\sqrt{n\log n}.dreg​=pn−Creg,1​nlogn​.

Then, with probability tending to 111 as n→∞n\to\inftyn→∞, GGG contains a spanning subgraph HHH (same node set, H⊆GH\subseteq GH⊆G) in which every node has degree 2⌈dreg/2⌉2\lceil d_{\mathrm{reg}}/2\rceil2⌈dreg​/2⌉, the least even integer ≥dreg\ge d_{\mathrm{reg}}≥dreg​.

In the proof of Theorem 6 this is applied to the two communities G1,G2G_1,G_2G1​,G2​ (each an Erdős–Rényi graph on n/2n/2n/2 nodes): one may delete edges inside each community to make both regular of the same degree, about pn/2pn/2pn/2, as Theorem 4 requires.

Formalization Note The printed dregd_{\mathrm{reg}}dreg​ is in general not an integer. The proof (p. 24) says "without loss of generality, we may suppose dregd_{\mathrm{reg}}dreg​ is even"; the statement is posed with the explicit even integer 2⌈dreg/2⌉2\lceil d_{\mathrm{reg}}/2\rceil2⌈dreg​/2⌉, which also makes a regular graph possible on an odd number of nodes, and gives one degree that serves both communities. The constant is chosen before ppp, as printed.

Preamble
import Mathlib
import Definitions.Def_LPCommunity_SBMRecovery_Setting

open Finset Filter Topology
open scoped Classical
Formal statement
namespace LPCommunity.SBMRecovery

/-- Proposition 4 (p. 14): there is `C_reg,1 > 0` such that for every `p ∈ (0,1)`, with high
probability `G ∼ G_{n,p}` contains a spanning regular subgraph of degree `2⌈d_reg/2⌉` (the least even
integer `≥ d_reg`), `d_reg = pn − C_reg,1 √(n log n)`. -/
theorem proposition_4 :
    ∃ C : ℝ, 0 < C ∧ ∀ p : ℝ, 0 < p → p < 1 →
      Tendsto (fun n : ℕ => erProb n p (fun G =>
        ∃ H : SimpleGraph (Fin n), H ≤ G ∧
          ∀ v, (H.degree v : ℤ) = 2 * ⌈(p * n - C * Real.sqrt (n * Real.log n)) / 2⌉))
        atTop (𝓝 1) := by sorry

end LPCommunity.SBMRecovery
Source
Del Pia, Khajavirad, Kunisky, Linear Programming and Community Detection, arXiv:2006.03213v2, p. 14, Proposition 4 (proof in §5.2, pp. 24–26)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

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