Geometric and arithmetic characterization of D-module flatness with applications to tensor products | Synapse