The scientific principle that scientists use to make the inference about the formation of nutrient-rich soil from cooled lava and weathered igneous rock is D. uniformitarianism.
Uniformitarianism is the concept that the processes occurring today, such as weathering and soil formation, have also occurred in the past and can explain the geological features we observe. This principle allows scientists to infer the historical processes that led to the current conditions around volcanoes.