src/HOL/Tools/datatype_codegen.ML
changeset 28394 b9c8e3a12a98
parent 28370 37f56e6e702d
child 28423 9fc3befd8191
equal deleted inserted replaced
28393:30ba169e8c45 28394:b9c8e3a12a98
   469   in
   469   in
   470     thy
   470     thy
   471     |> TheoryTarget.instantiation (dtcos, vs', [HOLogic.class_eq])
   471     |> TheoryTarget.instantiation (dtcos, vs', [HOLogic.class_eq])
   472     |> fold_map add_def dtcos
   472     |> fold_map add_def dtcos
   473     |-> (fn thms => Class.prove_instantiation_instance (K (tac thms))
   473     |-> (fn thms => Class.prove_instantiation_instance (K (tac thms))
   474     #> LocalTheory.exit
   474     #> LocalTheory.exit_global
   475     #> ProofContext.theory_of
       
   476     #> fold Code.del_eqn thms
   475     #> fold Code.del_eqn thms
   477     #> fold add_eq_thms dtcos)
   476     #> fold add_eq_thms dtcos)
   478   end;
   477   end;
   479 
   478 
   480 
   479