The positions of the ones of a bit string #
Cslib.BitString.positions x lists the coordinates where x : BitString n is true, in increasing
order and without repetition. Streaming reductions from set disjointness read a bit string as the
stream of its positions.
Main definitions #
Cslib.BitString.positions: the coordinates of the ones of a bit string, as a list.
Main results #
Cslib.BitString.mem_positions,Cslib.BitString.nodup_positions,Cslib.BitString.length_positions_le: membership, no repetition, and length at mostn.Cslib.BitString.length_positions: the length ofpositions xequalsweight x.Cslib.BitString.pairwise_positions:positions xis strictly increasing under<.
The positions of 1-bits in x are strictly increasing under <.