Lesson 7 of 15
The Spacetime Interval
The Spacetime Interval
The Lorentz transformation mixes space and time — different observers disagree on and separately. But there is a quantity they all agree on: the spacetime interval:
(Using the metric signature.) No matter which inertial frame you compute this in, you get the same number. It is the relativistic generalisation of the distance formula.
Classification of Intervals
| Type | Meaning | |
|---|---|---|
| Timelike | A signal slower than can connect the events; they are causally related | |
| Lightlike | Only a light ray connects them; they lie on the light cone | |
| Spacelike | No causal connection is possible; observers disagree on the order |
Proper Time
For a timelike interval, the proper time is the time measured by a clock that travels directly between the two events:
Invariance Example
Event: s, m. Then . After a Lorentz boost to (): s, . So . Invariant confirmed.
Your Task
Implement spacetime_interval_sq(delta_t, delta_x) returning , and interval_type(s_sq) returning "timelike", "lightlike", or "spacelike". Use m/s defined inside each function.
Python runtime loading...
Loading...
Click "Run" to execute your code.