Proper Time and the Twin Paradox
Proper Time
Every clock measures its own proper time — the time elapsed along its own worldline. For a clock moving at constant velocity for coordinate time :
Because , proper time is always less than or equal to coordinate time. Moving clocks run slow — time dilation.
The Twin Paradox
Alice stays on Earth; Bob travels at for then returns. Earth's coordinate time for the round trip is . Bob's proper time is:
For , , so Bob ages only — he returns younger than Alice.
There is no paradox: Bob's worldline is not straight (he decelerates and turns around), so the situation is not symmetric. Alice follows the straight worldline between the two events — which is the worldline of maximum proper time (the spacetime geodesic).
| Bob ages (T=20 yr) | ||
|---|---|---|
| 0.6 | 1.25 | 16 yr |
| 0.8 | 1.667 | 12 yr |
| 0.99 | ≈7.09 | ≈2.82 yr |
Your Task
Implement proper_time(t, v) returning the proper time for coordinate time at constant speed , and twin_age_difference(T, v) returning how much less the traveling twin ages compared to the stay-at-home twin. Use m/s defined inside each function.