“…This is precisely the main idea behind geometric integration [3,18,33] and, in particular, of discrete mechanics and variational integrators [27]. In this last case, the construction of an exact discrete Lagrangian is a crucial element for the analysis of the error between the continuous trajectory and the numerical simulation derived by a variational integrator (see also [27,32] and [7,14] for forced systems). However, an open question is how to derive the exact discrete version for nonholonomic mechanics (see [29] for an attempt) and this is the main topic of the present paper.…”