equal
deleted
inserted
replaced
273 of SOME class => thyname_of_class thy class |
273 of SOME class => thyname_of_class thy class |
274 | NONE => (case Code.get_type_of_constr_or_abstr thy c |
274 | NONE => (case Code.get_type_of_constr_or_abstr thy c |
275 of SOME (tyco, _) => Codegen.thyname_of_type thy tyco |
275 of SOME (tyco, _) => Codegen.thyname_of_type thy tyco |
276 | NONE => Codegen.thyname_of_const thy c); |
276 | NONE => Codegen.thyname_of_const thy c); |
277 fun purify_base "==>" = "follows" |
277 fun purify_base "==>" = "follows" |
|
278 | purify_base "==" = "meta_eq" |
278 | purify_base s = Name.desymbolize false s; |
279 | purify_base s = Name.desymbolize false s; |
279 fun namify thy get_basename get_thyname name = |
280 fun namify thy get_basename get_thyname name = |
280 let |
281 let |
281 val prefix = get_thyname thy name; |
282 val prefix = get_thyname thy name; |
282 val base = (purify_base o get_basename) name; |
283 val base = (purify_base o get_basename) name; |