Newton’s first law: why motion persists
Newton’s first law says that without a net force, an object at rest stays at rest, and a moving object keeps the same velocity.
In the cyclic-machine model, a particle executes the instructions in its list one after another, one per tick, and repeats the same list over and over again. As long as the list stays unchanged, the particle has the same average velocity in every cycle.
One cycle gives the velocity
Let S be the net displacement of one cycle and N the number of ticks in it. After k cycles, the displacement is kS and the elapsed time is kN. Their ratio is always S/N. The order of the instructions shapes the path within a cycle; it does not change this ratio.
If the list stays unchanged, the velocity measured this way stays unchanged too. If the steps cancel, as in right, left, the particle returns to the same position every cycle. It is at rest at that scale even though it still takes steps.
At the scale of complete cycles, this is exactly the behaviour Newton’s first law describes: the particle either stays in the same place or moves in a straight line at constant speed.
Try it
Start with the 2D instruction-stack simulation. Each cube in the stack represents one instruction.
Then try the 3D first-law simulation. The cube starts with right, right, up, so each cycle moves it two cells right and one cell up. Add a downward instruction to cancel the upward drift, or delete one rightward instruction to make the two components equal. An edit changes the future path; it does not move the cube immediately or restart its cycle.