... this clearly means that the funeral rites for a deceased pope should be observed before the conclave gets underway. If no deceased pope, then no funeral rites. There is no one who can force a man to remain pope if he wills to resign.
I am not saying that a Pope cannot resign if he wants to. Of course, he can resign. Why do you keep saying that?
You seem to think that a papal resignation automatically triggers a papal election. You are incorrect about that, as the law of papal elections makes clear.
Even if a Pope chooses to resign (which he can do), the papal election law must still be followed precisely. And that law requires the death, funeral, and burial of the Pope BEFORE a new election can happen.
A papal resignation PRIOR TO the death of a Pope (under this law) will create a situation wherein the Church officials will still carry on day-to-day business through its curial offices in the Apostolic See, using as their guide the laws that have been put in place by the retired Pope. But these Curial officials cannot make new laws or teach new doctrines during that period.
Again, only after the death, funeral, and burial of the Pope can a new election be held. The new Pope can then start making new laws and teach doctrine.