Gauge fields on a lattice. II. Gauge-invariant Ising model | Synapse