From what I can gather reading the fine print on Apple's various pages, it seems the phone gets locked to either GSM or CDMA at the time of sale or activation, although perhaps that's not entirely true for the CDMA version if it allows the use of foreign SIM cards when traveling.