Set with restricted membership defined by a given block