Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7 — every node-weighted tree has a node v₀ whose removal leaves components of weight ≤ W/2

Proved
RegMatroidXC.Main.lemma_7

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

graph-theoryp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1trees

Let TTT be a finite tree with node weights w:V(T)→Rw : V(T) \to \mathbb Rw:V(T)→R and total weight W=∑vw(v)W = \sum_{v} w(v)W=∑v​w(v). Then there is a node v0v_0v0​ such that every connected component KKK of T−v0T - v_0T−v0​ satisfies

∑v∈Kw(v)≤W2.\sum_{v \in K} w(v) \le \frac W2 .v∈K∑​w(v)≤2W​.

In the proof of Lemma 4 this node is the centre of the star decomposition.

Formalization Note The weights are arbitrary reals (the paper's proof does not use nonnegativity). For a one-node tree, T−v0T - v_0T−v0​ has no components and the statement holds trivially.

Preamble
import Mathlib
Formal statement
namespace RegMatroidXC.Main

open Classical in
theorem lemma_7 {V : Type} [Fintype V] (T : SimpleGraph V) (hT : T.IsTree) (w : V → ℝ) :
    ∃ v₀ : V, ∀ c : (T.induce ({v₀}ᶜ : Set V)).ConnectedComponent,
      (∑ v : ({v₀}ᶜ : Set V),
          if (T.induce ({v₀}ᶜ : Set V)).connectedComponentMk v = c then w v else 0)
        ≤ (∑ v, w v) / 2 := by sorry

end RegMatroidXC.Main
Source
Aprile & Fiorini, Regular Matroids Have Polynomial Extension Complexity, arXiv:1909.08539v2, p. 3, Lemma 7
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

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