The curvature and hyperbolicity of Hamiltonian systems