The United States must stay ahead of China in the artificial-intelligence race, a conviction that has shaped American policy for...