equal
deleted
inserted
replaced
50 |
50 |
51 fun ml_store_thm (name, thm) = |
51 fun ml_store_thm (name, thm) = |
52 let val thm' = store_thm (name, thm) in |
52 let val thm' = store_thm (name, thm) in |
53 if is_ml_identifier name then |
53 if is_ml_identifier name then |
54 (qed_thm := Some thm'; |
54 (qed_thm := Some thm'; |
55 use_text ("val " ^ name ^ " = the (! ThmDatabase.qed_thm);")) |
55 use_text true ("val " ^ name ^ " = the (! ThmDatabase.qed_thm);")) |
56 else warning ("Cannot bind thm " ^ quote name ^ " as ML value") |
56 else warning ("Cannot bind thm " ^ quote name ^ " as ML value") |
57 end; |
57 end; |
58 |
58 |
59 fun bind_thm (name, thm) = ml_store_thm (name, standard thm); |
59 fun bind_thm (name, thm) = ml_store_thm (name, standard thm); |
60 fun qed name = ml_store_thm (name, result ()); |
60 fun qed name = ml_store_thm (name, result ()); |