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 395

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:

If z1,…,zn∈Cz_1,\ldots,z_n\in \mathbb{C} with ∣zi∣=1\lvert z_i\rvert=1 then is it true that the probability that ∣ϵ1z1+⋯+ϵnzn∣≤2,\lvert \epsilon_1z_1+\cdots+\epsilon_nz_n\rvert \leq \sqrt{2}, where ϵi∈{−1,1}\epsilon_i\in \{-1,1\} uniformly at random, is ≫1/n\gg 1/n?

A reverse Littlewood-Offord problem. Erdős originally asked this with 2\sqrt{2} replaced by 11, but Carnielli and Carolino [CaCa11] observed that this is false, choosing z1=1z_1=1 and zk=iz_k=i for 2≤k≤n2\leq k\leq n, where nn is even, since then the sum is at least 2\sqrt{2} always.

Solved in the affirmative by He, Juškevičius, Narayanan, and Spiro [HJNS24]. The bound of 1/n1/n is the best possible, as shown by taking zk=1z_k=1 for 1≤k≤n/21\leq k\leq n/2 and zk=iz_k=i otherwise.

See also 498.

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

Formal statement

theorem erdos_395 : ∃ c : ℝ, 0 < c ∧ ∀ n : ℕ, 0 < n → ∀ z : Fin n → ℂ,
    (∀ i, ‖z i‖ = 1) → c / n ≤ (signedSumCount z √2 : ℝ) / 2 ^ n
Show the full Challenge.lean (84 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 395

*References:*
- [erdosproblems.com/395](https://www.erdosproblems.com/395)
- [Er45] Erdős, P., *On a lemma of Littlewood and Offord*. Bull. Amer. Math. Soc. (1945),
  898--902.
- [CaCa11] Carnielli, Walter and Carolino, Pietro K., *Adjusting a conjecture of Erdős*. Contrib.
  Discrete Math. (2011), 154--159.
- [HJNS24] X. He, T. Juškevičius, B. Narayanan, and S. Spiro, *The Reverse Littlewood-Offord
  problem of Erdős*. arXiv:2408.11034 (2024).
-/

@[expose] public section

namespace Erdos395

/-- The number of sign patterns $\epsilon \in \{-1,1\}^n$ with
$\lvert \epsilon_1z_1+\cdots+\epsilon_nz_n\rvert \leq r$. -/
noncomputable def signedSumCount {n : ℕ} (z : Fin n → ℂ) (r : ℝ) : ℕ :=
  {ε : Fin n → ℤ | (∀ i, ε i = -1 ∨ ε i = 1) ∧ ‖∑ i, (ε i : ℂ) * z i‖ ≤ r}.ncard

set_option linter.style.formal_proof_palomar false in
/--
If $z_1,\ldots,z_n\in \mathbb{C}$ with $\lvert z_i\rvert=1$ then is it true that the probability
that
$$\lvert \epsilon_1z_1+\cdots+\epsilon_nz_n\rvert \leq \sqrt{2},$$
where $\epsilon_i\in \{-1,1\}$ uniformly at random, is $\gg 1/n$?

A reverse Littlewood-Offord problem. Erdős originally asked this with $\sqrt{2}$ replaced by $1$,
but Carnielli and Carolino [CaCa11] observed that this is false, choosing $z_1=1$ and $z_k=i$
for $2\leq k\leq n$, where $n$ is even, since then the sum is at least $\sqrt{2}$ always.

Solved in the affirmative by He, Juškevičius, Narayanan, and Spiro [HJNS24]. The bound of $1/n$
is the best possible, as shown by taking $z_k=1$ for $1\leq k\leq n/2$ and $z_k=i$ otherwise.

See also [498](https://www.erdosproblems.com/498).
-/
@[category research solved, question, AMS 5 60, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos395.lean#L4058"]
theorem erdos_395 : ∃ c : ℝ, 0 < c ∧ ∀ n : ℕ, 0 < n → ∀ z : Fin n → ℂ,
    (∀ i, ‖z i‖ = 1) → c / n ≤ (signedSumCount z √2 : ℝ) / 2 ^ n := by
  sorry

/--
Erdős originally asked [erdős_395](https://www.erdosproblems.com/395) with $\sqrt{2}$ replaced by
$1$, but Carnielli and Carolino [CaCa11] observed that this is false, choosing $z_1=1$ and $z_k=i$
for $2\leq k\leq n$, where $n$ is even, since then the sum is at least $\sqrt{2}$ always.
-/
@[category research solved, question, AMS 5 60]
theorem erdos_395.variants.one : ¬ ∃ c : ℝ, 0 < c ∧ ∀ n : ℕ, 0 < n →
    ∀ z : Fin n → ℂ, (∀ i, ‖z i‖ = 1) → c / n ≤ (signedSumCount z 1 : ℝ) / 2 ^ n := by
  sorry

/--
The bound of $1/n$ in [erdős_395](https://www.erdosproblems.com/395) is the best possible, as
shown by taking $z_k=1$ for $1\leq k\leq n/2$ and $z_k=i$ otherwise.
-/
@[category research solved, AMS 5 60]
theorem erdos_395.variants.sharp : ∃ C : ℝ, ∀ n : ℕ, 0 < n → ∃ z : Fin n → ℂ,
    (∀ i, ‖z i‖ = 1) ∧ (signedSumCount z √2 : ℝ) / 2 ^ n ≤ C / n := by
  sorry

end Erdos395

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

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