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 667 · variants.endpoint

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 right endpoint: when q=(p−12)+1q = \binom{p-1}{2} + 1 one has c(p,q)=1c(p, q) = 1 (stated as "easy to see" on erdosproblems.com/667).

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

Formal statement

theorem erdos_667.variants.endpoint (p : ℕ) (hp : 2 ≤ p) :
    c p (Nat.choose (p - 1) 2 + 1) = 1
Show the full Challenge.lean (115 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 667

A problem of Erdős, Faudree, Rousseau, and Schelp on the growth exponent of the largest clique
that is guaranteed inside a locally dense graph.

*References:*
* [erdosproblems.com/667](https://www.erdosproblems.com/667)
* [Er97f] P. Erdős, _Some unsolved problems_. In: Combinatorics, Geometry and Probability
  (Cambridge, 1993), Cambridge Univ. Press (1997), 1-10.
* [EFRS94] P. Erdős, R. J. Faudree, C. C. Rousseau and R. H. Schelp,
  _A local density condition for triangles_. Discrete Math. 127 (1994), 153-161.
-/

@[expose] public section
open SimpleGraph Filter

namespace Erdos667

/-- A graph `G` on `n` vertices is *`(p, q)`-locally dense* if every set of `p` of its vertices
spans at least `q` edges of `G`; equivalently, every induced subgraph on `p` vertices has at
least `q` edges. -/
def LocallyDense (p q : ℕ) {n : ℕ} (G : SimpleGraph (Fin n)) : Prop :=
  ∀ s : Finset (Fin n), s.card = p → q ≤ (G.induce s).edgeSet.ncard

open Classical in
/-- `H p q n` is `H(n) = H(n; p, q)`: the largest `m` such that *every* `(p, q)`-locally dense
graph on `n` vertices must contain a complete graph on `m` vertices `Kₘ`.

The condition "`G` contains `Kₘ`" is `¬ G.CliqueFree m`. Any `m`-clique needs `m ≤ n` vertices,
and the property is downward closed in `m`, so `Nat.findGreatest _ n` returns the genuine maximum. -/
noncomputable def H (p q n : ℕ) : ℕ :=
  Nat.findGreatest
    (fun m => ∀ G : SimpleGraph (Fin n), LocallyDense p q G → ¬ G.CliqueFree m) n

/-- The growth exponent `c(p, q) = liminf_{n → ∞} (log H(n)) / (log n)`. -/
noncomputable def c (p q : ℕ) : ℝ :=
  liminf (fun n : ℕ => Real.log (H p q n) / Real.log n) atTop

/--
Let $p, q \geq 1$ be fixed integers. Define $H(n) = H(n; p, q)$ to be the largest $m$ such that any
graph on $n$ vertices where every set of $p$ vertices spans at least $q$ edges must contain a
complete graph on $m$ vertices. Is
$$ c(p, q) = \liminf_{n \to \infty} \frac{\log H(n)}{\log n} $$
a strictly increasing function of $q$ for $1 \leq q \leq \binom{p-1}{2} + 1$?

A problem of Erdős, Faudree, Rousseau, and Schelp. When $q = 1$ this corresponds exactly to the
classical Ramsey problem, and hence $\tfrac{1}{p-1} \leq c(p, 1) \leq \tfrac{2}{p+1}$ for
$p \geq 3$. It is easy to see that if $q = \binom{p-1}{2} + 1$ then $c(p, q) = 1$.

erdosproblems.com/667 also states that Erdős, Faudree, Rousseau and Schelp showed
$c(p, \binom{p-1}{2}) \leq 1/2$. This cannot hold for all $p$: for $p = 6$, $q = 10$, the
complement of a $(6, 10)$-locally dense graph is $C_6$-free, so Bondy–Simonovits together with
$\alpha(F) \geq n^2 / (2e(F) + n)$ gives $c(6, 10) \geq 2/3$. That remark is therefore not
formalised here.
-/
@[category research open, question, AMS 5]
theorem erdos_667 :
    ∀ p : ℕ, StrictMonoOn (c p) (Set.Icc 1 (Nat.choose (p - 1) 2 + 1)) := by
  sorry

/--
That $c(p, q)$ is *nondecreasing* in $q$ for fixed $p$ is a straightforward consequence of the
definitions: enlarging $q$ shrinks the family of $(p, q)$-locally dense graphs, which can only
increase the guaranteed clique size $H(n)$, and hence the exponent.
-/
@[category textbook, AMS 5, formal_proof using lean4 at
  "https://github.com/linrock/math-proofs/blob/d16a9d73d85f1377e83798f5d9585ee4c4140979/erdos-667/Solution.lean#L41"]
theorem erdos_667.variants.monotoneOn (p : ℕ) :
    MonotoneOn (c p) (Set.Icc 1 (Nat.choose (p - 1) 2 + 1)) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
The right endpoint: when $q = \binom{p-1}{2} + 1$ one has $c(p, q) = 1$
(stated as "easy to see" on erdosproblems.com/667).
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/linrock/math-proofs/blob/d16a9d73d85f1377e83798f5d9585ee4c4140979/erdos-667/Solution.lean#L45"]
theorem erdos_667.variants.endpoint (p : ℕ) (hp : 2 ≤ p) :
    c p (Nat.choose (p - 1) 2 + 1) = 1 := by
  sorry

/--
The case $q = 1$ is the classical Ramsey problem, giving the bounds
$\tfrac{1}{p-1} \leq c(p, 1) \leq \tfrac{2}{p+1}$ for $p \geq 3$. (For $p = 2$ the condition
forces $G$ to be complete, so $c(2, 1) = 1$ and the upper bound fails.)
-/
@[category research solved, AMS 5]
theorem erdos_667.variants.ramsey_bounds (p : ℕ) (hp : 3 ≤ p) :
    1 / ((p : ℝ) - 1) ≤ c p 1 ∧ c p 1 ≤ 2 / ((p : ℝ) + 1) := by
  sorry

end Erdos667

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

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