I just want to do a sanity check on my understanding of Hamiltonian mechanics:
My understanding is: For any number $n$, take the phase space $\mathbb R^{2n}$, and take any arbitrary differentiable function $H:\mathbb R^{2n}\to \mathbb R$ to be the Hamiltonian. Then all of the standard results about Hamiltonian mechanics will apply to the system generated by $\dot q=H_p, \dot p=-H_q$ (In particular Liouville's theorem applies, and Noether's theorem applies to the Lagrangian obtained from the Legendre transform). There are no further regularity conditions needed to do Hamiltonian mechanics on this system.
Is this correct?