# HG changeset patch # User bulwahn # Date 1310074394 -7200 # Node ID 47b0be18ccbea838adc69c416049f0a3eff94b9e # Parent 93dcfcf914848dea333e530761dd616c2c5c1744 floor and ceiling definitions are not code equations -- this enables trivial evaluation of floor and ceiling diff -r 93dcfcf91484 -r 47b0be18ccbe src/HOL/Archimedean_Field.thy --- a/src/HOL/Archimedean_Field.thy Wed Jul 06 23:11:59 2011 +0200 +++ b/src/HOL/Archimedean_Field.thy Thu Jul 07 23:33:14 2011 +0200 @@ -143,7 +143,7 @@ definition floor :: "'a::archimedean_field \ int" where - "floor x = (THE z. of_int z \ x \ x < of_int (z + 1))" + [code del]: "floor x = (THE z. of_int z \ x \ x < of_int (z + 1))" notation (xsymbols) floor ("\_\") @@ -274,7 +274,7 @@ definition ceiling :: "'a::archimedean_field \ int" where - "ceiling x = - floor (- x)" + [code del]: "ceiling x = - floor (- x)" notation (xsymbols) ceiling ("\_\")