src/HOL/Tools/Ctr_Sugar/ctr_sugar_code.ML
changeset 61065 ca4ebc63d8ac
parent 60825 bacfb7c45d81
child 61116 6189d179c2b5
equal deleted inserted replaced
61064:01b23bfb4947 61065:ca4ebc63d8ac
    91         val spec =
    91         val spec =
    92           mk_Trueprop_eq (mk_side @{const_name HOL.equal}, mk_side @{const_name HOL.eq})
    92           mk_Trueprop_eq (mk_side @{const_name HOL.equal}, mk_side @{const_name HOL.eq})
    93           |> Syntax.check_term lthy;
    93           |> Syntax.check_term lthy;
    94         val ((_, (_, raw_def)), lthy') =
    94         val ((_, (_, raw_def)), lthy') =
    95           Specification.definition (NONE, (Attrib.empty_binding, spec)) lthy;
    95           Specification.definition (NONE, (Attrib.empty_binding, spec)) lthy;
    96         val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy); (* FIXME? *)
    96         val thy_ctxt = Proof_Context.init_global (Proof_Context.theory_of lthy');
    97         val def = singleton (Proof_Context.export lthy' thy_ctxt) raw_def;
    97         val def = singleton (Proof_Context.export lthy' thy_ctxt) raw_def;
    98       in
    98       in
    99         (def, lthy')
    99         (def, lthy')
   100       end;
   100       end;
   101 
   101