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.Finset.Finsupp

7 declarations. Mathlib docs · Source

def Finset.finsupp E1 #

{ι : Type u_1} → {α : Type u_2} → [inst : Zero α] → Finset ι → (ι → Finset α) → Finset (ι →₀ α)

Finitely supported product of finsets.

theorem Finset.mem_finsupp_iff E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Zero α] {s : Finset ι} {f : ι →₀ α} {t : ι → Finset α},
  f ∈ s.finsupp t ↔ f.support ⊆ s ∧ ∀ i ∈ s, f i ∈ t i

theorem Finset.mem_finsupp_iff_of_support_subset E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Zero α] {s : Finset ι} {f : ι →₀ α} {t : ι →₀ Finset α},
  t.support ⊆ s → (f ∈ s.finsupp ⇑t ↔ ∀ (i : ι), f i ∈ t i)

When t is supported on s, f ∈ s.finsupp t precisely means that f is pointwise in t.

theorem Finset.card_finsupp E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Zero α] (s : Finset ι) (t : ι → Finset α),
  (s.finsupp t).card = ∏ i ∈ s, (t i).card

def Finsupp.pi E1 #

{ι : Type u_1} → {α : Type u_2} → [inst : Zero α] → (ι →₀ Finset α) → Finset (ι →₀ α)

Given a finitely supported function f : ι →₀ Finset α, one can define the finset f.pi of all finitely supported functions whose value at i is in f i for all i.

theorem Finsupp.mem_pi E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Zero α] {f : ι →₀ Finset α} {g : ι →₀ α}, g ∈ f.pi ↔ ∀ (i : ι), g i ∈ f i

theorem Finsupp.card_pi E0 #

∀ {ι : Type u_1} {α : Type u_2} [inst : Zero α] (f : ι →₀ Finset α), f.pi.card = f.prod fun i ↦ ↑(f i).card