Ever since people began trying to summit Mount Everest, climbers have become aware of subtle changes in their mental state as they ascend the mountain—and their brains gradually receive less oxygen.