Sun rocks are farmed by heat and pressure. What is the heat source for rock formation? Is it heat from forest fires heat from the Earth interior heat from electronic current heat from the sun

The heat source for rock formation comes primarily from the Earth's interior. The Earth's core generates heat through various processes, such as the decay of radioactive elements and residual heat from its formation. This heat is then transferred to the upper layers of the Earth, including the crust, where rocks are formed by the combination of heat and pressure. While forest fires, electronic currents, and heat from the sun can influence localized heating and weathering of rocks on or near the Earth's surface, they are not the primary heat source for rock formation.