adding dummy definition for Code_Evaluation.Abs and hiding constants App less strict
authorbulwahn
Mon, 22 Nov 2010 10:41:57 +0100
changeset 40638 6b137c96df07
parent 40637 58c36606a74d
child 40639 f1f0e6adca0a
adding dummy definition for Code_Evaluation.Abs and hiding constants App less strict
src/HOL/Code_Evaluation.thy
--- a/src/HOL/Code_Evaluation.thy	Mon Nov 22 10:41:56 2010 +0100
+++ b/src/HOL/Code_Evaluation.thy	Mon Nov 22 10:41:57 2010 +0100
@@ -21,7 +21,10 @@
 definition App :: "term \<Rightarrow> term \<Rightarrow> term" where
   "App _ _ = dummy_term"
 
-code_datatype Const App
+definition Abs :: "String.literal \<Rightarrow> typerep \<Rightarrow> term \<Rightarrow> term" where
+  "Abs _ _ _ = dummy_term"
+
+code_datatype Const App Abs
 
 class term_of = typerep +
   fixes term_of :: "'a \<Rightarrow> term"
@@ -124,8 +127,8 @@
 code_type "term"
   (Eval "Term.term")
 
-code_const Const and App
-  (Eval "Term.Const/ ((_), (_))" and "Term.$/ ((_), (_))")
+code_const Const and App and Abs
+  (Eval "Term.Const/ ((_), (_))" and "Term.$/ ((_), (_))" and "Term.Abs/ ((_), (_), (_))")
 
 code_const "term_of \<Colon> String.literal \<Rightarrow> term"
   (Eval "HOLogic.mk'_literal")
@@ -184,7 +187,7 @@
   (Eval "Code'_Evaluation.tracing")
 
 
-hide_const dummy_term App valapp
-hide_const (open) Const termify valtermify term_of term_of_num tracing
+hide_const dummy_term valapp
+hide_const (open) Const App Abs termify valtermify term_of term_of_num tracing
 
 end