Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Dense bipartite graph has many high-degree vertices

Proved
Finset.graph_high_degree_subset_lb

by mysticflounder · Sep 17, 2026 · Mathlib 0df444a (Lean v4.33.1)

additive-combinatoricsbalog-szemeredi-gowersdegree-regularizationgraphs

Let 0<δ≤10 < \delta \le 10<δ≤1 and let A,BA, BA,B be finite sets with AAA nonempty and ∣A∣=∣B∣|A| = |B|∣A∣=∣B∣. Let E⊆A×BE \subseteq A \times BE⊆A×B satisfy

∣E∣≥δ ∣A∣ ∣B∣.|E| \ge \delta\,|A|\,|B|.∣E∣≥δ∣A∣∣B∣.

Write d(a)=#{b∈B:(a,b)∈E}d(a) = \#\{b \in B : (a,b) \in E\}d(a)=#{b∈B:(a,b)∈E} for the degree of aaa. Then the set of high-degree left vertices A≥={a∈A:d(a)≥δ2 ∣B∣}A_{\ge} = \{a \in A : d(a) \ge \tfrac{\delta}{2}\,|B|\}A≥​={a∈A:d(a)≥2δ​∣B∣} satisfies

∣A≥∣≥δ2 ∣A∣,|A_{\ge}| \ge \tfrac{\delta}{2}\,|A|,∣A≥​∣≥2δ​∣A∣,

and moreover the edges incident to A≥A_{\ge}A≥​ still form a constant fraction of all pairs:

#{(a,b)∈E:d(a)≥δ2 ∣B∣}≥δ2 ∣A∣ ∣B∣.\#\{(a,b) \in E : d(a) \ge \tfrac{\delta}{2}\,|B|\} \ge \tfrac{\delta}{2}\,|A|\,|B|.#{(a,b)∈E:d(a)≥2δ​∣B∣}≥2δ​∣A∣∣B∣.

This is the standard degree-regularization (Markov-type) lemma: pruning low-degree vertices from a dense bipartite graph preserves both a large vertex set and a dense edge set. In the BSG project it is used to pass to a minimum-degree subgraph before applying dependent random choice.

Preamble
import Mathlib

open scoped Pointwise
Formal statement
theorem Finset.graph_high_degree_subset_lb {G : Type*} [DecidableEq G]
    (δ : ℝ) (hδ_pos : 0 < δ) (_hδ_le : δ ≤ 1)
    (A B : Finset G) (hA : A.Nonempty) (hAB : A.card = B.card)
    (E : Finset (G × G)) (hE_sub : E ⊆ A ×ˢ B)
    (hE_dense : δ * (A.card : ℝ) * (B.card : ℝ) ≤ (E.card : ℝ)) :
    (δ / 2) * (A.card : ℝ) ≤
      ((A.filter (fun a ↦
        (δ / 2) * (B.card : ℝ) ≤
          ((B.filter (fun b ↦ (a, b) ∈ E)).card : ℝ))).card : ℝ) ∧
    (δ / 2) * (A.card : ℝ) * (B.card : ℝ) ≤
      ((E.filter (fun p : G × G ↦
        (δ / 2) * (B.card : ℝ) ≤
          ((B.filter (fun b ↦ (p.1, b) ∈ E)).card : ℝ))).card : ℝ) := by sorry
Source
Degree-regularization step (the set A_1) inside the proof of Fox-Sudakov, Dependent random choice, Random Structures & Algorithms 38 (2011) 68-99, Lemma 5.2 (p. 9). Not separately stated in the cited work. Formalized in https://github.com/mysticflounder/lean-formalizations/blob/dd46c17a2a034d7bfa0df02e7f77834d35592864/lean/LeanFormalizations/Combinatorics/Additive/BalogSzemerediGowers.lean#L1152-L1273
Human review
  • Endorsed by Shuze Chen · Sep 18, 2026

  • Endorsed by mysticflounder · Sep 18, 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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me