The areas / V30. Combinatorics
Mathlib.Combinatorics.Additive.Energy
49 declarations. Mathlib docs · Source
Additive energy
This file defines the additive energy of two finsets of a group. This is a central quantity in additive combinatorics.
Main declarations
Finset.addEnergy: The additive energy of two finsets in an additive group.Finset.mulEnergy: The multiplicative energy of two finsets in a group.
Notation
The following notations are defined in the Combinatorics.Additive scope:
E[s, t]forFinset.addEnergy s t.Eₘ[s, t]forFinset.mulEnergy s t.E[s]forE[s, s].Eₘ[s]forEₘ[s, s].
TODO
It's possibly interesting to have
(s ×ˢ s) ×ˢ t ×ˢ t).filter (fun x : (α × α) × α × α ↦ x.1.1 * x.2.1 = x.1.2 * x.2.2)
(whose card is mulEnergy s t) as a standalone definition.
theorem Finset.mulEnergy.congr_simp E1 #
∀ {α : Type u_1} {inst : DecidableEq α} [inst_1 : DecidableEq α] [inst_2 : Mul α] (s s_1 : Finset α),
s = s_1 → ∀ (t t_1 : Finset α), t = t_1 → s.mulEnergy t = s_1.mulEnergy t_1
def Finset.mulEnergy E3 #
{α : Type u_1} → [DecidableEq α] → [Mul α] → Finset α → Finset α → ℕ
The multiplicative energy Eₘ[s, t] of two finsets s and t in a group is the number of
quadruples (a₁, a₂, b₁, b₂) ∈ s × s × t × t such that a₁ * b₁ = a₂ * b₂.
The notation Eₘ[s, t] is available in scope Combinatorics.Additive.
def Finset.addEnergy E3 #
{α : Type u_1} → [DecidableEq α] → [Add α] → Finset α → Finset α → ℕ
The additive energy E[s, t] of two finsets s and t in a group is the number of quadruples
(a₁, a₂, b₁, b₂) ∈ s × s × t × t such that a₁ + b₁ = a₂ + b₂.
The notation E[s, t] is available in scope Combinatorics.Additive.
def Combinatorics.Additive.«termEₘ[_,_]» E1 #
Lean.ParserDescr
The multiplicative energy of two finsets s and t in a group is the number of quadruples
(a₁, a₂, b₁, b₂) ∈ s × s × t × t such that a₁ * b₁ = a₂ * b₂.
def Combinatorics.Additive.«termE[_,_]» E1 #
Lean.ParserDescr
The additive energy of two finsets s and t in a group is the number of quadruples
(a₁, a₂, b₁, b₂) ∈ s × s × t × t such that a₁ + b₁ = a₂ + b₂.
def Combinatorics.Additive.«termEₘ[_]» E1 #
Lean.ParserDescr
The multiplicative energy of a finset s in a group is the number of quadruples
(a₁, a₂, b₁, b₂) ∈ s × s × s × s such that a₁ * b₁ = a₂ * b₂.
def Combinatorics.Additive.«termE[_]» E1 #
Lean.ParserDescr
The additive energy of a finset s in a group is the number of quadruples
(a₁, a₂, b₁, b₂) ∈ s × s × s × s such that a₁ + b₁ = a₂ + b₂.
theorem Finset.addEnergy_mono E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s₁ s₂ t₁ t₂ : Finset α},
s₁ ⊆ s₂ → t₁ ⊆ t₂ → s₁.addEnergy t₁ ≤ s₂.addEnergy t₂
theorem Finset.mulEnergy_mono E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s₁ s₂ t₁ t₂ : Finset α},
s₁ ⊆ s₂ → t₁ ⊆ t₂ → s₁.mulEnergy t₁ ≤ s₂.mulEnergy t₂
theorem Finset.addEnergy_mono_left E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s₁ s₂ t : Finset α}, s₁ ⊆ s₂ → s₁.addEnergy t ≤ s₂.addEnergy t
theorem Finset.mulEnergy_mono_left E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s₁ s₂ t : Finset α}, s₁ ⊆ s₂ → s₁.mulEnergy t ≤ s₂.mulEnergy t
theorem Finset.mulEnergy_mono_right E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s t₁ t₂ : Finset α}, t₁ ⊆ t₂ → s.mulEnergy t₁ ≤ s.mulEnergy t₂
theorem Finset.addEnergy_mono_right E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s t₁ t₂ : Finset α}, t₁ ⊆ t₂ → s.addEnergy t₁ ≤ s.addEnergy t₂
theorem Finset.le_addEnergy E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s t : Finset α}, s.card * t.card ≤ s.addEnergy t
theorem Finset.le_mulEnergy E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s t : Finset α}, s.card * t.card ≤ s.mulEnergy t
theorem Finset.le_mulEnergy_self E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s : Finset α}, s.card ^ 2 ≤ s.mulEnergy s
theorem Finset.le_addEnergy_self E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s : Finset α}, s.card ^ 2 ≤ s.addEnergy s
theorem Finset.mulEnergy_pos E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s t : Finset α}, s.Nonempty → t.Nonempty → 0 < s.mulEnergy t
theorem Finset.addEnergy_pos E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s t : Finset α}, s.Nonempty → t.Nonempty → 0 < s.addEnergy t
theorem Finset.addEnergy_self_pos E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s : Finset α}, s.Nonempty → 0 < s.addEnergy s
theorem Finset.mulEnergy_self_pos E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s : Finset α}, s.Nonempty → 0 < s.mulEnergy s
theorem Finset.addEnergy_empty_left E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] (t : Finset α), ∅.addEnergy t = 0
theorem Finset.mulEnergy_empty_left E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] (t : Finset α), ∅.mulEnergy t = 0
theorem Finset.mulEnergy_empty_right E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] (s : Finset α), s.mulEnergy ∅ = 0
theorem Finset.addEnergy_empty_right E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] (s : Finset α), s.addEnergy ∅ = 0
theorem Finset.mulEnergy_pos_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s t : Finset α}, 0 < s.mulEnergy t ↔ s.Nonempty ∧ t.Nonempty
theorem Finset.addEnergy_pos_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s t : Finset α}, 0 < s.addEnergy t ↔ s.Nonempty ∧ t.Nonempty
theorem Finset.mulEnergy_eq_zero_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s t : Finset α}, s.mulEnergy t = 0 ↔ s = ∅ ∨ t = ∅
theorem Finset.addEnergy_eq_zero_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s t : Finset α}, s.addEnergy t = 0 ↔ s = ∅ ∨ t = ∅
theorem Finset.mulEnergy_self_pos_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s : Finset α}, 0 < s.mulEnergy s ↔ s.Nonempty
theorem Finset.addEnergy_self_pos_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s : Finset α}, 0 < s.addEnergy s ↔ s.Nonempty
theorem Finset.mulEnergy_self_eq_zero_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] {s : Finset α}, s.mulEnergy s = 0 ↔ s = ∅
theorem Finset.addEnergy_self_eq_zero_iff E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] {s : Finset α}, s.addEnergy s = 0 ↔ s = ∅
theorem Finset.addEnergy_eq_card_filter E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] (s t : Finset α),
s.addEnergy t = {x ∈ (s ×ˢ t) ×ˢ s ×ˢ t | x.1.1 + x.1.2 = x.2.1 + x.2.2}.card
theorem Finset.mulEnergy_eq_card_filter E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] (s t : Finset α),
s.mulEnergy t = {x ∈ (s ×ˢ t) ×ˢ s ×ˢ t | x.1.1 * x.1.2 = x.2.1 * x.2.2}.card
theorem Finset.addEnergy_eq_sum_sq' E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] (s t : Finset α),
s.addEnergy t = ∑ a ∈ s + t, {xy ∈ s ×ˢ t | xy.1 + xy.2 = a}.card ^ 2
theorem Finset.mulEnergy_eq_sum_sq' E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] (s t : Finset α),
s.mulEnergy t = ∑ a ∈ s * t, {xy ∈ s ×ˢ t | xy.1 * xy.2 = a}.card ^ 2
theorem Finset.addEnergy_eq_sum_sq E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] [inst_2 : Fintype α] (s t : Finset α),
s.addEnergy t = ∑ a, {xy ∈ s ×ˢ t | xy.1 + xy.2 = a}.card ^ 2
theorem Finset.mulEnergy_eq_sum_sq E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] [inst_2 : Fintype α] (s t : Finset α),
s.mulEnergy t = ∑ a, {xy ∈ s ×ˢ t | xy.1 * xy.2 = a}.card ^ 2
theorem Finset.card_sq_le_card_mul_mulEnergy E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] (s t u : Finset α),
{xy ∈ s ×ˢ t | xy.1 * xy.2 ∈ u}.card ^ 2 ≤ u.card * s.mulEnergy t
theorem Finset.card_sq_le_card_mul_addEnergy E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] (s t u : Finset α),
{xy ∈ s ×ˢ t | xy.1 + xy.2 ∈ u}.card ^ 2 ≤ u.card * s.addEnergy t
theorem Finset.le_card_mul_mul_mulEnergy E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Mul α] (s t : Finset α),
s.card ^ 2 * t.card ^ 2 ≤ (s * t).card * s.mulEnergy t
theorem Finset.le_card_add_mul_addEnergy E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Add α] (s t : Finset α),
s.card ^ 2 * t.card ^ 2 ≤ (s + t).card * s.addEnergy t
theorem Finset.addEnergy_comm E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommMonoid α] (s t : Finset α), s.addEnergy t = t.addEnergy s
theorem Finset.mulEnergy_comm E1 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommMonoid α] (s t : Finset α), s.mulEnergy t = t.mulEnergy s
theorem Finset.mulEnergy_univ_left E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] [inst_2 : Fintype α] (t : Finset α),
Finset.univ.mulEnergy t = Fintype.card α * t.card ^ 2
theorem Finset.addEnergy_univ_left E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] [inst_2 : Fintype α] (t : Finset α),
Finset.univ.addEnergy t = Fintype.card α * t.card ^ 2
theorem Finset.mulEnergy_univ_right E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] [inst_2 : Fintype α] (s : Finset α),
s.mulEnergy Finset.univ = Fintype.card α * s.card ^ 2
theorem Finset.addEnergy_univ_right E0 #
∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] [inst_2 : Fintype α] (s : Finset α),
s.addEnergy Finset.univ = Fintype.card α * s.card ^ 2