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 t
is the product of thet i
over alli ∈ s
.Finsupp.pi
:f.pi
is the finset ofFinsupp
s whosei
-th value lies inf i
. This is the special case ofFinset.finsupp
where we take the product of thef i
over 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.
Finitely supported product of finsets.
Equations
- s.finsupp t = Finset.map { toFun := Finsupp.indicator s, inj' := ⋯ } (s.pi t)