A person described in this subparagraph for a month is a person who establishes to the satisfaction of the Secretary that, as of the last day of the previous month—
(i)#
(I) the person was receiving cash benefits under a qualified State or local government retirement system (as defined in subparagraph (C)) on the basis of the person’s employment in one or more positions covered under any such system, and (II) the person would have at least 40 quarters of coverage under subchapter II if remuneration for medicare qualified government employment (as defined in paragraph (1) of section 410(p) of this title , but determined without regard to paragraph (3) of such section) paid to such person were treated as wages paid to such person and credited for purposes of determining quarters of coverage under section 413 of this title ;
(i)(I)#
the person was receiving cash benefits under a qualified State or local government retirement system (as defined in subparagraph (C)) on the basis of the person’s employment in one or more positions covered under any such system, and (II) the person would have at least 40 quarters of coverage under subchapter II if remuneration for medicare qualified government employment (as defined in paragraph (1) of section 410(p) of this title , but determined without regard to paragraph (3) of such section) paid to such person were treated as wages paid to such person and credited for purposes of determining quarters of coverage under section 413 of this title ;
(ii)#
(I) the person was married (and had been married for the previous 1-year period) to an individual who is described in clause (i), or (II) the person met the requirement of clause (i)(II) and was married (and had been married for the previous 1-year period) to an individual described in clause (i)(I);
(ii)(I)#
the person was married (and had been married for the previous 1-year period) to an individual who is described in clause (i), or (II) the person met the requirement of clause (i)(II) and was married (and had been married for the previous 1-year period) to an individual described in clause (i)(I);
(iii)#
the person had been married to an individual for a period of at least 1 year (at the time of such individual’s death) if (I) the individual was described in clause (i) at the time of the individual’s death, or (II) the person met the requirement of clause (i)(II) and the individual was described in clause (i)(I) at the time of the individual’s death; or
(iv)#
the person is divorced from an individual and had been married to the individual for a period of at least 10 years (at the time of the divorce) if (I) the individual was described in clause (i) at the time of the divorce, or (II) the person met the requirement of clause (i)(II) and the individual was described in clause (i)(I) at the time of the divorce.