Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Display (19), p. 12 — the triangle sums of x̃ are at most (3/2)(ρ_max + c)/(ρ_avg + c(1 − 1/n))

Proved
LPCommunity.LPFail.display_19

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

community-detectiongraph-distancelinear-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let G=(V,E)G=(V,E)G=(V,E) be a connected graph on n≥5n\ge 5n≥5 nodes, with diameter ρmax⁡(G)\rho_{\max}(G)ρmax​(G), average distance ρavg(G)\rho_{\mathrm{avg}}(G)ρavg​(G), constant c(G)c(G)c(G) of (17), and let x~\tilde xx~ be the point of the proof of Theorem 5. Then for all 1≤i<j<k≤n1\le i<j<k\le n1≤i<j<k≤n,

x~ij+x~ik+x~jk≤32⋅ρmax⁡(G)+c(G)ρavg(G)+c(G)(1−1n).\tilde x_{ij}+\tilde x_{ik}+\tilde x_{jk}\le\frac32\cdot\frac{\rho_{\max}(G)+c(G)}{\rho_{\mathrm{avg}}(G)+c(G)(1-\frac1n)}.x~ij​+x~ik​+x~jk​≤23​⋅ρavg​(G)+c(G)(1−n1​)ρmax​(G)+c(G)​.

This is the first step of checking that x~\tilde xx~ satisfies the constraints (2) of (LP-P); the choice of c(G)c(G)c(G) then makes the right-hand side at most 222.

Formalization Note The diameter enters through its real value, finite for a connected graph.

Preamble
import Mathlib
import Definitions.Def_LPCommunity_LPFail_Setting
import Definitions.Def_LPCommunity_LPFail_XTilde

open Finset
open scoped Classical ENNReal
Formal statement
namespace LPCommunity.LPFail
theorem display_19 {n : ℕ} (G : SimpleGraph (Fin n)) (hconn : G.Connected) (hn : 5 ≤ n)
    (i j k : Fin n) (hij : i < j) (hjk : j < k) :
    xTilde G i j + xTilde G i k + xTilde G j k ≤
      3 / 2 * ((((rhoMax G : ℕ∞) : ℝ≥0∞).toReal + cG G) /
        ((rhoAvg G).toReal + cG G * (1 - 1 / (n : ℝ)))) := by sorry
end LPCommunity.LPFail
Source
Del Pia, Khajavirad, Kunisky, Linear Programming and Community Detection, arXiv:2006.03213v2, p. 12, §3.2, proof of Theorem 5, display (19)
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