Consider a Hamiltonian system with Hamiltonian of the form H(x, t, p) where H is convex in p and periodic in x, and t and x ∈ R. It is well-known that its smooth invariant curves correspond to smooth Z-periodic solutions of the PDE ut +H(x, t, u)x = 0 . In this paper, we establish a connection between the Aubry-Mather theory of invariant sets of the Hamiltonian system and Z-periodic weak soluti...