President Trump has made some... remarkable and entertaining... remarks about his willingness to leave the White House if he should loose the POTUS election in November. This got me thinking. I'm not a lawyer or a politician, but I have been trained all my life to simply "know" that the White House is where the POTUS lives. Period. The idea that somebody might not leave it is... well... it's unique.
Is there a portion of the U.S. code requires a past-president to vacate the White House? I suspect it's technically owned by the United States Government and, as landlord, said government has the right to evict whomever it wants ... but even the image of The Donald hanging on by his fingernails while sunglass-laden G-men holding, not a warrant, not a subpoena, but an eviction notice drag him out. It would make a good play. But I digress.
Is there a law that states the building must be vacated? (As a bonus question, is it possible to invoke squatter's rights for the White House?)
Please note that my question is, I believe, a duplicate of this question, except that the answers don't address the legality that the question implies. If I need to abandon this question for that one, I'm happy to, but I don't have enough rep to bounty that question and point out that no answer describes any law enforcing anything.