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 927

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:

Let g(n)g(n) be the maximum number of different sizes of cliques that can occur in a graph on nn vertices. Estimate g(n)g(n) - in particular, is it true that g(n)=n−log⁡2n−log⁡∗(n)+O(1),g(n) = n - \log_2 n - \log_*(n) + O(1), where log⁡∗(n)\log_*(n) is the number of iterated logarithms such that log⁡⋯log⁡n<1\log \cdots \log n < 1?

A quantity first considered by Moon and Moser [MoMo65], who proved n−log⁡2n−2log⁡log⁡n<g(n)≤n−⌊log⁡2n⌋n - \log_2 n - 2 \log \log n < g(n) \le n - \lfloor \log_2 n \rfloor. Erdős [Er66b] improved the lower bound to n−log⁡2n−log⁡∗(n)−O(1)<g(n)n - \log_2 n - \log_*(n) - O(1) < g(n) and conjectured this was the correct order of magnitude. This was disproved by Spencer [Sp71], who proved that in fact g(n)>n−log⁡2n−O(1)g(n) > n - \log_2 n - O(1).

Here log⁡2n\log_2 n and log⁡∗(n)\log_*(n) are formalised as Nat.log 2 n and Nat.iteratedLog 2 n (iterating Nat.log 2 until the value is at most 1); both differ from the quantities in the problem by O(1)O(1), so the statement is unaffected. See also erdos_775.variants.spencer and erdos_775.variants.moon_moser.

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

Formal statement

theorem erdos_927 :
    ¬ ∃ C : ℕ, ∀ᶠ n : ℕ in atTop,
      g n + Nat.log 2 n + Nat.iteratedLog 2 n ≤ n + C ∧
        n ≤ g n + Nat.log 2 n + Nat.iteratedLog 2 n + C
Show the full Challenge.lean (75 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 927

*References:*
- [erdosproblems.com/927](https://www.erdosproblems.com/927)
- [MoMo65] Moon, J. W. and Moser, L., *On cliques in graphs*. Israel J. Math. (1965), 23-28.
- [Er66b] Erdős, P., *On cliques in graphs*. Israel J. Math. (1966), 233--234.
- [Er69b] Erdős, P., *Problems and results in chromatic graph theory*. Proof Techniques in Graph
  Theory (Proc. Second Ann Arbor Graph Theory Conf., Ann Arbor, Mich., 1968) (1969), 27-35.
- [Er71] Erdős, P., *Some unsolved problems in graph theory and combinatorial analysis*.
  Combinatorial Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.
- [Sp71] Spencer, J. H., *On cliques in graphs*. Israel J. Math. (1971), 419-421.
-/

@[expose] public section

open Filter

namespace Erdos927

/-- `g n` is the maximum number of different sizes of cliques (maximal complete subgraphs) of a
graph on `n` vertices. -/
noncomputable def g (n : ℕ) : ℕ := by
  classical
  exact Finset.sup (Finset.univ (α := SimpleGraph (Fin n)))
    fun G => (SimpleGraph.cliqueSizes G).ncard

set_option linter.style.formal_proof_palomar false in
/--
Let $g(n)$ be the maximum number of different sizes of cliques that can occur in a graph on $n$
vertices. Estimate $g(n)$ - in particular, is it true that
$$g(n) = n - \log_2 n - \log_*(n) + O(1),$$
where $\log_*(n)$ is the number of iterated logarithms such that $\log \cdots \log n < 1$?

A quantity first considered by Moon and Moser [MoMo65], who proved
$n - \log_2 n - 2 \log \log n < g(n) \le n - \lfloor \log_2 n \rfloor$. Erdős [Er66b] improved the
lower bound to $n - \log_2 n - \log_*(n) - O(1) < g(n)$ and conjectured this was the correct order
of magnitude. This was disproved by Spencer [Sp71], who proved that in fact
$g(n) > n - \log_2 n - O(1)$.

Here $\log_2 n$ and $\log_*(n)$ are formalised as `Nat.log 2 n` and `Nat.iteratedLog 2 n`
(iterating `Nat.log 2` until the value is at most `1`); both differ from the quantities in the
problem by $O(1)$, so the statement is unaffected. See also `erdos_775.variants.spencer` and
`erdos_775.variants.moon_moser`.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos927.lean#L23"]
theorem erdos_927 :
    ¬ ∃ C : ℕ, ∀ᶠ n : ℕ in atTop,
      g n + Nat.log 2 n + Nat.iteratedLog 2 n ≤ n + C ∧
        n ≤ g n + Nat.log 2 n + Nat.iteratedLog 2 n + C := by
  sorry

end Erdos927

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

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

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.