The Supreme Court has determined that the generic definition of burglary does not require a defendant to have criminal intent at the first moment that he unlawfully remains in a building, but rather, encompasses offenses where a defendant forms that intent at any time that he is unlawfully remaining the building. As such, Michigan’s third-degree home invasion statute is a match to the generic burglary definition.
The full text of Quarles v. United States can be found here: