The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V30. Combinatorics

Mathlib.Combinatorics.Additive.ETransform

44 declarations. Mathlib docs · Source

e-transforms

e-transforms are a family of transformations of pairs of finite sets that aim to reduce the size of the sumset while keeping some invariant the same. This file defines a few of them, to be used as internals of other proofs.

Main declarations

  • Finset.mulDysonETransform: The Dyson e-transform. Replaces (s, t) by (s ∪ e • t, t ∩ e⁻¹ • s). The additive version preserves |s ∩ [1, m]| + |t ∩ [1, m - e]|.
  • Finset.mulETransformLeft/Finset.mulETransformRight: Replace (s, t) by (s ∩ s • e, t ∪ e⁻¹ • t) and (s ∪ s • e, t ∩ e⁻¹ • t). Preserve (together) the sum of the cardinalities (see Finset.MulETransform.card). In particular, one of the two transforms increases the sum of the cardinalities and the other one decreases it. See le_or_lt_of_add_le_add and around.

TODO

Prove the invariance property of the Dyson e-transform.

Dyson e-transform

Two unnamed e-transforms

The following two transforms both reduce the product/sum of the two sets. Further, one of them must decrease the sum of the size of the sets (and then the other increases it).

This pair of transforms doesn't seem to be named in the literature. It is used by Sanders in his bound on Roth numbers, and by DeVos in his proof of Cauchy-Davenport.

def Finset.mulDysonETransform E3 #

{α : Type u_1} → [DecidableEq α] → [CommGroup α] → α → Finset α × Finset α → Finset α × Finset α

The Dyson e-transform. Turns (s, t) into (s ∪ e • t, t ∩ e⁻¹ • s). This reduces the product of the two sets.

theorem Finset.mulDysonETransform_snd E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.mulDysonETransform e x).2 = x.2 ∩ e⁻¹ • x.1

theorem Finset.addDysonETransform_snd E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addDysonETransform e x).2 = x.2 ∩ (-e +ᵥ x.1)

theorem Finset.addDysonETransform_fst E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addDysonETransform e x).1 = x.1 ∪ (e +ᵥ x.2)

theorem Finset.mulDysonETransform_fst E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.mulDysonETransform e x).1 = x.1 ∪ e • x.2

def Finset.addDysonETransform E3 #

{α : Type u_1} → [DecidableEq α] → [AddCommGroup α] → α → Finset α × Finset α → Finset α × Finset α

The Dyson e-transform. Turns (s, t) into (s ∪ e +ᵥ t, t ∩ -e +ᵥ s). This reduces the sum of the two sets.

theorem Finset.addDysonETransform.subset E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addDysonETransform e x).1 + (Finset.addDysonETransform e x).2 ⊆ x.1 + x.2

theorem Finset.mulDysonETransform.subset E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.mulDysonETransform e x).1 * (Finset.mulDysonETransform e x).2 ⊆ x.1 * x.2

theorem Finset.addDysonETransform.card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addDysonETransform e x).1.card + (Finset.addDysonETransform e x).2.card = x.1.card + x.2.card

theorem Finset.mulDysonETransform.card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.mulDysonETransform e x).1.card + (Finset.mulDysonETransform e x).2.card = x.1.card + x.2.card

theorem Finset.mulDysonETransform_idem E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] (e : α) (x : Finset α × Finset α),
  Finset.mulDysonETransform e (Finset.mulDysonETransform e x) = Finset.mulDysonETransform e x

theorem Finset.addDysonETransform_idem E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] (e : α) (x : Finset α × Finset α),
  Finset.addDysonETransform e (Finset.addDysonETransform e x) = Finset.addDysonETransform e x

theorem Finset.mulDysonETransform.smul_finset_snd_subset_fst E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] {e : α} {x : Finset α × Finset α},
  e • (Finset.mulDysonETransform e x).2 ⊆ (Finset.mulDysonETransform e x).1

theorem Finset.addDysonETransform.vadd_finset_snd_subset_fst E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] {e : α} {x : Finset α × Finset α},
  e +ᵥ (Finset.addDysonETransform e x).2 ⊆ (Finset.addDysonETransform e x).1

def Finset.mulETransformLeft E3 #

{α : Type u_1} → [DecidableEq α] → [Group α] → α → Finset α × Finset α → Finset α × Finset α

An e-transform. Turns (s, t) into (s ∩ s • e, t ∪ e⁻¹ • t). This reduces the product of the two sets.

theorem Finset.addETransformLeft_snd E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformLeft e x).2 = x.2 ∪ (-e +ᵥ x.2)

theorem Finset.addETransformLeft_fst E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformLeft e x).1 = x.1 ∩ (AddOpposite.op e +ᵥ x.1)

theorem Finset.mulETransformLeft_snd E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformLeft e x).2 = x.2 ∪ e⁻¹ • x.2

theorem Finset.mulETransformLeft_fst E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformLeft e x).1 = x.1 ∩ MulOpposite.op e • x.1

def Finset.addETransformLeft E1 #

