Riemann–Roch for the ring ℤ | Synapse