You wrote:
"But that's not the 'doctrine of infallibility'."
Neither is what you're posting. That was the point.
"So if the Pope woke up tomorrow and said "Doctrine says that the Earth is flat." he would be infallible?"
No. No pope can make an infallible statement about science. Science is not his to make such statements about.
"Tell that to Galileo or Copernicus."
Why? Neither one was ever the subject of a papal infallible statement. Copernicus even dedicated his book to a pope. Galileo counted at least one pope among his friends. Galileo's problem was that he strayed into theology rather than sticking to science. Learn your history, please.
If you're going to attack papal infallibility, wouldn't help fo you to know what it is and what it isn't?
It seems one did. Once again, from the Papal Condemnation of Galileo:
The proposition that the Sun is the center of the world and does not move from its place is absurd and false philosophically and formally heretical, because it is expressly contrary to Holy Scripture.
So what you're saying is that the Pope either thought he was infallible and was wrong, or was knowingly acting outside of his authority.
Which is it?
L