Lightroom internally uses a variation of ProPhoto RGB in the development module. Soft proofing can be used to switch between ProPhoto RGB and the target color space if you want better control over your exported results.