Home▸Mathematics▸Fundamental Group of the Punctured Plane

Fundamental Group of the Punctured Plane (2D)

Draw a closed loop on a 2D canvas around 2-4 punctures and watch its homotopy class -- a word in the free fundamental group -- stay fixed under continuous deformation, while its self-crossing count does not. Drag to pan, scroll to zoom.

Mathematics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-topology-mathematics ↗ Open standalone

Poke n holes in a plane and the loops you can draw around them stop being simple curves — they become elements of a free group Fₙ, one generator per hole. This 2D-canvas simulator renders 2-4 punctures as dots and builds a real closed loop that winds around each of them a chosen number of times, in a chosen direction, computing its homotopy class as a reduced word (a²b⁻¹, for instance) directly from the sampled curve's winding numbers. An auto-deform mode continuously bends the loop's outer arc — a genuine homotopy that never touches a puncture — while the winding numbers and word stay frozen, in sharp contrast to the loop's self-crossing count, which visibly changes shape-to-shape even though the topology never does. Drag to pan and scroll to zoom the plane.

⚙ Under the hood

Draw a closed loop on a 2D canvas around 2-4 punctures in a plane and watch its homotopy class -- a word in the free fundamental group -- stay fixed under continuous deformation, while its self-crossing count does not. Drag to pan, scroll to zoom.

topologyfundamental grouphomotopywinding numberfree groupmath

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)