Train and Tunnel Paradox
This thought experiment is usually called the ladder paradox — told with a ladder or pole carried at speed through a barn with a door at each end — but the train version is the same puzzle. A train, parked, is a little longer than a tunnel. Now run it through at a good fraction of . Each door opens just as the front of the train reaches it and slams shut the instant the rear clears it. From the ground the moving train is shortened by length contraction, and past a certain speed it is shorter than the tunnel — so there is a moment when the entrance has already shut and the exit has not yet opened: the train is sealed inside. But from the train it is the tunnel that is moving, so the tunnel is the one that shrinks. It is now shorter than the train was to begin with. The exit must open before the entrance shuts; the train pokes out of both ends and is never enclosed.[1]
Top: the same passage from the two frames, each running on its own clock. Below: the spacetime diagram that reconciles them. The tunnel is the grey strip and its doors are the thick lines (dashed while open); the train is the blue band. A is the entrance shutting, B the exit opening. The ground's "now" is horizontal and can slice between A and B, where the red block marks the train sealed inside. The train's "now" is tilted and meets B before A — from the train, the exit opens first. Neither view is wrong: B lies outside A's light cone (the yellow lines), so nothing can fix which came first.
Both accounts are correct, and the thing that makes them compatible is the relativity of simultaneity. "The entrance shuts before the exit opens" is a claim about the order of two events at different places, and the spacetime diagram shows that order is not something the two frames share. The ground's line of "now" is horizontal; the train's is tilted, and the tilt is enough to swap the two door events. There is no experiment that could settle which door acted first, because the two events lie outside each other's light cone — no signal, not even light, can get from one to the other in time to matter.[2] Length contraction is not the train "really" being short; it is what you get when you measure both ends at the same time, and "at the same time" is exactly what the frames disagree about.
Take , tunnel rest length , train rest length . From the ground the train has length , which is shorter than the tunnel once , i.e. .
Put the tunnel at with the train's front at and its rear at . The two events that matter are
On the ground whenever — the sealed interval. Now apply the Lorentz transformation :
Since , we always have : on the train the exit opens first, at any speed. The term in is doing the work — it shifts the exit event (at ) earlier by relative to the entrance event (at ).
Why can the order flip at all? The separation between A and B is in space and in time, and whenever the train fits. So the interval is spacelike: B is outside A's light cone. Only for spacelike pairs can a boost reverse the order — and for such pairs nothing physical can depend on it, which is why no door ever actually collides with a train that "wasn't there yet."
The version with a crash. Suppose instead the ground crew shuts both doors at the same ground instant while the train is inside, then re-opens them. On the train those two slams are not simultaneous: the exit shuts first, the front of the train hits it, and the train is compressed — the rear keeps moving because news of the collision cannot outrun light — until the entrance shuts behind it. Nothing in a rigid body is truly rigid in relativity; the train genuinely fits, with a crumpled nose to show for it.