Symmetries and Integrability of Difference Equations: Lagrangian and Hamiltonian Formalism for Discrete Equations: Symmetries and First Integrals