equal
deleted
inserted
replaced
78 |
78 |
79 fun prepare_typedef prep_term def name (t, vs, mx) raw_set opt_morphs thy = |
79 fun prepare_typedef prep_term def name (t, vs, mx) raw_set opt_morphs thy = |
80 let |
80 let |
81 val _ = Theory.requires thy "Typedef" "typedefs"; |
81 val _ = Theory.requires thy "Typedef" "typedefs"; |
82 val ctxt = ProofContext.init thy; |
82 val ctxt = ProofContext.init thy; |
83 val full = Sign.full_name thy; |
83 val full = Sign.full_bname thy; |
84 |
84 |
85 (*rhs*) |
85 (*rhs*) |
86 val full_name = full name; |
86 val full_name = full name; |
87 val set = prep_term (ctxt |> fold declare_type_name vs) raw_set; |
87 val set = prep_term (ctxt |> fold declare_type_name vs) raw_set; |
88 val setT = Term.fastype_of set; |
88 val setT = Term.fastype_of set; |