Spatial fluctuation theorem