src/Pure/Thy/thm_database.ML
changeset 5090 75ac9b451ae0
parent 5038 301c37df931d
child 5155 21177b8a4d7f
equal deleted inserted replaced
5089:f95e0a6eb775 5090:75ac9b451ae0
    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 ());