Anomaly diagnosis via symmetry restriction in two-dimensional lattice systems | Synapse