Considering a light wave traveling from the vacuum to air, I am trying to find what will happen to its wavelength.
At first, using optics, we know that:
$$n=\frac{c}{v}$$
where $n$ represents the refractive index. As $n_{vac}=1$:
$$n_{air}= \frac{\lambda_{vac}}{\lambda_{air}} \iff \lambda_{air} = \frac{\lambda_{vac}}{n_{air}} $$
So the wavelength will decrease in air.
But when using Compton Scattering:
The wave will lose energy after colliding with an air particle and its wavelength will increase.
Why is there a difference? Which is right?