refractive index of a medium `(n)=("velocity of light in vaccum"(c ))/("velocity of light in medium" (v))`
as c is fixed, therefore, `n prop (1)/(v)`. For a rarer medium, n is smaller, therefore v is larger, i.e., light travles faster in a rarer medium than in a denser medium.