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 813 · variants.lower

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:

The lower half of Erdos813.erdos_813 has a positive answer: there is a constant c1>0c_1 > 0 with n1/3+c1≪h(n)n^{1/3+c_1} \ll h(n). This follows from the bound h(n)≫n5/12−o(1)h(n) \gg n^{5/12-o(1)} of Bucić and Sudakov [BuSu23], since 5/12>1/35/12 > 1/3.

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

Formal statement

theorem erdos_813.variants.lower :
    ∃ c₁ > (0 : ℝ), (fun n : ℕ ↦ (n : ℝ) ^ (1 / 3 + c₁ : ℝ)) =O[atTop] (fun n ↦ (h n : ℝ))
Show the full Challenge.lean (155 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 813

*References:*
- [erdosproblems.com/813](https://www.erdosproblems.com/813)
- [Er91] Erdős, P., *Problems and results in combinatorial analysis and combinatorial number
  theory*. Graph theory, combinatorics, and applications, Vol. 1 (Kalamazoo, MI, 1988) (1991),
  397-406.
- [BuSu23] Bucić, M. and Sudakov, B., *Large independent sets from local considerations*.
  Combinatorica 43 (2023), 505-546. [arXiv:2007.03667](https://arxiv.org/abs/2007.03667)
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos813

/--
Every set of $7$ vertices of `G` contains a triangle, that is, three pairwise adjacent
vertices. For $n < 7$ there is no such set, so the condition is vacuous.
-/
def EverySevenHasTriangle {n : ℕ} (G : SimpleGraph (Fin n)) : Prop :=
  ∀ S : Finset (Fin n), S.card = 7 → ∃ t ⊆ S, G.IsNClique 3 t

/--
`h n` is $h(n)$: the smallest clique number of a graph on $n$ vertices in which every set of
$7$ vertices contains a triangle. The complete graph satisfies the condition, so the set is
never empty and `sInf` is a true minimum.
-/
noncomputable def h (n : ℕ) : ℕ :=
  sInf {k : ℕ | ∃ G : SimpleGraph (Fin n), EverySevenHasTriangle G ∧ G.cliqueNum = k}

/-- The complete graph on $n$ vertices satisfies the condition. -/
@[category test, AMS 5]
theorem everySevenHasTriangle_top (n : ℕ) :
    EverySevenHasTriangle (⊤ : SimpleGraph (Fin n)) := by
  intro S hS
  obtain ⟨t, htS, ht⟩ := Finset.exists_subset_card_eq (show 3 ≤ S.card by omega)
  exact ⟨t, htS, ⟨(SimpleGraph.isClique_univ.2 rfl).subset (Set.subset_univ _), ht⟩⟩

/-- For $n = 7$ the graph must contain a triangle, and a triangle plus $4$ isolated vertices
has clique number $3$, so $h(7) = 3$. -/
@[category test, AMS 5]
theorem h_seven : h 7 = 3 := by
  -- The triangle on `{0, 1, 2}` together with four isolated vertices.
  set G : SimpleGraph (Fin 7) :=
    { Adj := fun v w => v ≠ w ∧ v.val < 3 ∧ w.val < 3
      symm := by constructor; intro v w h; exact ⟨h.1.symm, h.2.2, h.2.1⟩
      loopless := by constructor; intro v h; exact h.1 rfl } with hG
  have hmem3 : ∀ a : Fin 7, a ∈ ({0, 1, 2} : Finset (Fin 7)) ↔ a.val < 3 := by decide
  have htri : G.IsNClique 3 ({0, 1, 2} : Finset (Fin 7)) := by
    constructor
    · intro a ha b hb hab
      exact ⟨hab, (hmem3 a).1 ha, (hmem3 b).1 hb⟩
    · decide
  have hclique : G.cliqueNum = 3 := by
    refine le_antisymm ?_ (htri.card_eq ▸ htri.isClique.card_le_cliqueNum)
    obtain ⟨s, hs⟩ := G.exists_isNClique_cliqueNum
    rw [← hs.card_eq]
    by_cases hcard : s.card ≤ 1
    · omega
    · have hsub : s ⊆ ({0, 1, 2} : Finset (Fin 7)) := by
        intro v hv
        obtain ⟨w, hw, hne⟩ := Finset.exists_mem_ne (by omega : 1 < s.card) v
        exact (hmem3 v).2 (hs.isClique hv hw hne.symm).2.1
      simpa using Finset.card_le_card hsub
  have hESH : EverySevenHasTriangle G := by
    intro S hS
    have hU : S = Finset.univ := S.eq_univ_of_card (by simp [hS])
    exact ⟨{0, 1, 2}, hU ▸ Finset.subset_univ _, htri⟩
  have h3 : (3 : ℕ) ∈
      {k : ℕ | ∃ G : SimpleGraph (Fin 7), EverySevenHasTriangle G ∧ G.cliqueNum = k} :=
    ⟨G, hESH, hclique⟩
  refine le_antisymm (Nat.sInf_le h3) (le_csInf ⟨3, h3⟩ ?_)
  rintro k ⟨G', hG', rfl⟩
  obtain ⟨t, -, ht⟩ := hG' Finset.univ (by simp)
  exact ht.card_eq ▸ ht.isClique.card_le_cliqueNum

/--
Let $h(n)$ be minimal such that every graph on $n$ vertices where every set of $7$ vertices
contains a triangle must contain a clique on at least $h(n)$ vertices. Estimate $h(n)$. In
particular, do there exist constants $c_1, c_2 > 0$ such that
$$n^{1/3+c_1} \ll h(n) \ll n^{1/2-c_2}?$$

The lower half has a positive answer (`Erdos813.erdos_813.variants.lower`); the upper half is
`Erdos813.erdos_813.variants.upper`.
-/
@[category research open, question, AMS 5]
theorem erdos_813 :
    ∃ c₁ > (0 : ℝ), ∃ c₂ > (0 : ℝ),
      (fun n : ℕ ↦ (n : ℝ) ^ (1 / 3 + c₁ : ℝ)) =O[atTop] (fun n ↦ (h n : ℝ)) ∧
        (fun n : ℕ ↦ (h n : ℝ)) =O[atTop] (fun n : ℕ ↦ (n : ℝ) ^ (1 / 2 - c₂ : ℝ)) := by
  sorry

/--
Erdős and Hajnal proved (see [Er91]) that
$$n^{1/3} \ll h(n) \ll n^{1/2}.$$
-/
@[category research solved, AMS 5]
theorem erdos_813.variants.erdos_hajnal :
    (fun n : ℕ ↦ (n : ℝ) ^ (1 / 3 : ℝ)) =O[atTop] (fun n ↦ (h n : ℝ)) ∧
      (fun n : ℕ ↦ (h n : ℝ)) =O[atTop] (fun n : ℕ ↦ (n : ℝ) ^ (1 / 2 : ℝ)) := by
  sorry

/--
Bucić and Sudakov [BuSu23] proved that $h(n) \gg n^{5/12-o(1)}$. Their result is stated for
graphs in which every $7$ vertices contain an independent set of size $3$; it applies to $h$
by taking complements.
-/
@[category research solved, AMS 5]
theorem erdos_813.variants.bucic_sudakov :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop, (n : ℝ) ^ (5 / 12 - ε : ℝ) ≤ (h n : ℝ) := by
  sorry

/--
The lower half of `Erdos813.erdos_813` has a positive answer: there is a constant $c_1 > 0$
with $n^{1/3+c_1} \ll h(n)$. This follows from the bound $h(n) \gg n^{5/12-o(1)}$ of Bucić and
Sudakov [BuSu23], since $5/12 > 1/3$.
-/
@[category research solved, question, AMS 5]
theorem erdos_813.variants.lower :
    ∃ c₁ > (0 : ℝ), (fun n : ℕ ↦ (n : ℝ) ^ (1 / 3 + c₁ : ℝ)) =O[atTop] (fun n ↦ (h n : ℝ)) := by
  sorry

/--
The upper half of `Erdos813.erdos_813`: is there a constant $c_2 > 0$ with
$h(n) \ll n^{1/2-c_2}$?
-/
@[category research open, question, AMS 5]
theorem erdos_813.variants.upper :
    ∃ c₂ > (0 : ℝ), (fun n : ℕ ↦ (h n : ℝ)) =O[atTop] (fun n : ℕ ↦ (n : ℝ) ^ (1 / 2 - c₂ : ℝ)) := by
  sorry

end Erdos813

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

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