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 59 · variants.c4

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

In [Va99] the specific case of G=C4G=C_4 is also asked.

Subjects:Combinatorics (math.CO)
MSC classes:05
Tags:question
Cite as:NS.02526 [math.CO] · NS.02526v1 for this version
Declaration:Erdos59.erdos_59.variants.c4
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100; accepted critique: up to 100
Statement hash:ac80bcdcbcbedeeccdf32299adeabd71076427ee1ebc0861311c8cba45cd18c6
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/59.lean

Formal statement

theorem erdos_59.variants.c4 :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
      (numFree (cycleGraph 4) n : ℝ) ≤
        (2 : ℝ) ^ ((1 + ε) * (extremalNumber n (cycleGraph 4) : ℝ))
Show the full Challenge.lean (118 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 59

*References:*
- [erdosproblems.com/59](https://www.erdosproblems.com/59)
- [EFR86] Erdős, P., Frankl, P. and Rödl, V., *The asymptotic number of graphs not containing a
  fixed subgraph and a problem for hypergraphs having no exponent*. Graphs Combin. (1986),
  113-121.
- [MoSa16] Morris, R. and Saxton, D., *The number of $C_{2\ell}$-free graphs*. Adv. Math. (2016),
  534-580. [arXiv:1309.2927](https://arxiv.org/abs/1309.2927)
- [Va99] Various, *Some of Paul's favorite problems*. Booklet produced for the conference "Paul
  Erdős and his mathematics", Budapest, July 1999 (1999).
-/

@[expose] public section

open Filter SimpleGraph

namespace Erdos59

/-- `numFree H n` is the number of labelled graphs on the vertex set `Fin n` which do not
contain `H` as a subgraph. -/
noncomputable def numFree {k : ℕ} (H : SimpleGraph (Fin k)) (n : ℕ) : ℕ :=
  {G : SimpleGraph (Fin n) | H.Free G}.ncard

/-- If `H` has an edge, the empty graph on `Fin n` is `H`-free, so `numFree H n` is positive. -/
@[category API, AMS 5]
theorem numFree_pos {k : ℕ} {H : SimpleGraph (Fin k)} (hH : H ≠ ⊥) (n : ℕ) :
    0 < numFree H n := by
  unfold numFree
  exact (Set.ncard_pos (Set.toFinite _)).2 ⟨⊥, SimpleGraph.free_bot hH⟩

set_option linter.style.formal_proof_palomar false in
/--
Is it true that the number of graphs on $n$ vertices which do not contain $G$ is
$$\leq 2^{(1+o(1))\mathrm{ex}(n;G)}?$$

The answer is no, already for $G=C_6$ (see `erdos_59.variants.morris_saxton`). Graphs are
labelled, and $G$ ranges over finite graphs containing a cycle, as in [MoSa16]; for some forests
the answer is trivially no (for the path with two edges the free graphs include all matchings,
about $2^{\Theta(n\log n)}$ of them).
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos59.lean#L46"]
theorem erdos_59 :
    ¬ ∀ (k : ℕ) (H : SimpleGraph (Fin k)), ¬ H.IsAcyclic →
      ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
        (numFree H n : ℝ) ≤ (2 : ℝ) ^ ((1 + ε) * (extremalNumber n H : ℝ)) := by
  sorry

/--
If $G$ is not bipartite the answer is yes, proved by Erdős, Frankl, and Rödl [EFR86].
-/
@[category research solved, AMS 5]
theorem erdos_59.variants.erdos_frankl_rodl {k : ℕ} (H : SimpleGraph (Fin k))
    (hH : ¬ H.IsBipartite) :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
      (numFree H n : ℝ) ≤ (2 : ℝ) ^ ((1 + ε) * (extremalNumber n H : ℝ)) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The answer is no for $G=C_6$, the cycle on 6 vertices. Morris and Saxton [MoSa16, Proposition
1.4] have proved there are at least
$$2^{(1+c)\mathrm{ex}(n;C_6)}$$
such graphs for infinitely many $n$, for some constant $c>0$.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos59.lean#L46"]
theorem erdos_59.variants.morris_saxton :
    ∃ c : ℝ, 0 < c ∧ ∃ᶠ n : ℕ in atTop,
      (2 : ℝ) ^ ((1 + c) * (extremalNumber n (cycleGraph 6) : ℝ)) ≤
        (numFree (cycleGraph 6) n : ℝ) := by
  sorry

/--
In [Va99] the specific case of $G=C_4$ is also asked.
-/
@[category research open, question, AMS 5]
theorem erdos_59.variants.c4 :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
      (numFree (cycleGraph 4) n : ℝ) ≤
        (2 : ℝ) ^ ((1 + ε) * (extremalNumber n (cycleGraph 4) : ℝ)) := by
  sorry

/--
It is still possible (and conjectured by Morris and Saxton) that the weaker bound of
$$2^{O(\mathrm{ex}(n;G))}$$
holds for all $G$ containing a cycle.
-/
@[category research open, AMS 5]
theorem erdos_59.variants.big_o :
    ∀ (k : ℕ) (H : SimpleGraph (Fin k)), ¬ H.IsAcyclic →
      ∃ C : ℝ, 0 < C ∧ ∀ᶠ n : ℕ in atTop,
        (numFree H n : ℝ) ≤ (2 : ℝ) ^ (C * (extremalNumber n H : ℝ)) := by
  sorry

end Erdos59

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

nosorry desk erdos-59--erdos-59-variants-c4      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-59--erdos-59-variants-c4
nosorry submit erdos-59--erdos-59-variants-c4 nosorry/erdos-59--erdos-59-variants-c4/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.