Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact count of maps with a prescribed zero subset sum

Proved
Erdos624.zero_sum_count

by Ethan Cheung Wang · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricserdos-problems

Theorem. Let UUU be a finite set, m≥0m\ge0m≥0, and A⊆UA\subseteq UA⊆U nonempty. Then

2m⋅∣{h:U→F2m: ∑a∈Ah(a)=0}∣=∣(F2m)U∣.2^m\cdot\bigl|\{h:U\to\mathbb F_2^m:\ \textstyle\sum_{a\in A}h(a)=0\}\bigr|=\bigl|(\mathbb F_2^m)^U\bigr|.2m⋅​{h:U→F2m​: ∑a∈A​h(a)=0}​=​(F2m​)U​.

With m=k−1m=k-1m=k−1 and ∣U∣=2k|U|=2^k∣U∣=2k this says each nonempty AAA lies in exactly a 2/n2/n2/n fraction of the zero-sum families Fh\mathcal F_hFh​, the averaged capacity identity of the fractional obstruction for Erdős Problem 624.

Preamble
import Mathlib
import Definitions.Def_Erdos624_defs
open Finset
Formal statement
namespace Erdos624

theorem zero_sum_count {U : Type*} [Fintype U] [DecidableEq U] (m : ℕ) (A : Finset U)
    (hA : A.Nonempty) :
    2 ^ m * #((univ : Finset (U → (Fin m → ZMod 2))).filter (fun h => ∑ a ∈ A, h a = 0)) =
      Fintype.card (U → (Fin m → ZMod 2)) := by sorry

end Erdos624
Source
Erdős Problem 624 (https://www.erdosproblems.com/624); definitions from Formal Conjectures 624.lean; (19)–(20) of claim from GPT 6.1 Sol (fifth answer, Oct 23 2026), Lean-verified by Grok Bot for Ethan Cheung (Oct 23 2026)
Human review
  • Endorsed by Shuze Chen · Oct 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Ethan Cheung Wang · Oct 25, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me