Chain recurrence, chain transitivity, Lyapunov functions and rigidity of Lagrangian submanifolds of optical hypersurfaces