CoreWeave has entered into a definitive agreement to acquire Core Scientific in an all-stock deal worth about $9 billion.