We study the defect dynamics in a colloidal spin ice system realized by filling a square lattice of topographic double well islands with repulsively interacting magnetic colloids. We focus on the contraction of defects in the ground state, and contraction or expansion in a metastable biased state. Combining realtime experiments with simulations, we prove that these defects behave like emergent topological monopoles obeying a Coulomb law with an additional line tension. We further show how to realize a completely resettable "NOR" gate, which provides guidelines for fabrication of nanoscale logic devices based on the motion of topological magnetic monopoles. DOI: 10.1103/PhysRevLett.117.168001 Geometric frustration is a complex phenomenon which encompasses a broad range of systems, from magnetic materials [1], to ferroelectrics [2], trapped ions [3], confined microgel particles [4], and folding proteins [5]. It emerges when the spatial arrangement of the system elements cannot simultaneously minimize all interaction energies, and leads to exotic phases of matter with a low-temperature degenerate ground state, such as spin ice [6][7][8]. Artificial spin ice systems (ASI) are lattices of interacting nanoscale ferromagnetic islands, recently introduced as a versatile model to investigate geometrically frustrated states [9,10], including the role of disorder [11,12], thermalization [13][14][15], and the excitation dynamics [16][17][18][19][20]. In opposition to bulk spin ice such as pyrochlore compounds, ASI allow us to directly visualize the spin textures and to tailor the spatial arrangement of the system elements.An intriguing aspect in ASI, which is attracting much theoretical interest, is the dynamics of defects [21][22][23][24][25][26][27][28]. The interactions between pairs of defects is one of the distinctive features between three dimensional (3D) and two dimensional (2D) spin ice. In a 3D pyrochlore compound, the spins are located on a lattice of corner-sharing tetrahedra, and can point either towards the tetrahedra center (spin in), or away from it (spin out). Thus the ground state (GS) follows the "ice rules," with two spins coming in and two going out of each vertex in order to decrease the vertex energy. At finite temperature, defects that behave like "magnetic monopoles" [29,30] can emerge when a spin flips, producing a local increase of the magnetic energy. A way to overcome the system complexity is to use the "dumbbell" model [31], which only considers the magnetic charge distribution at the vertices of the lattice. Within this formalism, it was shown that in 3D spin ice, a pair of defects connected by strings of flipped spins only interact through a magnetic Coulomb law at low temperature. In contrast, numerical simulations show that for a 2D square ASI, i.e., a projection of the 3D ice system on a plane, such a string requires an additional energetic term in the form of a line tension [21]. The reason is that, while in a 3D system all spin configurations that satisfy the ice rules have equal ener...