Basic #
Every sequence of exactly n vectors in š½_p^d has a zero-sum
subsequence of length p.
Equations
- EGZ.EGZProperty p d n = ā (a : Fin n ā EGZ.FpVec p d), EGZ.HasZeroSumSubsequence p a
Instances For
A family vā, ..., vā is p-hollow when the only nonnegative integer
combinations of total weight p that sum to zero put all their weight on a
single vector. For prime p, this condition forces v to be injective.
Equations
Instances For
There is a p-hollow family of s vectors in š½_p^d.
Equations
- EGZ.AdmitsPHollowLength p d s = ā (v : Fin s ā EGZ.FpVec p d), EGZ.IsPHollow p v
Instances For
The cardinality of š½_p^d (when p is nonzero, as it is for primes).
Operational form of hollowness: a p-term sum of members of a hollow
family vanishes exactly when all p selected members have the same index.
The indexing type is arbitrary; the cardinality hypothesis is what records
that the sum has exactly p terms.
The existence predicate for hollow families inherits the ambient cardinality bound.
The empty family is hollow for every positive modulus.
Exact-length EGZ properties persist when more terms are appended.
A crude pigeonhole upper bound. It is not intended to be sharp; its role is to establish that the least EGZ length is well-defined.
Some exact length has the EGZ property, uniformly for all natural p.
Repeating each member of a positive-modulus hollow family only p - 1
times gives a sequence with no p-term zero sum.