It is worth reading the article. Lengthy, but it explains the concepts well.
To summarize
The Pope is without a superior on Earth in matters of the faith as long as he remains faithful to the Magisterium and the teachings of the Church.
If he strays in to personal heresy The Church; the Bishops are the fathers of their individual Churches and acting as one ( in Council) become superior to the Pope.
The Cardinals not having Churches are not the superior of the Pope.
A group of Bishops would call an Imperfect Council (excludes the Pope) to determine if the Pope has fallen in to personal heresy. If they do determine that the Pope is in personal heresy it is deemed that he has separated himself from the Church and that God himself has deposed the Pope. The Seat of Peter is vacant and that a new Pope must be elected.
Thank you for a clear and concise answer to the question.
Per Roman Catholic Canon Law...isn't the pope given an opportunity to recant...and if so I think he gets to remain pope.