src/Pure/Thy/thm_database.ML
changeset 20926 b2f67b947200
parent 20676 21e096f30c5d
child 21482 7bb5de80917f
equal deleted inserted replaced
20925:2d19e511fe2c 20926:b2f67b947200
    60 fun warn_ml name =
    60 fun warn_ml name =
    61   if is_ml_identifier name then false
    61   if is_ml_identifier name then false
    62   else if name = "" then true
    62   else if name = "" then true
    63   else (warning ("Cannot bind theorem(s) " ^ quote name ^ " as ML value"); true);
    63   else (warning ("Cannot bind theorem(s) " ^ quote name ^ " as ML value"); true);
    64 
    64 
    65 val use_text_verbose = use_text Context.ml_output true;
    65 val use_text_verbose = use_text Output.ml_output true;
    66 
    66 
    67 fun ml_store_thm (name, thm) =
    67 fun ml_store_thm (name, thm) =
    68   let val thm' = store_thm (name, thm) in
    68   let val thm' = store_thm (name, thm) in
    69     if warn_ml name then ()
    69     if warn_ml name then ()
    70     else (qed_thms := [thm'];
    70     else (qed_thms := [thm'];