Another way to say "You sleep to rest." is "When you rest, you sleep."