Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 18: weighted count of a fixed ttt-matching against cross-dependent nested families

Proved
FranklKupavskii2022.EMC.fixed_matching_bound

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

extremal-set-theoryp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let s∈Ns\in\mathbb Ns∈N, let x,qx,qx,q be reals with 1≤x≤s+11\le x\le s+11≤x≤s+1 and 1≤q≤s+11\le q\le s+11≤q≤s+1, and let t∈Nt\in\mathbb Nt∈N with t≥s+x+1t\ge s+x+1t≥s+x+1. Let F1,…,Fs+1⊆(Yl)\mathcal F_1,\dots,\mathcal F_{s+1}\subseteq\binom YlF1​,…,Fs+1​⊆(lY​) be cross-dependent and nested, with ∣Y∣≥tl|Y|\ge tl∣Y∣≥tl, and fix a ttt-matching B=(B1,…,Bt)\mathcal B=(B_1,\dots,B_t)B=(B1​,…,Bt​) of lll-element subsets of YYY. Write ∣B∩Fi∣|\mathcal B\cap\mathcal F_i|∣B∩Fi​∣ for the number of jjj with Bj∈FiB_j\in\mathcal F_iBj​∈Fi​ and W=∑i=1s∣B∩Fi∣+q∣B∩Fs+1∣W=\sum_{i=1}^s|\mathcal B\cap\mathcal F_i|+q|\mathcal B\cap\mathcal F_{s+1}|W=∑i=1s​∣B∩Fi​∣+q∣B∩Fs+1​∣. Then

W≤st+q∣B∩Fs+1∣−sxif ∣B∩Fs+1∣≥x,(30)W\le st+q|\mathcal B\cap\mathcal F_{s+1}|-sx\quad\text{if } |\mathcal B\cap\mathcal F_{s+1}|\ge x, \tag{30}W≤st+q∣B∩Fs+1​∣−sxif ∣B∩Fs+1​∣≥x,(30) W≤st−∣B∩Fs+1∣(x−q∣B∩Fs+1∣s+1)if ∣B∩Fs+1∣≤x.(31)W\le st-|\mathcal B\cap\mathcal F_{s+1}|\Big(x-\frac{q|\mathcal B\cap\mathcal F_{s+1}|}{s+1}\Big)\quad\text{if } |\mathcal B\cap\mathcal F_{s+1}|\le x. \tag{31}W≤st−∣B∩Fs+1​∣(x−s+1q∣B∩Fs+1​∣​)if ∣B∩Fs+1​∣≤x.(31)

This deterministic bound is averaged over a random matching in the proof of Lemma 15.

Formalization Note The matching is an ordered tuple of pairwise disjoint lll-sets; the intersection sizes count positions.

Preamble
import Mathlib
import Definitions.Def_FranklKupavskii2022_EMC_tMatchings
import Definitions.Def_FranklKupavskii2022_EMC_CrossDependent
import Definitions.Def_FranklKupavskii2022_EMC_Nested
Formal statement
namespace FranklKupavskii2022.EMC

/-- Lemma 18 (Frankl–Kupavskii, arXiv:1806.08855v3, p. 11): let `1 ≤ x, q ≤ s + 1` and
`t ≥ s + x + 1`, `t ∈ ℕ`. Let the families `F_1, …, F_{s+1} ⊂ \binom{Y}{l}` be cross-dependent and
nested, and suppose that `|Y| ≥ tl`. Fix any `t`-matching `B` of `l`-element sets in `Y`. Then
`|B ∩ F_1| + … + |B ∩ F_s| + q|B ∩ F_{s+1}| ≤ st + q|B ∩ F_{s+1}| − sx` (30) for
`|B ∩ F_{s+1}| ≥ x`, and
`|B ∩ F_1| + … + |B ∩ F_s| + q|B ∩ F_{s+1}| ≤ st − |B ∩ F_{s+1}|(x − q|B ∩ F_{s+1}|/(s+1))` (31)
for `|B ∩ F_{s+1}| ≤ x`.

**Formalization Note.** `x, q` are real; "1 ≤ x, q ≤ s + 1" is read as `1 ≤ x ≤ s + 1` and
`1 ≤ q ≤ s + 1`. The families are `Fam 1, …, Fam (s + 1)`. The matching is an ordered tuple
`B : Fin t → Finset ℕ` of pairwise disjoint `l`-subsets of `Y`, and `|B ∩ F_i|` is `eta (Fam i) B`,
the number of positions `j` with `B_j ∈ F_i` (for `l ≥ 1` the `B_j` are distinct, so this is the
size of the set intersection). -/
theorem fixed_matching_bound (s t l : ℕ) (x q : ℝ) (hx1 : 1 ≤ x) (hx2 : x ≤ s + 1) (hq1 : 1 ≤ q)
    (hq2 : q ≤ s + 1) (ht : (s : ℝ) + x + 1 ≤ t) (Y : Finset ℕ) (Fam : ℕ → Finset (Finset ℕ))
    (hFam : ∀ i ∈ Finset.Icc 1 (s + 1), Fam i ⊆ Y.powersetCard l)
    (hcross : CrossDependent s Fam) (hnest : Nested s Fam) (hY : t * l ≤ Y.card)
    (B : Fin t → Finset ℕ) (hB : ∀ j, B j ∈ Y.powersetCard l)
    (hBdisj : ∀ i j : Fin t, i ≠ j → Disjoint (B i) (B j)) :
    (x ≤ (eta (Fam (s + 1)) B : ℝ) →
        ∑ i ∈ Finset.Icc 1 s, (eta (Fam i) B : ℝ) + q * eta (Fam (s + 1)) B ≤
          s * t + q * eta (Fam (s + 1)) B - s * x) ∧
      ((eta (Fam (s + 1)) B : ℝ) ≤ x →
        ∑ i ∈ Finset.Icc 1 s, (eta (Fam i) B : ℝ) + q * eta (Fam (s + 1)) B ≤
          s * t - eta (Fam (s + 1)) B * (x - q * eta (Fam (s + 1)) B / (s + 1))) := by sorry

end FranklKupavskii2022.EMC
Source
Frankl–Kupavskii, The Erdős Matching Conjecture and concentration inequalities, arXiv:1806.08855v3, Lemma 18, p. 11
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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