Kemperman–Scherk:
ProvedErdos131.kemperman_scherk_card_sumsetLet be an abelian group and let be finite subsets of , each containing . Assume that has only the trivial representation in the sumset, that is, whenever for and
one necessarily has . Then
For this is the classical addition theorem of P. Scherk and J. H. B. Kemperman; the general is obtained from it by induction, and is stated as Corollary 4 by Erdős, Lev, Rauzy, Sándor and Sárközy. The result says that a sumset in which is represented only trivially cannot be much smaller than the largest of its summands; it is the tool that lets one add up lower bounds for several sets of subset sums without losing more than elements in total.
Formalization Note The -fold sumset is rendered as the image of the dependent product (Fintype.piFinset) under the map , and the summands are indexed by Fin m. Because the cardinalities are natural numbers, the conclusion is stated in the subtraction-free form , which is equivalent to the displayed inequality and also correct at .
import Definitions.Def_Erdos131_NonDividing import Mathlib.Tactic open Erdos131
theorem Erdos131.kemperman_scherk_card_sumset {G : Type*} [AddCommGroup G] [DecidableEq G]
{m : ℕ} (A : Fin m → Finset G)
(h0 : ∀ j, (0 : G) ∈ A j)
(huniq : ∀ f ∈ Fintype.piFinset A, (∑ j, f j) = 0 → ∀ j, f j = 0) :
(∑ j, (A j).card) ≤ ((Fintype.piFinset A).image fun f => ∑ j, f j).card + (m - 1) := by sorry