src/Pure/theory.ML
changeset 24199 8be734b5f59f
parent 24137 8d7896398147
child 24626 85eceef2edc7
equal deleted inserted replaced
24198:4031da6d8ba3 24199:8be734b5f59f
   212     val _ =
   212     val _ =
   213       if null rhs_extras then ()
   213       if null rhs_extras then ()
   214       else error ("Specification depends on extra type variables: " ^
   214       else error ("Specification depends on extra type variables: " ^
   215         commas_quote (map (Pretty.string_of_typ pp o TFree) rhs_extras) ^
   215         commas_quote (map (Pretty.string_of_typ pp o TFree) rhs_extras) ^
   216         "\nThe error(s) above occurred in " ^ quote name);
   216         "\nThe error(s) above occurred in " ^ quote name);
   217   in Defs.define pp unchecked is_def (Context.theory_name thy) name (prep lhs) (map prep rhs) end;
   217   in Defs.define pp unchecked is_def name (prep lhs) (map prep rhs) end;
   218 
   218 
   219 fun add_deps a raw_lhs raw_rhs thy =
   219 fun add_deps a raw_lhs raw_rhs thy =
   220   let
   220   let
   221     val lhs :: rhs = map (dest_Const o Sign.cert_term thy o Const) (raw_lhs :: raw_rhs);
   221     val lhs :: rhs = map (dest_Const o Sign.cert_term thy o Const) (raw_lhs :: raw_rhs);
   222     val name = if a = "" then (#1 lhs ^ " axiom") else a;
   222     val name = if a = "" then (#1 lhs ^ " axiom") else a;