Title: Lie Symmetries in Ray and Wave Optics