src/Pure/Thy/thm_database.ML
changeset 25699 891fe6b71d3b
parent 23921 947152add153
child 26386 9c806de22a6a
equal deleted inserted replaced
25698:8c335b4641a5 25699:891fe6b71d3b
    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 CRITICAL (fn () => (qed_thms := [thm'];
    54     else NAMED_CRITICAL "ML" (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 CRITICAL (fn () => (qed_thms := thms';
    61     else NAMED_CRITICAL "ML" (fn () => (qed_thms := thms';
    62       use_text_verbose ("val " ^ name ^ " = ! ThmDatabase.qed_thms;")))
    62       use_text_verbose ("val " ^ name ^ " = ! ThmDatabase.qed_thms;")))
    63   end;
    63   end;
    64 
    64 
    65 
    65 
    66 (* legacy bindings *)
    66 (* legacy bindings *)