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 1104 · variants.upper

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:

Upper bound (Davies–Illingworth 2022). f(n)≤(2+o(1))nlog⁡n, f(n) \le (2 + o(1)) \sqrt{\frac{n}{\log n}}, where f(n)f(n) denotes the maximum chromatic number of a triangle-free graph on nn vertices, formalized as triangleFreeMaxChromatic n.

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

Formal statement

theorem erdos_1104.variants.upper :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
      (triangleFreeMaxChromatic n : ℝ)
        ≤ (2 + ε) * Real.sqrt (n : ℝ) / Real.sqrt (Real.log (n : ℝ))
Show the full Challenge.lean (70 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1104

*Reference:* https://www.erdosproblems.com/1104
-/

@[expose] public section

namespace Erdos1104

open Filter SimpleGraph
open scoped Real

/-- Maximum chromatic number of a triangle-free graph on `n` vertices. -/
noncomputable def triangleFreeMaxChromatic (n : ℕ) : ℕ :=
  sSup {χ | ∃ G : SimpleGraph (Fin n), G.CliqueFree 3 ∧ G.chromaticNumber = χ}

-- TODO: Add erdos_1104.

/--
Lower bound (Hefty–Horn–King–Pfender 2025).
$$
(1 - o(1)) \sqrt{\frac{n}{\log n}} \le f(n),
$$
where $f(n)$ denotes the maximum chromatic number of a triangle-free graph on
$n$ vertices, formalized as `triangleFreeMaxChromatic n`.
-/
@[category research solved, AMS 5]
theorem erdos_1104.variants.lower :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
      (1 - ε) * Real.sqrt (n : ℝ) / Real.sqrt (Real.log (n : ℝ))
        ≤ (triangleFreeMaxChromatic n : ℝ) := by
  sorry

/--
Upper bound (Davies–Illingworth 2022).
$$
f(n) \le (2 + o(1)) \sqrt{\frac{n}{\log n}},
$$
where $f(n)$ denotes the maximum chromatic number of a triangle-free graph on
$n$ vertices, formalized as `triangleFreeMaxChromatic n`.
-/
@[category research solved, AMS 5]
theorem erdos_1104.variants.upper :
    ∀ ε > (0 : ℝ), ∀ᶠ n : ℕ in atTop,
      (triangleFreeMaxChromatic n : ℝ)
        ≤ (2 + ε) * Real.sqrt (n : ℝ) / Real.sqrt (Real.log (n : ℝ)) := by
  sorry

end Erdos1104

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

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