The path taken by a ray of light between any two points in a system is always the path that takes the least time. This principle leads to the law of the rectilinear propagation of light and the laws of reflection and refraction. It was stated by the French mathematician Pierre de Fermat (1601–65) in 1662.