src/HOL/Tools/typedef_package.ML
changeset 28965 1de908189869
parent 28848 9a02932efb91
child 29052 c8d3a96b69d9
equal deleted inserted replaced
28963:f6d9e0e0b153 28965:1de908189869
    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;