Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 777

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

If F\mathcal{F} is a family of subsets of {1,…,n}\{1,\ldots,n\} then we write GFG_{\mathcal{F}} for the graph on F\mathcal{F} where A∼BA\sim B if AA and BB are comparable - that is, A⊆BA\subseteq B or vice versa.

Is it true that, if ϵ>0\epsilon>0 and nn is sufficiently large, whenever m≤(2−ϵ)2n/2m\leq (2-\epsilon)2^{n/2} the graph GFG_\mathcal{F} has <2n<2^{n} many edges?

A problem of Daykin and Erdős [Gu83]; here m=∣F∣m=\lvert\mathcal{F}\rvert. The answer is yes, which follows from Theorem 1.4 and Corollary 1.5 of Alon, Das, Glebov, and Sudakov [ADGS15].

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:question, formal_proof
Cite as:NS.03158 [math.CO] · NS.03158v1 for this version
Declaration:Erdos777.erdos_777.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:65a3ef6c6bbb20fec62bc923d6a2e51b98955ab82863b278e200a45efec58e82
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/777.lean

Formal statement

theorem erdos_777.parts.i :
    ∀ ε : ℝ, 0 < ε → ∃ n₀ : ℕ, ∀ n : ℕ, n₀ ≤ n → ∀ 𝓕 : Finset (Finset (Fin n)),
      (𝓕.card : ℝ) ≤ (2 - ε) * (2 : ℝ) ^ ((n : ℝ) / 2) → comparableEdges 𝓕 < 2 ^ n
Show the full Challenge.lean (119 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 777

*References:*
- [erdosproblems.com/777](https://www.erdosproblems.com/777)
- [Gu83] Guy, R. K., *A miscellany of Erdős problems*. Amer. Math. Monthly (1983), 118-120.
- [AlFr85] Alon, N. and Frankl, P., *The maximum number of disjoint pairs in a family of
  subsets*. Graphs Combin. (1985), 13-21.
- [ADGS15] Alon, N., Das, S., Glebov, R. and Sudakov, B., *Comparable pairs in families of
  sets*. J. Combin. Theory Ser. B (2015), 164-185. [arXiv](https://arxiv.org/abs/1411.4196)
-/

@[expose] public section

namespace Erdos777

/-- The comparability graph $G_{\mathcal{F}}$ of a finite family $\mathcal{F}$ of subsets of
$\{1,\ldots,n\}$ (modelled by `Fin n`): its vertices are the members of $\mathcal{F}$, and two
members are adjacent when one is a proper subset of the other (equivalently, they are distinct
and comparable; a graph has no loops). -/
def comparableGraph {n : ℕ} (𝓕 : Finset (Finset (Fin n))) : SimpleGraph {A // A ∈ 𝓕} where
  Adj A B := A.1 < B.1 ∨ B.1 < A.1
  symm := ⟨by intro A B; tauto⟩
  loopless := ⟨by intro A h; exact (lt_irrefl A.1) (h.elim id id)⟩

/-- Two members of $\mathcal{F}$ are adjacent in `comparableGraph 𝓕` if and only if one is a
proper subset of the other. -/
@[category API, AMS 5]
theorem comparableGraph_adj {n : ℕ} {𝓕 : Finset (Finset (Fin n))} {A B : {S // S ∈ 𝓕}} :
    (comparableGraph 𝓕).Adj A B ↔ A.1 < B.1 ∨ B.1 < A.1 :=
  Iff.rfl

open scoped Classical in
/-- The number of edges of $G_{\mathcal{F}}$, i.e. of unordered pairs of distinct comparable
members of $\mathcal{F}$. -/
noncomputable def comparableEdges {n : ℕ} (𝓕 : Finset (Finset (Fin n))) : ℕ :=
  (comparableGraph 𝓕).edgeFinset.card

set_option linter.style.formal_proof_palomar false in
/--
If $\mathcal{F}$ is a family of subsets of $\{1,\ldots,n\}$ then we write $G_{\mathcal{F}}$ for the
graph on $\mathcal{F}$ where $A\sim B$ if $A$ and $B$ are comparable - that is, $A\subseteq B$ or
vice versa.

Is it true that, if $\epsilon>0$ and $n$ is sufficiently large, whenever
$m\leq (2-\epsilon)2^{n/2}$ the graph $G_\mathcal{F}$ has $<2^{n}$ many edges?

A problem of Daykin and Erdős [Gu83]; here $m=\lvert\mathcal{F}\rvert$. The answer is yes, which
follows from Theorem 1.4 and Corollary 1.5 of Alon, Das, Glebov, and Sudakov [ADGS15].
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos777.lean#L1759"]
theorem erdos_777.parts.i :
    ∀ ε : ℝ, 0 < ε → ∃ n₀ : ℕ, ∀ n : ℕ, n₀ ≤ n → ∀ 𝓕 : Finset (Finset (Fin n)),
      (𝓕.card : ℝ) ≤ (2 - ε) * (2 : ℝ) ^ ((n : ℝ) / 2) → comparableEdges 𝓕 < 2 ^ n := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
If $\mathcal{F}$ is a family of subsets of $\{1,\ldots,n\}$ then we write $G_{\mathcal{F}}$ for the
graph on $\mathcal{F}$ where $A\sim B$ if $A$ and $B$ are comparable - that is, $A\subseteq B$ or
vice versa.

Is it true that if $G_{\mathcal{F}}$ has $\geq cm^2$ edges then $m\ll_c 2^{n/2}$?

The answer is no, by Alon and Frankl [AlFr85, Example 6.1]: for every $d\geq 1$ there are
families with $m\gg n^d2^{n/2}$ and at least $2^{-2d-1}\binom{m}{2}$ comparable pairs. Here
$m=\lvert\mathcal{F}\rvert$, and the question is read as: for every $c>0$ there is $C=C(c)$ such
that $m\leq C2^{n/2}$ for all $n$ and all such families, so the answer is the negation.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos777.lean#L353"]
theorem erdos_777.parts.ii :
    ¬ ∀ c : ℝ, 0 < c → ∃ C : ℝ, 0 < C ∧ ∀ n : ℕ, ∀ 𝓕 : Finset (Finset (Fin n)),
      c * (𝓕.card : ℝ) ^ 2 ≤ comparableEdges 𝓕 →
        (𝓕.card : ℝ) ≤ C * (2 : ℝ) ^ ((n : ℝ) / 2) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
If $\mathcal{F}$ is a family of subsets of $\{1,\ldots,n\}$ then we write $G_{\mathcal{F}}$ for the
graph on $\mathcal{F}$ where $A\sim B$ if $A$ and $B$ are comparable - that is, $A\subseteq B$ or
vice versa.

Is it true that, for any $\epsilon>0$, there exists some $\delta>0$ such that if there are
$>m^{2-\delta}$ edges then $m<(2+\epsilon)^{n/2}$?

The answer is yes, proved by Alon and Frankl [AlFr85, Theorem 1.4, the case $k=1$]. Here
$m=\lvert\mathcal{F}\rvert$.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos777.lean#L945"]
theorem erdos_777.parts.iii :
    ∀ ε : ℝ, 0 < ε → ∃ δ : ℝ, 0 < δ ∧ ∀ n : ℕ, ∀ 𝓕 : Finset (Finset (Fin n)),
      (𝓕.card : ℝ) ^ (2 - δ) < comparableEdges 𝓕 →
        (𝓕.card : ℝ) < (2 + ε) ^ ((n : ℝ) / 2) := by
  sorry

end Erdos777

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos777.erdos_777.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-777
nosorry submit erdos-777 nosorry/erdos-777/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.