Cartesian powers of sets of blocks #
The m-th Cartesian power of a finite set S of tuples of k entries, as a set of tuples of
m * k entries (Cslib.BitString.blockPower): the tuples whose m blocks of k entries
(Cslib.BitString.block) all lie in S. It has #S ^ m elements
(Cslib.BitString.card_blockPower), as cutting a tuple into its blocks is an equivalence
(Cslib.BitString.blocksEquiv). Raising a set to a power before hashing it turns an
approximation of its size within a constant factor into one within a factor that tends to 1,
the amplification used in approximate counting.
Main definitions #
Cslib.BitString.blockPower: the tuples all of whose blocks lie in a set.
Main results #
Cslib.BitString.mem_blockPower: membership is membership of every block.Cslib.BitString.card_blockPower: the size of the power.