Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Davenport constant of `C_p ⊕ C_p`, Chevalley–Warning form.

Proved
Heisenberg125.exists_nonempty_zeroSum_pair

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogalgebra

Davenport constant of C_p ⊕ C_p, Chevalley–Warning form. Given n ≥ 2p - 1 pairs (u i, w i) of elements of ZMod p, some nonempty set of indices has both coordinate sums equal to zero.

theorem Heisenberg125.exists_nonempty_zeroSum_pair{n : ℕ} (u w : Fin n → ZMod p) (hn : 2 * p - 1 ≤ n) :
    ∃ t : Finset (Fin n), t.Nonempty ∧ ∑ i ∈ t, u i = 0 ∧ ∑ i ∈ t, w i = 0 := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Algebra/Heisenberg125/ZeroSumTwoDim.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Algebra/Heisenberg125/ZeroSumTwoDim.lean
import Mathlib
import Definitions.Def_Algebra_Heisenberg125_ZeroSumTwoDim
/-
# The Davenport constant of `(ZMod p)^2`: `D(C_p ⊕ C_p) ≤ 2p - 1`

This file proves, by an application of the **Chevalley–Warning theorem**, that
any sequence of `2p - 1` vectors in `(ZMod p)^2` admits a nonempty subsequence
summing to zero (`exists_nonempty_zeroSum_sublist`).

This is the additive-combinatorial engine behind the "line bound" of
`Algebra.Heisenberg125.LineBound`: the preimage in `H_{p^3}` of a line through
the origin of `(ZMod p)^2` is an abelian subgroup isomorphic to `C_p ⊕ C_p`, and
product-one-freeness there is exactly zero-sum-freeness in `(ZMod p)^2`.

The Finset version `exists_nonempty_zeroSum_pair` is stated for two coordinate
functions `u, w : Fin n → ZMod p` so that it can be applied directly to
arbitrary pairs of `ZMod p`-valued statistics of a sequence.
-/

open Heisenberg125

open Finset MvPolynomial

variable {p : ℕ} [Fact p.Prime]
Formal statement
theorem Heisenberg125.exists_nonempty_zeroSum_pair{n : ℕ} (u w : Fin n → ZMod p) (hn : 2 * p - 1 ≤ n) :
    ∃ t : Finset (Fin n), t.Nonempty ∧ ∑ i ∈ t, u i = 0 ∧ ∑ i ∈ t, w i = 0 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Algebra/Heisenberg125/ZeroSumTwoDim.lean#L111

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