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 895

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:

Is it true that, for all sufficiently large nn, if GG is a triangle-free graph on {1,…,n}\{1,\ldots,n\} then there must exist three independent points a,b,a+ba,b,a+b?

A problem of Erdős and Hajnal [Er95d]. The stated problem has been resolved by Barber (personal communication) who verified using a SAT solver that this is true for all n≥18n\geq 18.

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

Formal statement

theorem erdos_895 :
    ∀ᶠ n in atTop, ∀ G : SimpleGraph (Set.Icc 1 n), G.CliqueFree 3 →
      ∃ a b c : Set.Icc 1 n, a ≠ b ∧ (a : ℕ) + (b : ℕ) = c ∧ G.IsIndepSet {a, b, c}
Show the full Challenge.lean (79 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 895

*References:*
- [erdosproblems.com/895](https://www.erdosproblems.com/895)
- [Er95d] Erdős, Paul, *On some problems in combinatorial set theory*. Publ. Inst. Math.
  (Beograd) (N.S.) (1995), 61-65.
-/

@[expose] public section

open Filter

namespace Erdos895

set_option linter.style.formal_proof_palomar false in
/--
Is it true that, for all sufficiently large $n$, if $G$ is a triangle-free graph on
$\{1,\ldots,n\}$ then there must exist three independent points $a,b,a+b$?

A problem of Erdős and Hajnal [Er95d]. The stated problem has been resolved by Barber (personal
communication) who verified using a SAT solver that this is true for all $n\geq 18$.
-/
@[category research solved, question, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos895.lean#L268"]
theorem erdos_895 :
    ∀ᶠ n in atTop, ∀ G : SimpleGraph (Set.Icc 1 n), G.CliqueFree 3 →
      ∃ a b c : Set.Icc 1 n, a ≠ b ∧ (a : ℕ) + (b : ℕ) = c ∧ G.IsIndepSet {a, b, c} := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
Barber's sharp form of [erdős_895](https://www.erdosproblems.com/895): every triangle-free graph on
$\{1,\ldots,n\}$ with $n\geq 18$ contains three independent points $a,b,a+b$.
-/
@[category research solved, AMS 5, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos895.lean#L243"]
theorem erdos_895.variants.eighteen (n : ℕ) (hn : 18 ≤ n) (G : SimpleGraph (Set.Icc 1 n))
    (hG : G.CliqueFree 3) :
    ∃ a b c : Set.Icc 1 n, a ≠ b ∧ (a : ℕ) + (b : ℕ) = c ∧ G.IsIndepSet {a, b, c} := by
  sorry

/--
Hajnal thought that there is in fact an independent set which is a Hindman set - that is, an
independent set of the shape
$$\left\{ \sum_{i\in S}a_i : S\subseteq \{1,\ldots,k\}\right\}$$
for some $a_1,\ldots,a_k$ (provided $n$ is sufficiently large depending on $k$).

The general question of an independent Hindman set remains open. Here the $a_i$ are taken to be
distinct positive integers and $S$ ranges over the nonempty subsets of $\{1,\ldots,k\}$.
-/
@[category research open, question, AMS 5]
theorem erdos_895.variants.hindman :
    ∀ k : ℕ, ∀ᶠ n in atTop, ∀ G : SimpleGraph (Set.Icc 1 n), G.CliqueFree 3 →
      ∃ a : Fin k → ℕ, StrictMono a ∧ ∃ I : Set (Set.Icc 1 n), G.IsIndepSet I ∧
        Subtype.val '' I = {m | ∃ S : Finset (Fin k), S.Nonempty ∧ m = ∑ i ∈ S, a i} := by
  sorry

end Erdos895

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

nosorry fetch erdos-895
nosorry submit erdos-895 nosorry/erdos-895/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.