Formula-Defined Sets are Clopen in Type Spaces