Title:Erdős Problem 541 · variants.general_moduli
Statement:Gao, Hamidoune, and Wang [GHW10] solved this for all moduli
p(not necessarily prime).
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.02418 [math.NT] · NS.02418v1 for this version |
| Declaration: | Erdos541.erdos_541.variants.general_moduli |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10; accepted critique: up to 100 |
| Statement hash: | f459cbede6cb88277fbac44560f30b516d6b897c5bbaa35a50671992161b6d04 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/541.lean |
Formal statement
theorem erdos_541.variants.general_moduli (p : ℕ) (a : Fin p → ZMod p)
(ha₀ : ∃ r, ∀ (S : Finset (Fin p)), S ≠ ∅ → ∑ i ∈ S, a i = 0 → S.card = r) :
(Set.range a).ncard ≤ 2Show the full Challenge.lean (69 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 541
*References:*
- [erdosproblems.com/541](https://www.erdosproblems.com/541)
- [ErSz76] Erdős, E. and Szemerédi, E., On a problem of Graham. Publ. Math. Debrecen (1976),
123--127.
- [GHW10] Gao, Weidong and Hamidoune, Yahya Ould and Wang, Guoqing, Distinct length modular zero-sum
subsequences: a proof of Graham's conjecture. J. Number Theory (2010), 1425--1431.
-/
@[expose] public section
open Filter
namespace Erdos541
set_option linter.style.formal_proof_palomar false in
/--
Let $a_1, \dots, a_p$ be (not necessarily distinct) residues modulo a prime $p$, such that there
exists some $r$ so that if $S \subseteq [p]$ is non-empty and
$$\sum_{i \in S} a_i \equiv 0 \pmod{p}$$
then $|S| = r$.
Must there be at most two distinct residues amongst the $a_i$?
This was formalized in Lean by Alexeev using Aristotle and ChatGPT.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.24.0/ErdosProblems/Erdos541.lean"]
theorem erdos_541 : (∀ p, Fact p.Prime → ∀ (a : Fin p → ZMod p),
(∃ r, ∀ (S : Finset (Fin p)), S ≠ ∅ → ∑ i ∈ S, a i = 0 → S.card = r) →
(Set.range a).ncard ≤ 2) := by
sorry
/-- Gao, Hamidoune, and Wang [GHW10] solved this for all moduli `p` (not necessarily prime). -/
@[category research solved, AMS 11]
theorem erdos_541.variants.general_moduli (p : ℕ) (a : Fin p → ZMod p)
(ha₀ : ∃ r, ∀ (S : Finset (Fin p)), S ≠ ∅ → ∑ i ∈ S, a i = 0 → S.card = r) :
(Set.range a).ncard ≤ 2 := by
sorry
/-- This was proved by Erdős and Szemerédi [ErSz76] for p sufficiently large. -/
@[category research solved, AMS 11]
theorem erdos_541.variants.large_primes : ∀ᶠ p in atTop, p.Prime → ∀ a : Fin p → ZMod p,
(∃ r, ∀ (S : Finset (Fin p)), S ≠ ∅ → ∑ i ∈ S, a i = 0 → S.card = r) →
(Set.range a).ncard ≤ 2 := by
sorry
end Erdos541
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos541.erdos_541.variants.general_moduli with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_general_moduli : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk erdos-541--erdos-541-variants-general-moduli # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch erdos-541--erdos-541-variants-general-moduli nosorry submit erdos-541--erdos-541-variants-general-moduli nosorry/erdos-541--erdos-541-variants-general-moduli/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.