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 / V03. Sets, finite structures and big operators

Mathlib.Data.Finsupp.BigOperators

9 declarations. Mathlib docs · Source

Sums of collections of Finsupp, and their support

This file provides results about the Finsupp.support of sums of collections of Finsupp, including sums of List, Multiset, and Finset.

The support of the sum is a subset of the union of the supports:

  • List.support_sum_subset
  • Multiset.support_sum_subset
  • Finset.support_sum_subset

The support of the sum of pairwise disjoint finsupps is equal to the union of the supports

  • List.support_sum_eq
  • Multiset.support_sum_eq
  • Finset.support_sum_eq

Member in the support of the indexed union over a collection iff it is a member of the support of a member of the collection:

  • List.mem_foldr_sup_support_iff
  • Multiset.mem_sup_map_support_iff
  • Finset.mem_sup_support_iff

theorem List.support_sum_subset E1 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : AddZeroClass M] (l : List (ι →₀ M)),
  l.sum.support ⊆ List.foldr (fun x1 x2 ↦ x1.support ∪ x2) ∅ l

theorem Multiset.support_sum_subset E1 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] (s : Multiset (ι →₀ M)),
  s.sum.support ⊆ (Multiset.map Finsupp.support s).sup

theorem Finset.support_sum_subset E1 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] (s : Finset (ι →₀ M)),
  (s.sum id).support ⊆ s.sup Finsupp.support

theorem List.mem_foldr_sup_support_iff E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : Zero M] {l : List (ι →₀ M)} {x : ι},
  x ∈ List.foldr (fun x1 x2 ↦ x1.support ∪ x2) ∅ l ↔ ∃ f ∈ l, x ∈ f.support

theorem Multiset.mem_sup_map_support_iff E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : Zero M] {s : Multiset (ι →₀ M)} {x : ι},
  x ∈ (Multiset.map Finsupp.support s).sup ↔ ∃ f ∈ s, x ∈ f.support

theorem Finset.mem_sup_support_iff E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : Zero M] {s : Finset (ι →₀ M)} {x : ι},
  x ∈ s.sup Finsupp.support ↔ ∃ f ∈ s, x ∈ f.support

theorem List.support_sum_eq E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : AddZeroClass M] (l : List (ι →₀ M)),
  List.Pairwise (Function.onFun Disjoint Finsupp.support) l →
    l.sum.support = List.foldr (fun x1 x2 ↦ x1.support ∪ x2) ∅ l

theorem Multiset.support_sum_eq E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] (s : Multiset (ι →₀ M)),
  Multiset.Pairwise (Function.onFun Disjoint Finsupp.support) s → s.sum.support = (Multiset.map Finsupp.support s).sup

theorem Finset.support_sum_eq E0 #

∀ {ι : Type u_1} {M : Type u_2} [inst : DecidableEq ι] [inst_1 : AddCommMonoid M] (s : Finset (ι →₀ M)),
  (↑s).PairwiseDisjoint Finsupp.support → (s.sum id).support = s.sup Finsupp.support