Fig. 1: Fermat's principle in the case of refraction of light at a flat surface between (say) air and water. Given an object-point A in the air, and an observation point B in the water, the refraction point P is that which minimizes the time taken by the light to travel the path APB. Seeking the required value of x shows that the angles α and β satisfy Snell's law.
Fermat's principle, also known as the principle of least time, is the link between ray optics and wave optics. Fermat's principle states that the path taken by a ray between two given points is the path that can be traveled in the least time.
Discovered by embedding cosine similarity (sentence-transformers MiniLM, 384-dim).