Variational principles for nonsmooth metrics | Synapse