Finitely supported product of finsets #
This file defines the finitely supported product of finsets as a finset (ι →₀ α).
Main declarations #
finset.finsupp: Finitely supported product of finsets.s.finset tis the product of thet iover alli ∈ s.finsupp.pi:f.piis the finset offinsupps whosei-th value lies inf i. This is the special case offinset.finsuppwhere we take the product of thef iover the support off.
Implementation notes #
We make heavy use of the fact that 0 : finset α is {0}. This scalar actions convention turns out
to be precisely what we want here too.
@[protected]
noncomputable
def
finset.finsupp
{ι : Type u_1}
{α : Type u_2}
[has_zero α]
(s : finset ι)
(t : ι → finset α) :
Finitely supported product of finsets.
Equations
- s.finsupp t = finset.map {to_fun := finsupp.indicator s, inj' := _} (s.pi t)
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.