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 1025

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:

Let ff be a function from all pairs of elements in {1,…,n}\{1,\ldots,n\} to {1,…,n}\{1,\ldots,n\} such that f(x,y)≠xf(x,y)\neq x and ≠y\neq y for all x,yx,y. We call X⊆{1,…,n}X\subseteq \{1,\ldots,n\} independent if whenever x,y∈Xx,y\in X we have f(x,y)∉Xf(x,y)\not\in X.

Let g(n)g(n) be such that, in every function ff, there is an independent set of size at least g(n)g(n). Estimate g(n)g(n).

A question of Erdős and Hajnal [ErHa58], who could prove n1/3≪g(n)≪(nlog⁡n)1/2n^{1/3} \ll g(n) \ll (n\log n)^{1/2}. Spencer [Sp72] proved g(n)≫n1/2g(n)\gg n^{1/2}. Conlon, Fox, and Sudakov [CFS16] proved g(n)≪n1/2g(n)\ll n^{1/2}.

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

Formal statement

theorem erdos_1025 : (fun n : ℕ => (g n : ℝ)) =Θ[atTop] fun n : ℕ => √n
Show the full Challenge.lean (71 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1025

*References:*
- [erdosproblems.com/1025](https://www.erdosproblems.com/1025)
- [Er71] Erdős, P., *Some unsolved problems in graph theory and combinatorial analysis*.
  Combinatorial Mathematics and its Applications (Proc. Conf., Oxford, 1969) (1971), 97-109.
- [ErHa58] Erdős, P. and Hajnal, A., *On the structure of set mappings*. Acta Math. Acad. Sci.
  Hungar. (1958), 111-133.
- [Sp72] Spencer, Joel, *Turán's theorem for $k$-graphs*. Discrete Math. (1972), 183--186.
- [CFS16] Conlon, David and Fox, Jacob and Sudakov, Benny, *Short proofs of some extremal results
  II*. J. Combin. Theory Ser. B (2016), 173--196.
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos1025

/-- `X` is independent for a set mapping `f` on pairs if `f s(x, y) ∉ X` whenever `x ≠ y` are in
`X`. -/
def IsIndependent {n : ℕ} (f : Sym2 (Fin n) → Fin n) (X : Finset (Fin n)) : Prop :=
  ∀ x ∈ X, ∀ y ∈ X, x ≠ y → f s(x, y) ∉ X

/-- `g n` is the largest `k` such that every set mapping `f` on the pairs of an `n`-element set
with `f(x, y) ∉ {x, y}` admits an independent set of size at least `k`. -/
noncomputable def g (n : ℕ) : ℕ :=
  sSup {k : ℕ | k ≤ n ∧ ∀ f : Sym2 (Fin n) → Fin n,
    (∀ x y, x ≠ y → f s(x, y) ≠ x ∧ f s(x, y) ≠ y) →
      ∃ X : Finset (Fin n), IsIndependent f X ∧ k ≤ X.card}

set_option linter.style.formal_proof_palomar false in
/--
Let $f$ be a function from all pairs of elements in $\{1,\ldots,n\}$ to $\{1,\ldots,n\}$ such
that $f(x,y)\neq x$ and $\neq y$ for all $x,y$. We call $X\subseteq \{1,\ldots,n\}$ independent
if whenever $x,y\in X$ we have $f(x,y)\not\in X$.

Let $g(n)$ be such that, in every function $f$, there is an independent set of size at least
$g(n)$. Estimate $g(n)$.

A question of Erdős and Hajnal [ErHa58], who could prove $n^{1/3} \ll g(n) \ll (n\log n)^{1/2}$.
Spencer [Sp72] proved $g(n)\gg n^{1/2}$. Conlon, Fox, and Sudakov [CFS16] proved
$g(n)\ll n^{1/2}$.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1025.lean#L829"]
theorem erdos_1025 : (fun n : ℕ => (g n : ℝ)) =Θ[atTop] fun n : ℕ => √n := by
  sorry

end Erdos1025

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

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