op861_order_three_character_sum_bound
In a finite abelian group in which three times every element is zero, every nontrivial complex additive character has a sum of norm at most one third of the group order over any finite subset.
Statement
theorem op861_order_three_character_sum_bound (G : Type*) [AddCommGroup G] [Fintype G] [DecidableEq G] (h3 : ∀ t : G, t+t+t = 0) (χ : AddChar G ℂ) (hχ : χ ≠ 0) (S : Finset G) : 3 * ‖∑ x ∈ S, χ x‖ ≤ (Fintype.card G : ℝ)
- Source
- Translation-orbit estimate used in op861_ternary_crossing_pairs_dense.
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- op861_third_roots_subset_sum_normFor a nontrivial complex cube root of unity of norm one, every sum of a subset of 1, u, and u squared has norm at most one.
- Used by 2
- op861_order_three_zero_sum_upperIn a finite abelian group where three times every element is zero, for every finite subset S, three times the group order times the number…
- op861_ternary_crossing_pairs_denseFor every positive d and every subset S of the d-dimensional ternary vector space with twice its size equal to 3^d+1, there are at least…
The proof, explained
In a finite abelian group where 3x = 0 for all x, every nontrivial complex additive character χ takes values in the cube roots of unity {1, ω, ω²}, and there is an element t with χ(t) ≠ 1. Extending χ|_S by zero to a function w, we form the three-term coset average v(x) = w(x) + w(x+t) + w(x+2t). By translation invariance, the sum of v over G equals 3 ∑_{x ∈ S} χ(x), while at each point x, v(x) factors as χ(x) times a sub-sum of {1, χ(t), (χ(t))²}, which has norm at most 1. Applying the triangle inequality and summing this pointwise bound over all |G| elements gives 3 ‖∑_{x ∈ S} χ(x)‖ ≤ |G|.
There exists an element t ∈ G such that χ(t) ≠ 1.
Since χ ≠ 0, the character χ is not the trivial character that sends every element to 1. By contradiction, if χ(t) = 1 for all t ∈ G, then by extensionality χ would equal 0, contradicting χ ≠ 0. We fix an element t with χ(t) ≠ 1.
classical have ht : ∃ t : G, χ t ≠ 1 := by by_contra! h apply hχ ext t simpa using h t obtain ⟨t, ht⟩ := ht
The value χ(t) is a cube root of unity: (χ(t))³ = 1.
By assumption, 3t = t + t + t = 0 for all t ∈ G. Applying χ to this equality and using the fact that χ is an additive character gives (χ(t))³ = χ(t + t + t) = χ(0) = 1.
uses
AddChar.map_add_eq_mul,pow_succ,mul_assoc,congrArghave hpow : (χ t)^3 = 1 := by simpa [AddChar.map_add_eq_mul, pow_succ, mul_assoc] using congrArg χ (h3 t)
The extension w of χ|_S by zero sums to ∑_{x ∈ S} χ(x), and its sum over G is invariant under translation by any a ∈ G.
We define w(x) = χ(x) for x ∈ S and 0 otherwise, and define v(x) = w(x) + w(x+t) + w(x+2t). Summing w over G collapses to the sum over S by definition of w. Furthermore, right addition by any a ∈ G is a permutation of G, so reindexing by Equiv.addRight a shows that ∑_{x ∈ G} w(x+a) = ∑_{x ∈ G} w(x).
uses
Fintype.sum_equiv,Equiv.addRightlet w : G → ℂ := fun x => if x ∈ S then χ x else 0 let v : G → ℂ := fun x => w x + w (x+t) + w (x+(t+t)) have htrans (a : G) : (∑ x : G, w (x+a)) = ∑ x : G, w x := by exact Fintype.sum_equiv (Equiv.addRight a) _ _ (fun _ => rfl) have hw : (∑ x : G, w x) = ∑ x ∈ S, χ x := by simp [w]
For every x ∈ G, ‖v(x)‖ ≤ 1.
For any x, the three terms of v(x) factor as χ(x) multiplied by a sum of a subset of {1, χ(t), (χ(t))²}, according to whether x, x+t, and x+2t belong to S. Since ‖χ(x)‖ = 1 and χ(t) is a nontrivial cube root of unity with ‖χ(t)‖ = 1, the helper lemma op861_third_roots_subset_sum_norm guarantees that this subset sum has norm at most 1.
uses
op861_third_roots_subset_sum_norm,χ.norm_apply,AddChar.map_add_eq_mul,pow_two,norm_mul,one_mulhave hv (x : G) : ‖v x‖ ≤ 1 := by let a : Bool := decide (x ∈ S) let b : Bool := decide (x+t ∈ S) let c : Bool := decide (x+(t+t) ∈ S) have hb := op861_third_roots_subset_sum_norm (χ t) hpow ht (χ.norm_apply t) a b c have heq : v x = χ x * ((if a then (1 : ℂ) else 0) + (if b then χ t else 0) + (if c then (χ t)^2 else 0)) := by dsimp [v, w, a, b, c] simp only [AddChar.map_add_eq_mul, pow_two] split_ifs <;> simp_all <;> ring rw [heq, norm_mul, χ.norm_apply, one_mul] exact hb
The total sum ∑_{x ∈ G} v(x) equals 3 ∑_{x ∈ S} χ(x).
Expanding v(x) into its three terms w(x) + w(x+t) + w(x+2t) and distributing the sum over G gives three sums. By translation invariance, each of the three sums equals ∑_{x ∈ G} w(x) = ∑_{x ∈ S} χ(x), so their sum is 3 ∑_{x ∈ S} χ(x).
uses
Finset.sum_add_distribhave hsum : (∑ x : G, v x) = (3 : ℂ) * ∑ x ∈ S, χ x := by simp only [v, Finset.sum_add_distrib, htrans, hw] ring
3 ‖∑_{x ∈ S} χ(x)‖ ≤ |G|.
Rewriting 3 ∑_{x ∈ S} χ(x) as ∑_{x ∈ G} v(x), we apply the triangle inequality to bound its norm by ∑_{x ∈ G} ‖v(x)‖. Because ‖v(x)‖ ≤ 1 for each of the |G| elements of G, the sum is bounded by |G|.
uses
norm_sum_le,Finset.sum_le_sumcalc 3 * ‖∑ x ∈ S, χ x‖ = ‖(3 : ℂ) * ∑ x ∈ S, χ x‖ := by simp _ = ‖∑ x : G, v x‖ := by rw [hsum] _ ≤ ∑ x : G, ‖v x‖ := norm_sum_le _ _ _ ≤ ∑ _x : G, (1 : ℝ) := Finset.sum_le_sum fun x hx => hv x _ = (Fintype.card G : ℝ) := by simp
AddChar.map_add_eq_mul- An additive character transforms addition into multiplication: ψ(x + y) = ψ(x) · ψ(y).
Equiv.addRight- In an additive group G, right addition by an element a is an equivalence (permutation) of G sending x to x + a.
Fintype.sum_equiv- A finite sum can be reindexed along an equivalence (bijection) e: if f(x) = g(e(x)) everywhere, then ∑ x, f(x) = ∑ y, g(y).
Finset.sum_add_distrib- The sum of a sum of functions over a finite set equals the sum of their individual sums: ∑ (f(x) + g(x)) = ∑ f(x) + ∑ g(x).
Finset.sum_le_sum- If f(x) ≤ g(x) for all x in a finite set s, then ∑ x ∈ s, f(x) ≤ ∑ x ∈ s, g(x).
congrArg- Functions respect equality: if a = b, then f(a) = f(b).
mul_assoc- Associativity of multiplication: (a · b) · c = a · (b · c).
norm_mul- The norm of a product is the product of the norms: ‖a · b‖ = ‖a‖ · ‖b‖.
norm_sum_le- The triangle inequality for finite sums: the norm of a sum is at most the sum of the norms, ‖∑ x, f(x)‖ ≤ ∑ x, ‖f(x)‖.
one_mul- Multiplying by 1 on the left is the identity: 1 · a = a.
op861_third_roots_subset_sum_norm- For any nontrivial complex cube root of unity u with ‖u‖ = 1, any sub-sum of {1, u, u²} has norm at most 1.
pow_succ- Successor power in a monoid: a^(n + 1) = a^n · a.
pow_two- The square of an element is the product with itself: a² = a · a.
χ.norm_apply- Every value of the complex additive character χ has complex norm 1: ‖χ(t)‖ = 1.
- In Mathlib, characters into a commutative ring are treated additively, so the trivial character is denoted by 0 (which sends every element to 1 ∈ ℂ), and the assumption χ ≠ 0 means χ is nontrivial.
- In Step 4, the algebraic identity factoring χ(x) out of v(x) across all eight combinations of whether x, x+t, and x+2t belong to S is verified automatically by `split_ifs <;> simp_all <;> ring`.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
open scoped BigOperatorstheorem op861_order_three_character_sum_bound (G : Type*) [AddCommGroup G] [Fintype G] [DecidableEq G] (h3 : ∀ t : G, t+t+t = 0) (χ : AddChar G ℂ) (hχ : χ ≠ 0) (S : Finset G) : 3 * ‖∑ x ∈ S, χ x‖ ≤ (Fintype.card G : ℝ) := by classical have ht : ∃ t : G, χ t ≠ 1 := by by_contra! h apply hχ ext t simpa using h t obtain ⟨t, ht⟩ := ht have hpow : (χ t)^3 = 1 := by simpa [AddChar.map_add_eq_mul, pow_succ, mul_assoc] using congrArg χ (h3 t) let w : G → ℂ := fun x => if x ∈ S then χ x else 0 let v : G → ℂ := fun x => w x + w (x+t) + w (x+(t+t)) have htrans (a : G) : (∑ x : G, w (x+a)) = ∑ x : G, w x := by exact Fintype.sum_equiv (Equiv.addRight a) _ _ (fun _ => rfl) have hw : (∑ x : G, w x) = ∑ x ∈ S, χ x := by simp [w] have hv (x : G) : ‖v x‖ ≤ 1 := by let a : Bool := decide (x ∈ S) let b : Bool := decide (x+t ∈ S) let c : Bool := decide (x+(t+t) ∈ S) have hb := op861_third_roots_subset_sum_norm (χ t) hpow ht (χ.norm_apply t) a b c have heq : v x = χ x * ((if a then (1 : ℂ) else 0) + (if b then χ t else 0) + (if c then (χ t)^2 else 0)) := by dsimp [v, w, a, b, c] simp only [AddChar.map_add_eq_mul, pow_two] split_ifs <;> simp_all <;> ring rw [heq, norm_mul, χ.norm_apply, one_mul] exact hb have hsum : (∑ x : G, v x) = (3 : ℂ) * ∑ x ∈ S, χ x := by simp only [v, Finset.sum_add_distrib, htrans, hw] ring calc 3 * ‖∑ x ∈ S, χ x‖ = ‖(3 : ℂ) * ∑ x ∈ S, χ x‖ := by simp _ = ‖∑ x : G, v x‖ := by rw [hsum] _ ≤ ∑ x : G, ‖v x‖ := norm_sum_le _ _ _ ≤ ∑ _x : G, (1 : ℝ) := Finset.sum_le_sum fun x hx => hv x _ = (Fintype.card G : ℝ) := by simp