Erdős Problem 865
There exists a constant such that, for all large , if has size at least then there are distinct such that . A problem of Erdős and Sós (also earlier considered by Choi, Erdős, and Szemerédi [CES75], but Erdős had forgotten this).
▸Motivation
There exists a constant such that, for all large , if has size at least then there are distinct such that . A problem of Erdős and Sós (also earlier considered by Choi, Erdős, and Szemerédi [CES75], but Erdős had forgotten this).
Adapted from formal-conjectures, ErdosProblems/865.lean. Catalogued at https://www.erdosproblems.com/865.
▸Lean API
import Mathlib
namespace Conjectura.EP0032
/-- There exists a constant $C>0$ such that, for all large $N$, if $A\subseteq \{1,\ldots,N\}$ has size at least $\frac{5}{8}N+C$ then there are distinct $a,b,c\in A$ such that $a+b,a+c,b+c\in A$. A problem of Erdős and Sós (also earlier considered by Choi, Erdős, and Szemerédi [CES75], but Erdős had forgotten this). -/
def goal : Prop :=
∃ C > 0, ∀ᶠ (N : ℕ) in atTop,
∀ A ⊆ Icc 1 N, A.card ≥ (5 / 8 : ℝ) * N + C →
∃ a ∈ A, ∃ b ∈ A, ∃ c ∈ A, a ≠ b ∧ a ≠ c ∧ b ≠ c ∧
a + b ∈ A ∧ a + c ∈ A ∧ b + c ∈ A
end Conjectura.EP0032▸Definition3
▸Related work2
- Erdős Problem 865Thomas Bloom (catalogue)
The catalogue entry, with references and status.
- formal-conjecturesThe Formal Conjectures Authors (Google DeepMind) · 2025
Source of the Lean formalization adapted here.
▸For your AI
I am proving a theorem in Lean 4 and submitting it to Conjectura.
## Problem EP0032 — Erdős Problem 865
There exists a constant $C>0$ such that, for all large $N$, if $A\subseteq \{1,\ldots,N\}$ has size at least $\frac{5}{8}N+C$ then there are distinct $a,b,c\in A$ such that $a+b,a+c,b+c\in A$. A problem of Erdős and Sós (also earlier considered by Choi, Erdős, and Szemerédi [CES75], but Erdős had forgotten this).
## Environment (fixed — do not assume anything newer)
- Lean toolchain: `leanprover/lean4:v4.33.0-rc1`
- Mathlib: `v4.33.0-rc1`
If a lemma you want does not exist in that Mathlib, prove it inline instead of
importing something newer.
## The exact statement I must prove
```lean
theorem solution : Conjectura.EP0032.goal := by
sorry
```
## The file I submit
```lean
import Conjectura.Problems.EP0032.Statement
namespace Submission
theorem solution : Conjectura.EP0032.goal := by
sorry
end Submission
```
## The Lean definitions of every term in this problem
These are the actual definitions your proof will be checked against. Do not
substitute your own version of any of them.
### atTop
def
```lean
atTop
```
Defined in Mathlib.
### Icc
def
```lean
Icc
```
Defined in Mathlib.
### card
theorem
```lean
A.card
```
Defined in Mathlib.
## Rules — submissions violating these are rejected automatically
1. **Do not change the name or type of `solution`.** It must satisfy the
statement above exactly.
2. **Do not redefine or shadow anything from the problem's Statement module.**
Declaring your own `goal`, or redefining a name it depends on, produces a
proof of a *different* statement and is rejected. This is the single most
common rejection.
3. **No `sorry`** anywhere, including in helper lemmas. It surfaces as the
axiom `sorryAx` and is detected transitively through imports.
4. **No `native_decide`** — it surfaces as `Lean.ofReduceBool` and is not
accepted, because it trusts compiled code rather than the kernel.
5. Only these axioms are permitted: `propext`, `Classical.choice`,
`Quot.sound`.
6. Follow Mathlib style: hypotheses left of the colon, explicit types,
`snake_case` theorem names, `UpperCamelCase` types.
## What I want from you
Here is my argument in informal mathematics:
> [PASTE YOUR PROOF SKETCH HERE]
Turn it into Lean 4 that compiles under the environment above and satisfies the
statement exactly. Where you are unsure a lemma exists in this Mathlib version,
say so explicitly rather than guessing a name.Submissions are not open yet
Conjectura is in beta. You can read every statement, every definition and the Lean behind them, and download the exact files the checker uses — but proofs are not being accepted yet.
The reason is a deliberate order of operations. Accepting a proof means running a stranger’s code and standing behind a verdict, and no statement here yet carries a researcher’s name. A machine-checked answer to a question nobody has vouched for is worth very little, so the vouching comes first.
The English write-ups are also switched off during the beta. Nothing on this page is generated by a model.
Discussion
- Nothing yet.
Sign in to take part.