ex post facto rule — Legal Definition, Examples & Cases