Exact expressions for structure selection in cluster expansions | Synapse