FormalConjectures/ErdosProblems/540.lean

GitHub source file

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

2 declarations, 1 contain sorry, 0 declared as axioms

Erdős Problem 540

References:

Imports (1)
  1. def Erdos540.HasZeroSubsetSum A finite set has a non-empty subset whose sum is zero line 48 source

    Source documentation

    A finite set has a non-empty subset whose sum is zero.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: AddCommMonoid, Finset

    Proof uses: Exists, And, LE.le, Finset.Nonempty, Eq, Finset.sum, id, OfNat.ofNat

    8 instances, coercions and auxiliary constants left out.

    def HasZeroSubsetSum {G : Type*} [AddCommMonoid G] (A : Finset G) : Prop :=
    …
  2. theorem Erdos540.erdos_540 Is it true that if $A\subseteq \mathbb{Z}/N\mathbb{Z}$ has size $\gg N^{1/2}$ then there exists some non-empty $S\subseteq A$ such that $\sum_{n\in S}n\equiv 0\pmod{N}$? sorry line 58 source

    Source documentation

    Is it true that if $A\subseteq \mathbb{Z}/N\mathbb{Z}$ has size $\gg N^{1/2}$ then there exists some non-empty $S\subseteq A$ such that $\sum_{n\in S}n\equiv 0\pmod{N}$?

    Szemerédi proved the answer is yes, in fact for arbitrary finite abelian groups.

    depends on sorry what this means

    Statement uses: Iff, True, Exists, Real, And, LT.lt, OfNat.ofNat, Nat, Finset, ZMod, LE.le, HMul.hMul, Real.sqrt, Finset.card, Erdos540.HasZeroSubsetSum

    Proof uses: sorryAx, Lean.Name, Bool.false, Lean.Name.num, Lean.Name.str, Lean.Name.anonymous

    28 instances, coercions and auxiliary constants left out.

    Tactic trace: 1 steps

    Open to load the checked before-and-after goal states.

    theorem erdos_540 : answer(True) ↔
        ∃ C : ℝ, 0 < C ∧
          ∀ (N : ℕ), 0 < N → ∀ A : Finset (ZMod N),
            C * Real.sqrt N ≤ A.card →
              HasZeroSubsetSum A := by
    …

    Mentions: Erdos540.HasZeroSubsetSum