Büchi–Elgot–Trakhtenbrot theorem