tuned
authorChristian Urban <urbanc@in.tum.de>
Thu, 29 Jan 2009 17:10:13 +0000
changeset 92 4e3f262a459d
parent 91 667a0943c40b
child 93 62fb91f86908
tuned
CookBook/FirstSteps.thy
CookBook/ROOT.ML
cookbook.pdf
--- a/CookBook/FirstSteps.thy	Thu Jan 29 17:09:56 2009 +0000
+++ b/CookBook/FirstSteps.thy	Thu Jan 29 17:10:13 2009 +0000
@@ -522,7 +522,21 @@
 
 @{ML_response [display] "Sign.base_name \"List.list.Nil\"" "\"Nil\""}
 
-  authentic syntax
+  authentic syntax?
+
+*}
+
+ML {* @{const_name lfp} *}
+
+text {*
+  constants in case-patterns?
+
+  In the meantime, lfp has been moved to the Inductive theory, so it is  
+  no longer called Lfp.lfp. If a @{text "@{const_name}"} antiquotation had been  
+  used, we would have gotten an error for this. Another advantage of the  
+  antiquotation is that we can then just write @{text "@{const_name lfp}"} rather  
+  than @{text "@{const_name Lfp.lfp}"} or whatever, and it expands to the correct  
+  name.
   
 *}
 
@@ -719,4 +733,8 @@
 thm foo_def
 (*>*)
 
+section {* Misc *}
+
+ML {*DatatypePackage.get_datatype @{theory} "List.list"*}
+
 end
\ No newline at end of file
--- a/CookBook/ROOT.ML	Thu Jan 29 17:09:56 2009 +0000
+++ b/CookBook/ROOT.ML	Thu Jan 29 17:10:13 2009 +0000
@@ -12,6 +12,7 @@
 use_thy "Package/Ind_Examples";
 use_thy "Package/Ind_General_Scheme";
 use_thy "Package/Ind_Interface";
+use_thy "Package/Ind_Code";
 
 use_thy "Appendix";
 use_thy "Recipes/NamedThms";
Binary file cookbook.pdf has changed