Mathematical foundations of discrete topological tensor networks and effective 4D continuum structures | Synapse