equal
deleted
inserted
replaced
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; |