When does the Hamiltonian not describe the energy of a system? Since it's not always the energy of the system but something more general, what is it?
If the Hamiltonian is not always the energy of the system, then what is its most general meaning and what is the geometry behind it?