former spouse
(2) Property used by spouse or former spouse. A taxpayer is treated as using property as the taxpayer's principal residence for any period that the taxpayer has an ownership interest in the property and the taxpayer's spouse or former spouse is granted use of the property under a divorce or separation instrument (as defined in section 71(b)(2)), provided that the spouse or former spouse uses the property as his or her principal residence.