"15. — (1) The following persons shall acquire the right to reside in the United Kingdom permanently— (a) an EEA national who has resided in the United Kingdom in accordance with these Regulations for a continuous period of five years."
" Periods of residence under the 2000 Regulations 6(1) Any period during which a person carried out an activity or was resident in the United Kingdom in accordance with the 2000 Regulations shall be treated as a period during which the person carried out that activity or was resident in the United Kingdom in accordance with these Regulations for the purpose of calculating periods of activity and residence under these Regulations."
"16. … (1) Union citizens who have resided legally for a continuous period of five years in the host Member State shall have the right of permanent residence there."
"17. Enjoyment of permanent residence by Union citizens who have chosen to settle long-term in the host Member State would strengthen the feeling of Union citizenship and is a key element in promoting social cohesion, which is one of the fundamental objectives of the Union. A right of permanent residence should therefore be laid down for all Union citizens and their family members who have resided in the host Member State in compliance with the conditions laid down in this Directive during a continuous period of five years without becoming subject to an expulsion measure."