function package: declare Spec_Rules for simps from total functions, but not psimps or tail-rec equations
authorkrauss
Mon, 18 Jan 2010 10:34:27 +0100
changeset 34950 1f5e55eb821c
parent 34919 a5407aabacfe
child 34951 1dfb1df1d9d0
function package: declare Spec_Rules for simps from total functions, but not psimps or tail-rec equations
src/HOL/Tools/Function/function.ML
--- a/src/HOL/Tools/Function/function.ML	Sat Jan 16 21:14:15 2010 +0100
+++ b/src/HOL/Tools/Function/function.ML	Mon Jan 18 10:34:27 2010 +0100
@@ -164,6 +164,7 @@
               simps=SOME simps, inducts=SOME inducts, termination=termination }
             in
               Local_Theory.declaration false (add_function_data o morph_function_data info')
+              #> Spec_Rules.add Spec_Rules.Equational (fs, simps)
             end)
         end
   in