### A variational construction of chaotic trajectories for a Hamiltonian system on a torus

A geometric criterion for the existence of chaotic trajectories of a Hamiltonian system with two degrees of freedom and the configuration space a torus is given. As an application, positive topological entropy is established for a double pendulum problem.