Ok, this may be totally stupid, but I was thinking that would it be possible if a planet, such as earth, could have actually formed due to a dying star? The center of our planet is molten iron that is close to the temperature of the sun, that and our relative proximity to the sun is what helps make our planet a habitat that our life form can live on. So here is my weird thought on this.
What if when a star is dying , over millions or billions of years it is dying the gases surrounding it that contain dust and debris begin to accumulate and form a crust around the dying star. The star shrinks over a long period of time , the outer crust grows larger, until the surrounding debris is just about all collected in the molting crust encasing whats left of the star. As the crust thickens and the dying star cools, the surface comes to a temp that could possibly support life.
Now this is just a brain storm i had , but i wanted to know if its possible that something like this could be possible?? It would happen over millions or billions of years, so it would be next to impossible to actually see happen, but no one has seen a planet form either, so most of the information out their is educated guesses. Could my guess be plausible ?
be kind, Im still a virgin here