Identifying equivalent and equal sets