{α : Type u_1} → [DecidableEq α] → [AddGroup α] → α → Finset α × Finset α → Finset α × Finset α

An e-transform. Turns (s, t) into (s ∩ s +ᵥ e, t ∪ -e +ᵥ t). This reduces the sum of the two sets.

def Finset.mulETransformRight E3 #

{α : Type u_1} → [DecidableEq α] → [Group α] → α → Finset α × Finset α → Finset α × Finset α

An e-transform. Turns (s, t) into (s ∪ s • e, t ∩ e⁻¹ • t). This reduces the product of the two sets.

def Finset.addETransformRight E1 #

{α : Type u_1} → [DecidableEq α] → [AddGroup α] → α → Finset α × Finset α → Finset α × Finset α

An e-transform. Turns (s, t) into (s ∪ s +ᵥ e, t ∩ -e +ᵥ t). This reduces the sum of the two sets.

theorem Finset.addETransformRight_snd E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformRight e x).2 = x.2 ∩ (-e +ᵥ x.2)

theorem Finset.mulETransformRight_fst E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformRight e x).1 = x.1 ∪ MulOpposite.op e • x.1

theorem Finset.mulETransformRight_snd E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformRight e x).2 = x.2 ∩ e⁻¹ • x.2

theorem Finset.addETransformRight_fst E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformRight e x).1 = x.1 ∪ (AddOpposite.op e +ᵥ x.1)

theorem Finset.mulETransformLeft_one E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (x : Finset α × Finset α), Finset.mulETransformLeft 1 x = x

theorem Finset.addETransformLeft_zero E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (x : Finset α × Finset α),
  Finset.addETransformLeft 0 x = x

theorem Finset.mulETransformRight_one E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (x : Finset α × Finset α), Finset.mulETransformRight 1 x = x

theorem Finset.addETransformRight_zero E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (x : Finset α × Finset α),
  Finset.addETransformRight 0 x = x

theorem Finset.addETransformLeft.fst_add_snd_subset E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformLeft e x).1 + (Finset.addETransformLeft e x).2 ⊆ x.1 + x.2

theorem Finset.mulETransformLeft.fst_mul_snd_subset E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformLeft e x).1 * (Finset.mulETransformLeft e x).2 ⊆ x.1 * x.2

theorem Finset.addETransformRight.fst_add_snd_subset E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformRight e x).1 + (Finset.addETransformRight e x).2 ⊆ x.1 + x.2

theorem Finset.mulETransformRight.fst_mul_snd_subset E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformRight e x).1 * (Finset.mulETransformRight e x).2 ⊆ x.1 * x.2

theorem Finset.mulETransformLeft.card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformLeft e x).1.card + (Finset.mulETransformRight e x).1.card = 2 * x.1.card

theorem Finset.addETransformLeft.card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformLeft e x).1.card + (Finset.addETransformRight e x).1.card = 2 * x.1.card

theorem Finset.mulETransformRight.card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformLeft e x).2.card + (Finset.mulETransformRight e x).2.card = 2 * x.2.card

theorem Finset.addETransformRight.card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformLeft e x).2.card + (Finset.addETransformRight e x).2.card = 2 * x.2.card

theorem Finset.MulETransform.card E3 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : Group α] (e : α) (x : Finset α × Finset α),
  (Finset.mulETransformLeft e x).1.card + (Finset.mulETransformLeft e x).2.card +
      ((Finset.mulETransformRight e x).1.card + (Finset.mulETransformRight e x).2.card) =
    x.1.card + x.2.card + (x.1.card + x.2.card)

This statement is meant to be combined with le_or_lt_of_add_le_add and similar lemmas.

theorem Finset.AddETransform.card E1 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddGroup α] (e : α) (x : Finset α × Finset α),
  (Finset.addETransformLeft e x).1.card + (Finset.addETransformLeft e x).2.card +
      ((Finset.addETransformRight e x).1.card + (Finset.addETransformRight e x).2.card) =
    x.1.card + x.2.card + (x.1.card + x.2.card)

This statement is meant to be combined with le_or_lt_of_add_le_add and similar lemmas.

theorem Finset.addETransformLeft_neg E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] (e : α) (x : Finset α × Finset α),
  Finset.addETransformLeft (-e) x = (Finset.addETransformRight e x.swap).swap

theorem Finset.mulETransformLeft_inv E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] (e : α) (x : Finset α × Finset α),
  Finset.mulETransformLeft e⁻¹ x = (Finset.mulETransformRight e x.swap).swap

theorem Finset.mulETransformRight_inv E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : CommGroup α] (e : α) (x : Finset α × Finset α),
  Finset.mulETransformRight e⁻¹ x = (Finset.mulETransformLeft e x.swap).swap

theorem Finset.addETransformRight_neg E0 #

∀ {α : Type u_1} [inst : DecidableEq α] [inst_1 : AddCommGroup α] (e : α) (x : Finset α × Finset α),
  Finset.addETransformRight (-e) x = (Finset.addETransformLeft e x.swap).swap