Rays explained mirrors and lenses; they cannot explain why two slits paint stripes or why a soap bubble has colours. Here light is a wave: every point on a wavefront re-emits, path differences of whole wavelengths add up and half wavelengths cancel. One number rules the chapter — the path difference Δ, counted in wavelengths.
Every point a wavefront touches becomes a tiny source of secondary wavelets; the new front is their common envelope. When the front hits a slower medium, the wavelets there grow more slowly — the envelope tilts, and the whole beam bends. Refraction is not a rule; it is arithmetic.
Frequency never changes at a boundary — the glass cannot swallow crests. So v = fλ forces λ to shrink by n: watch the fronts bunch up below the surface.