Modular Calculus and Discrete Variational Dynamics | Synapse