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.Dissociation

32 declarations. Mathlib docs · Source

Dissociation and span

This file defines dissociation and span of sets in groups. These are analogs to the usual linear independence and linear span of sets in a vector space but where the scalars are only allowed to be 0 or ±1. In characteristic 2 or 3, the two pairs of concepts are actually equivalent.

Main declarations

  • MulDissociated/AddDissociated: Predicate for a set to be dissociated.
  • Finset.mulSpan/Finset.addSpan: Span of a finset.

def MulDissociated E3 #

{α : Type u_1} → [CommGroup α] → Set α → Prop

A set is dissociated iff all its finite subsets have different products.

This is an analog of linear independence in a vector space, but with the "scalars" restricted to 0 and ±1.

def AddDissociated E3 #

{α : Type u_1} → [AddCommGroup α] → Set α → Prop

A set is dissociated iff all its finite subsets have different sums.

This is an analog of linear independence in a vector space, but with the "scalars" restricted to 0 and ±1.

theorem addDissociated_iff_sum_eq_subsingleton E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] {s : Set α},
  AddDissociated s ↔ ∀ (a : α), {t | ↑t ⊆ s ∧ ∑ x ∈ t, x = a}.Subsingleton

theorem mulDissociated_iff_sum_eq_subsingleton E1 #

∀ {α : Type u_1} [inst : CommGroup α] {s : Set α},
  MulDissociated s ↔ ∀ (a : α), {t | ↑t ⊆ s ∧ ∏ x ∈ t, x = a}.Subsingleton

theorem MulDissociated.subset E1 #

∀ {α : Type u_1} [inst : CommGroup α] {s t : Set α}, s ⊆ t → MulDissociated t → MulDissociated s

theorem AddDissociated.subset E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] {s t : Set α}, s ⊆ t → AddDissociated t → AddDissociated s

theorem mulDissociated_empty E0 #

∀ {α : Type u_1} [inst : CommGroup α], MulDissociated ∅

theorem addDissociated_empty E0 #

∀ {α : Type u_1} [inst : AddCommGroup α], AddDissociated ∅

theorem mulDissociated_singleton E0 #

∀ {α : Type u_1} [inst : CommGroup α] {a : α}, MulDissociated {a} ↔ a ≠ 1

theorem addDissociated_singleton E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] {a : α}, AddDissociated {a} ↔ a ≠ 0

theorem not_mulDissociated E0 #

∀ {α : Type u_1} [inst : CommGroup α] {s : Set α},
  ¬MulDissociated s ↔ ∃ t, ↑t ⊆ s ∧ ∃ u, ↑u ⊆ s ∧ t ≠ u ∧ ∏ x ∈ t, x = ∏ x ∈ u, x

theorem not_addDissociated E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] {s : Set α},
  ¬AddDissociated s ↔ ∃ t, ↑t ⊆ s ∧ ∃ u, ↑u ⊆ s ∧ t ≠ u ∧ ∑ x ∈ t, x = ∑ x ∈ u, x

theorem not_addDissociated_iff_exists_disjoint E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] {s : Set α},
  ¬AddDissociated s ↔ ∃ t u, ↑t ⊆ s ∧ ↑u ⊆ s ∧ Disjoint t u ∧ t ≠ u ∧ ∑ a ∈ t, a = ∑ a ∈ u, a

theorem not_mulDissociated_iff_exists_disjoint E1 #

∀ {α : Type u_1} [inst : CommGroup α] {s : Set α},
  ¬MulDissociated s ↔ ∃ t u, ↑t ⊆ s ∧ ↑u ⊆ s ∧ Disjoint t u ∧ t ≠ u ∧ ∏ a ∈ t, a = ∏ a ∈ u, a

theorem AddEquiv.addDissociated_preimage E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : AddCommGroup α] [inst_1 : AddCommGroup β] {s : Set α} (e : β ≃+ α),
  AddDissociated (⇑e ⁻¹' s) ↔ AddDissociated s

theorem MulEquiv.mulDissociated_preimage E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : CommGroup α] [inst_1 : CommGroup β] {s : Set α} (e : β ≃* α),
  MulDissociated (⇑e ⁻¹' s) ↔ MulDissociated s

theorem mulDissociated_inv E0 #

∀ {α : Type u_1} [inst : CommGroup α] {s : Set α}, MulDissociated s⁻¹ ↔ MulDissociated s

theorem addDissociated_neg E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] {s : Set α}, AddDissociated (-s) ↔ AddDissociated s

