Now recdef checks the name of the function being defined.
authorpaulson
Mon, 26 May 1997 12:42:38 +0200
changeset 3345 4d888ddd6284
parent 3344 b3e39a2987c1
child 3346 5101517c2614
Now recdef checks the name of the function being defined. Slight tidying
src/HOL/thy_syntax.ML
--- a/src/HOL/thy_syntax.ML	Mon May 26 12:40:51 1997 +0200
+++ b/src/HOL/thy_syntax.ML	Mon May 26 12:42:38 1997 +0200
@@ -238,6 +238,7 @@
 	 (";\n\n\
           \val _ = writeln \"Recursive function " ^ fid ^ "\"\n\
           \val (thy, pats_" ^ intrnl_name ^ ") = Tfl.define thy " ^ 
+	                 quote fid ^ " " ^ 
 	                 rel ^ "\n" ^ mk_big_list axms ^ ";\n\
           \val thy = thy"
          ,
@@ -245,8 +246,8 @@
           \  struct\n\
           \  val _ = writeln \"Proofs for recursive function " ^ fid ^ "\"\n\
           \  val {rules, induct, tcs} = \n\
-          \    \t Tfl.simplify_defn(thy, (\"" ^ fid ^ 
-					  "\", pats_" ^ intrnl_name ^ "))\n\
+          \    \t Tfl.simplify_defn(thy, (" ^ quote fid ^ 
+					  ", pats_" ^ intrnl_name ^ "))\n\
           \  end;\n\
           \val pats_" ^ intrnl_name ^ " = ();\n")
   end;