I wanted to derive length contraction from the Lorentz transformation, but I keep getting stuck on problems with simultaneity in my derivation. At some point, I came across Wikipedia's article on Length Contraction where, in the section labeled "Derivation", it states
In an inertial reference frame $S^\prime$, $x_1^{\prime}$ and $x_2^{\prime}$ shall denote the endpoints for an object of length $L_0^\prime$ at rest in this system. The coordinates in $S^\prime$ are connected to those in $S$ by the Lorentz transformations as follows:
$ x_1^{\prime} = \frac{x_1-vt_1}{\sqrt{1-\frac{v^2}{c^2}}} $ and $ x_2^{\prime} = \frac{x_2-vt_2}{\sqrt{1-\frac{v^2}{c^2}}} $
As this object is moving in $S$, its length $L$ has to be measured according to the above convention by determining the simultaneous positions of its endpoints, so we have to put $t_1=t_2$. Because $L=x_2-x_1$ and $L_0^\prime=x_2^\prime-x_1^\prime$, we obtain
$ L_0^{\prime} = \frac{L}{\sqrt{1-\frac{v^2}{c^2}}}. $
I understand everything except for the line which reads $L_0^\prime=x_2^\prime-x_1^\prime.$ After setting $t_1=t_2$, it is possible to write $L=x_2-x_1,$ since events $1$ and $2$ are simultaneous. However, in the primed inertial reference frame, which is moving with a nonzero velocity with respect to the laboratory frame, the events are not simultaneous. Therefore, how can it be that $ L_0^\prime=x_2^\prime-x_1^\prime, $ since $ t_1^\prime \neq t_2^\prime? $
