Skip to content
SimulatorSystems, agents and memory

A pendulum stepped two ways

A pendulum moves through its phase space: angle across, momentum up. Step it with a method that can be run backwards and with one that cannot, and drag its start.

  • across: angle · up: momentum
Energy at the start
0.368
Energy at the end
0.368
Change in energy
0.000
Returns to its start run backwards
Yes
How each step is taken

Switch to Euler with the same step: the trajectory spirals off its curve and cannot be run back. Drag the ring, or tap the plane, to start elsewhere.

What the simulator does

  • The curves are the pendulum's levels of energy: a true trajectory stays on one of them.
  • The leapfrog step (half a kick, a drift, half a kick) keeps the trajectory on its curve, keeps areas of phase space, and returns to its start when run backwards.
  • The Euler step advances angle and momentum from the old values: its energy grows at every step, and it cannot be run back.

In Verace Topos: core and v2 code

Schematic: a layer's last-token activation is stepped by leapfrog along a Hamiltonian flow toward a basin centroid. Every step preserves volume and can be run backwards.

Last-token activation
A position with a momentum; depth plays the role of time
Basin centroid
The quadratic potential pulls activations toward it
Störmer-Verlet leapfrog
Half kick, full drift, half kick; inverted by time reversal
Volume-preserving step
Checked by finite differences; a failure passes q through

What this is not

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Read the write-up