equal
deleted
inserted
replaced
49 val use_text_verbose = use_text "" Output.ml_output true; |
49 val use_text_verbose = use_text "" Output.ml_output true; |
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 warn_ml name then () |
53 if warn_ml name then () |
54 else (qed_thms := [thm']; |
54 else CRITICAL (fn () => (qed_thms := [thm']; |
55 use_text_verbose ("val " ^ name ^ " = hd (! ThmDatabase.qed_thms);")) |
55 use_text_verbose ("val " ^ name ^ " = hd (! ThmDatabase.qed_thms);"))) |
56 end; |
56 end; |
57 |
57 |
58 fun ml_store_thms (name, thms) = |
58 fun ml_store_thms (name, thms) = |
59 let val thms' = store_thms (name, thms) in |
59 let val thms' = store_thms (name, thms) in |
60 if warn_ml name then () |
60 if warn_ml name then () |
61 else (qed_thms := thms'; use_text_verbose ("val " ^ name ^ " = ! ThmDatabase.qed_thms;")) |
61 else CRITICAL (fn () => (qed_thms := thms'; |
|
62 use_text_verbose ("val " ^ name ^ " = ! ThmDatabase.qed_thms;"))) |
62 end; |
63 end; |
63 |
64 |
64 |
65 |
65 (* legacy bindings *) |
66 (* legacy bindings *) |
66 |
67 |