Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 8.6.2 — some endpoint lies in at least n/2d of n pairwise intersecting d-intervals

Proved
MatousekLP.DIntervals.exists_endpoint_in_many

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

combinatoricscountingd-intervalsp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1

Let d≥1d \ge 1d≥1 and n≥1n \ge 1n≥1, and let J1,J2,…,JnJ_1, J_2, \dots, J_nJ1​,J2​,…,Jn​ be ddd-intervals (a finite sequence, so repetitions are allowed) such that Ji∩Jj≠∅J_i \cap J_j \ne \emptysetJi​∩Jj​=∅ for all i,j∈{1,…,n}i, j \in \{1,\dots,n\}i,j∈{1,…,n}. Then there is an index iii and an endpoint ppp of JiJ_iJi​ such that

∣{ j∈{1,…,n}:p∈Jj }∣  ≥  n2d.\bigl|\{\, j \in \{1,\dots,n\} : p \in J_j \,\}\bigr| \;\ge\; \frac{n}{2d}.​{j∈{1,…,n}:p∈Jj​}​≥2dn​.

This is the counting step behind the section's capstone: in a pairwise intersecting sequence, a single endpoint is covered by a fixed fraction 1/2d1/2d1/2d of the members. Allowing repetitions is what later lets rational weights be replaced by multiplicities.

Formalization Note The sequence is indexed by Fin n (the book's 1,…,n1,\dots,n1,…,n are 0, …, n-1). The count is the number of indices jjj, counted with repetitions, and n/2dn/2dn/2d is real division. The hypothesis n≥1n \ge 1n≥1 is implicit in the book's J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​ and is stated explicitly, since with n=0n = 0n=0 there is no endpoint at all.

Preamble
import Mathlib
import Definitions.Def_MatousekLP_DIntervals_DInterval

open Finset
Formal statement
namespace MatousekLP.DIntervals

open Classical in
/-- Lemma 8.6.2 (p. 179): if `J_1, …, J_n` (`n ≥ 1`, repetitions allowed) are `d`-intervals with
`J_i ∩ J_j ≠ ∅` for all `i, j`, then some endpoint `p` of some `J_i` lies in at least `n / 2d`
of the `J_j`. Indices `1, …, n` are `0, …, n-1`. -/
theorem exists_endpoint_in_many {d n : ℕ} (hd : 1 ≤ d) (hn : 0 < n) (J : Fin n → DInterval d)
    (hJ : ∀ i j, ((J i).toSet ∩ (J j).toSet).Nonempty) :
    ∃ i : Fin n, ∃ p ∈ (J i).endpoints,
      (n : ℝ) / (2 * d) ≤ ((univ.filter fun j => p ∈ (J j).toSet).card : ℝ) := by sorry

end MatousekLP.DIntervals
Source
Matoušek & Gärtner, Understanding and Using Linear Programming, Springer 2007, p. 179, Lemma 8.6.2
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me