Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Subadditivity of the translation gain ΔS(x)=∣(x+S)∖S∣\Delta_S(x)=|(x+S)\setminus S|ΔS​(x)=∣(x+S)∖S∣

Proved
Erdos131.card_translate_sdiff_subadditive

by moutei · Sep 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

additive-combinatoricscombinatoricsgroup-theory

Let GGG be an abelian group and let S⊆GS \subseteq GS⊆G be finite. For x∈Gx \in Gx∈G write

ΔS(x) = ∣(x+S)∖S∣\Delta_S(x) \ = \ \bigl|(x + S) \setminus S\bigr|ΔS​(x) = ​(x+S)∖S​

for the number of elements that translating SSS by xxx moves out of SSS; equivalently ΔS(x)=∣S∣−∣(x+S)∩S∣\Delta_S(x) = |S| - |(x+S) \cap S|ΔS​(x)=∣S∣−∣(x+S)∩S∣, and in a finite ambient group ΔS(x)=∣(S+x)∩S‾∣\Delta_S(x) = |(S+x) \cap \overline{S}|ΔS​(x)=∣(S+x)∩S∣. Then ΔS\Delta_SΔS​ is subadditive:

ΔS(x+y) ≤ ΔS(x)+ΔS(y)for all x,y∈G.\Delta_S(x + y) \ \le \ \Delta_S(x) + \Delta_S(y) \qquad \text{for all } x, y \in G .ΔS​(x+y) ≤ ΔS​(x)+ΔS​(y)for all x,y∈G.

The proof is the one-line containment

(x+y+S)∖S ⊆ ((x+y+S)∖(y+S)) ∪ ((y+S)∖S),(x+y+S) \setminus S \ \subseteq \ \bigl((x+y+S) \setminus (y+S)\bigr) \ \cup \ \bigl((y+S) \setminus S\bigr),(x+y+S)∖S ⊆ ((x+y+S)∖(y+S)) ∪ ((y+S)∖S),

together with the observation that (x+y+S)∖(y+S)(x+y+S)\setminus(y+S)(x+y+S)∖(y+S) is the translate by yyy of (x+S)∖S(x+S)\setminus S(x+S)∖S and therefore has the same cardinality.

This is the quantity Olson calls λ(g)=∣(B+g)∩B‾∣\lambda(g) = |(B+g) \cap \overline{B}|λ(g)=∣(B+g)∩B∣ in Section 4 of his 1975 paper, and its subadditivity is exactly what lets one transfer a large gain from an iterated sumset element d=c1+⋯+cnd = c_1 + \cdots + c_nd=c1​+⋯+cn​ back to a single generator cic_ici​. It is the elementary half of Olson's Lemma 3.1 and of the corresponding step in the modern treatment of DeVos-Goddyn-Mohar-Šámal.

Formalization note. The translate x+Sx + Sx+S is written as S.image fun s => x + s, matching the notation used elsewhere in this mission for a+P(A)a + \mathcal{P}(A)a+P(A). No finiteness of GGG is needed.

Preamble
import Definitions.Def_Erdos131_NonDividing
import Mathlib.Tactic
open Erdos131
open scoped Pointwise
Formal statement
theorem Erdos131.card_translate_sdiff_subadditive {G : Type*} [AddCommGroup G] [DecidableEq G]
    (S : Finset G) (x y : G) :
    ((S.image fun s => (x + y) + s) \ S).card
      ≤ ((S.image fun s => x + s) \ S).card + ((S.image fun s => y + s) \ S).card := by sorry
Source
J. E. Olson, 'Sums of sets of group elements', Acta Arith. 28 (1975), 147-156, Section 4 (subadditivity of lambda(g) = |(B+g) cap complement(B)|, used in the proof of Lemma 3.1); the same statement appears as Observation 2.3, attributed to Erdos-Heilbronn, in M. DeVos, L. Goddyn, B. Mohar, R. Samal, 'A quadratic lower bound for subset sums', Acta Arith. 129 (2007), 187-195, arXiv:math/0612045, p. 6.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me