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 900

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:

There is a function f:(1/2,∞)→Rf:(1/2,\infty)\to \mathbb{R} such that f(c)→0f(c)\to 0 as c→1/2c\to 1/2 and f(c)→1f(c)\to 1 as c→∞c\to \infty and every random graph with nn vertices and cncn edges has (with high probability) a path of length at least f(c)nf(c)n.

Conjectured by Erdős [Er78, p. 32] and proved by Ajtai, Komlós, and Szemerédi [AKS81]. We take the uniform random graph with ⌊cn⌋\lfloor cn\rfloor edges, count the length of a path in edges, read "with high probability" as probability tending to 11 as n→∞n\to\infty, and require f(c)>0f(c)>0 for every c>1/2c>1/2 (a path of linear length). The linked formal proof uses the same uniform model, written as uniformly random 0/10/1 vectors of weight ⌊cn⌋\lfloor cn\rfloor indexed by the pairs of vertices.

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

Formal statement

theorem erdos_900 :
    ∃ f : ℝ → ℝ, (∀ c : ℝ, 1 / 2 < c → 0 < f c) ∧
      Tendsto f (𝓝[>] (1 / 2)) (𝓝 0) ∧ Tendsto f atTop (𝓝 1) ∧
      ∀ c : ℝ, 1 / 2 < c → Tendsto (fun n : ℕ ↦
        uniformEdgeProbability n ⌊c * n⌋₊ (HasLongPath n (f c))) atTop (𝓝 1)
Show the full Challenge.lean (80 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 900

*References:*
- [erdosproblems.com/900](https://www.erdosproblems.com/900)
- [AKS81] Ajtai, Miklós and Komlós, János and Szemerédi, Endre, *The longest path in a random
  graph*. Combinatorica 1 (1981), 1--12.
- [Er78] Erdős, Paul, *Problems and results in combinatorial analysis and combinatorial number
  theory*. Proceedings of the Ninth Southeastern Conference on Combinatorics, Graph Theory, and
  Computing (1978), 29-40. [PDF](https://www.renyi.hu/~p_erdos/1978-36.pdf)
-/

@[expose] public section

open Filter SimpleGraph
open scoped Topology

namespace Erdos900

/-- The probability that a graph chosen uniformly at random among the graphs on the vertex set
`Fin n` with exactly `m` edges satisfies `P`. If `n.choose 2 < m` there is no such graph, and
the value is `0` (the quotient is $0/0$). -/
noncomputable def uniformEdgeProbability (n m : ℕ) (P : SimpleGraph (Fin n) → Prop) : ℝ :=
  (Set.ncard {G : SimpleGraph (Fin n) | G.edgeSet.ncard = m ∧ P G} : ℝ) /
    ((n.choose 2).choose m : ℝ)

/-- `HasLongPath n a G` says that the graph `G` on `Fin n` contains a path with at least $an$
edges. That is, `G` contains a copy of the path graph on `⌈a * n⌉₊ + 1` vertices. -/
def HasLongPath (n : ℕ) (a : ℝ) (G : SimpleGraph (Fin n)) : Prop :=
  pathGraph (⌈a * n⌉₊ + 1) ⊑ G

/-- If $m > \binom{n}{2}$ then no graph on `Fin n` has $m$ edges, and the probability is `0`. -/
@[category API, AMS 5 60]
theorem uniformEdgeProbability_of_lt (n m : ℕ) (P : SimpleGraph (Fin n) → Prop)
    (h : n.choose 2 < m) : uniformEdgeProbability n m P = 0 := by
  simp [uniformEdgeProbability, Nat.choose_eq_zero_of_lt h]

set_option linter.style.formal_proof_palomar false in
/--
There is a function $f:(1/2,\infty)\to \mathbb{R}$ such that $f(c)\to 0$ as $c\to 1/2$ and
$f(c)\to 1$ as $c\to \infty$ and every random graph with $n$ vertices and $cn$ edges has (with
high probability) a path of length at least $f(c)n$.

Conjectured by Erdős [Er78, p. 32] and proved by Ajtai, Komlós, and Szemerédi [AKS81]. We take
the uniform random graph with $\lfloor cn\rfloor$ edges, count the length of a path in edges, read
"with high probability" as probability tending to $1$ as $n\to\infty$, and require $f(c)>0$ for
every $c>1/2$ (a path of linear length). The linked formal proof uses the same uniform model,
written as uniformly random $0/1$ vectors of weight $\lfloor cn\rfloor$ indexed by the pairs of
vertices.
-/
@[category research solved, AMS 5 60, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos900.lean#L950"]
theorem erdos_900 :
    ∃ f : ℝ → ℝ, (∀ c : ℝ, 1 / 2 < c → 0 < f c) ∧
      Tendsto f (𝓝[>] (1 / 2)) (𝓝 0) ∧ Tendsto f atTop (𝓝 1) ∧
      ∀ c : ℝ, 1 / 2 < c → Tendsto (fun n : ℕ ↦
        uniformEdgeProbability n ⌊c * n⌋₊ (HasLongPath n (f c))) atTop (𝓝 1) := by
  sorry

end Erdos900

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

nosorry fetch erdos-900
nosorry submit erdos-900 nosorry/erdos-900/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.