FormalConjectures/ErdosProblems/541.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
3 declarations, 3 contain sorry, 0 declared as axioms
Erdős Problem 541
References:
- 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.
Imports (1)
- theorem
Erdos541.erdos_541Documented declaration: erdos_541 sorry line 48 sourceSource documentation
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.
depends on sorry what this means
Statement uses:
Iff,True,Nat,Fact,Nat.Prime,Fin,ZMod,Exists,Finset,Ne,EmptyCollection.emptyCollection,Eq,Finset.sum,OfNat.ofNat,Finset.card,LE.le,Set.ncard,Set.rangeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous20 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_541 : answer(True) ↔ (∀ 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 … - theorem
Erdos541.erdos_541.variants.general_moduliGao, Hamidoune, and Wang [GHW10] solved this for all modulip(not necessarily prime) sorry line 55 sourceSource documentation
Gao, Hamidoune, and Wang [GHW10] solved this for all moduli
p(not necessarily prime).depends on sorry what this means
Statement uses:
Nat,Fin,ZMod,Exists,Finset,Ne,EmptyCollection.emptyCollection,Eq,Finset.sum,OfNat.ofNat,Finset.card,LE.le,Set.ncard,Set.rangeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous20 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
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 … - theorem
Erdos541.erdos_541.variants.large_primesThis was proved by Erdős and Szemerédi [ErSz76] for p sufficiently large sorry line 62 sourceSource documentation
This was proved by Erdős and Szemerédi [ErSz76] for p sufficiently large.
depends on sorry what this means
Statement uses:
Filter.Eventually,Nat,Nat.Prime,Fin,ZMod,Exists,Finset,Ne,EmptyCollection.emptyCollection,Eq,Finset.sum,OfNat.ofNat,Finset.card,LE.le,Set.ncard,Set.range,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous22 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
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 …