equal
deleted
inserted
replaced
60 |
60 |
61 fun internalize_sort_attr tvar = |
61 fun internalize_sort_attr tvar = |
62 Thm.rule_attribute [] (fn context => fn thm => |
62 Thm.rule_attribute [] (fn context => fn thm => |
63 (snd (internalize_sort (Thm.ctyp_of (Context.proof_of context) tvar) thm))); |
63 (snd (internalize_sort (Thm.ctyp_of (Context.proof_of context) tvar) thm))); |
64 |
64 |
65 val _ = Context.>> (Context.map_theory (Attrib.setup @{binding internalize_sort} |
65 val _ = Context.>> (Context.map_theory (Attrib.setup \<^binding>\<open>internalize_sort\<close> |
66 (tvar >> internalize_sort_attr) "internalize a sort")); |
66 (tvar >> internalize_sort_attr) "internalize a sort")); |
67 |
67 |
68 end; |
68 end; |