Equation
Lieutenant General
Global rare earth market : less than 9 billion $
Global semi market : around 500 billion $ ->17% controlled by SK
Additionaly without matured semi industry it is not possile to make cutting edge military / space hardware.
US has reserves to make, and currently mining rare earth only for military applications, but nothing prevent the US (or russia, japan and so on) to increase the production dramaticaly. It needs only money to invest new mines.
However the semi industry needs accumulated knowledge.
The US doesn't even have enough reserves to provide for BOTH military and commercial use after if China shuts down production. Plus the US has already had a hard time with "only money invest in new mines" the current and only rare earth mine in Mountain Pass, California that had file for bankruptcy and therefore looking to CHINA as a partnership to provide financial and technical help.
China has a growing semi industry to provide for their military already. Why do you think Japan or Russia can't even do a real 5th Gen fighters? Why do you think China is ahead in everyone in Supercomputer, HGV, DF-17, DF-21D and DF-26 ASBM as well as quantum technology teleportation satellite from space?