theorem AddDissociated.neg E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] {s : Set α}, AddDissociated s → AddDissociated (-s)

Alias of the reverse direction of addDissociated_neg.

theorem MulDissociated.of_inv E1 #

∀ {α : Type u_1} [inst : CommGroup α] {s : Set α}, MulDissociated s⁻¹ → MulDissociated s

Alias of the forward direction of mulDissociated_inv.

theorem MulDissociated.inv E1 #

∀ {α : Type u_1} [inst : CommGroup α] {s : Set α}, MulDissociated s → MulDissociated s⁻¹

Alias of the reverse direction of mulDissociated_inv.

theorem AddDissociated.of_neg E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] {s : Set α}, AddDissociated (-s) → AddDissociated s

Alias of the forward direction of addDissociated_neg.

def Finset.mulSpan E3 #

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

The span of a finset s is the finset of elements of the form ∏ a ∈ s, a ^ ε a where ε ∈ {-1, 0, 1} ^ s.

This is an analog of the linear span in a vector space, but with the "scalars" restricted to 0 and ±1.

def Finset.addSpan E3 #

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

The span of a finset s is the finset of elements of the form ∑ a ∈ s, ε a • a where ε ∈ {-1, 0, 1} ^ s.

This is an analog of the linear span in a vector space, but with the "scalars" restricted to 0 and ±1.

theorem Finset.mem_mulSpan E0 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s : Finset α} {a : α},
  a ∈ s.mulSpan ↔ ∃ ε, (∀ (a : α), ε a = -1 ∨ ε a = 0 ∨ ε a = 1) ∧ ∏ a ∈ s, a ^ ε a = a

theorem Finset.mem_addSpan E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s : Finset α} {a : α},
  a ∈ s.addSpan ↔ ∃ ε, (∀ (a : α), ε a = -1 ∨ ε a = 0 ∨ ε a = 1) ∧ ∑ a ∈ s, ε a • a = a

theorem Finset.subset_addSpan E0 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s : Finset α}, s ⊆ s.addSpan

theorem Finset.subset_mulSpan E0 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s : Finset α}, s ⊆ s.mulSpan

theorem Finset.prod_div_prod_mem_mulSpan E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s t u : Finset α},
  t ⊆ s → u ⊆ s → (∏ a ∈ t, a) / ∏ a ∈ u, a ∈ s.mulSpan

theorem Finset.sum_sub_sum_mem_addSpan E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s t u : Finset α},
  t ⊆ s → u ⊆ s → ∑ a ∈ t, a - ∑ a ∈ u, a ∈ s.addSpan

theorem Finset.exists_subset_mulSpan_card_le_of_forall_mulDissociated E1 #

∀ {α : Type u_1} [inst : CommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s : Finset α} {d : ℕ},
  (∀ s' ⊆ s, MulDissociated ↑s' → s'.card ≤ d) → ∃ s' ⊆ s, s'.card ≤ d ∧ s ⊆ s'.mulSpan

If every dissociated subset of s has size at most d, then s is actually generated by a subset of size at most d.

This is a dissociation analog of the fact that a set whose linearly independent subsets all have size at most d is of dimension at most d itself.

theorem Finset.exists_subset_addSpan_card_le_of_forall_addDissociated E1 #

∀ {α : Type u_1} [inst : AddCommGroup α] [inst_1 : DecidableEq α] [inst_2 : Fintype α] {s : Finset α} {d : ℕ},
  (∀ s' ⊆ s, AddDissociated ↑s' → s'.card ≤ d) → ∃ s' ⊆ s, s'.card ≤ d ∧ s ⊆ s'.addSpan

If every dissociated subset of s has size at most d, then s is actually generated by a subset of size at most d.

This is a dissociation analog of the fact that a set whose linearly independent subspaces all have size at most d is of dimension at most d itself.