ex post facto
The Latin phrase ex post facto means “from a thing done afterward.” In law, it refers to a criminal statute that retroactively punishes conduct that was legal at the time it was committed. The United States Constitution expressly prohibits such laws under:
wex