Oxygen-initiated stereoselective thermal isomerisation of a cyclobutane derivative in the solid state.