CoreWeave will buy crypto miner Core Scientific in an all-stock deal valued at about $9 billion, the company said on Monday, as AI infrastructure firms race to secure power supply to support their surging workloads.