src/ZF/Tools/induct_tacs.ML
changeset 78022 c078a33c2dff
parent 74563 042041c0ebeb
child 80636 4041e7c8059d
equal deleted inserted replaced
78021:ce6e3bc34343 78022:c078a33c2dff
   155 
   155 
   156   in
   156   in
   157     thy
   157     thy
   158     |> Sign.add_path (Long_Name.base_name big_rec_name)
   158     |> Sign.add_path (Long_Name.base_name big_rec_name)
   159     |> Global_Theory.add_thmss [((Binding.name "simps", simps), [Simplifier.simp_add])] |> snd
   159     |> Global_Theory.add_thmss [((Binding.name "simps", simps), [Simplifier.simp_add])] |> snd
   160     |> DatatypesData.put (Symtab.update (big_rec_name, dt_info) (DatatypesData.get thy))
   160     |> DatatypesData.map (Symtab.update (big_rec_name, dt_info))
   161     |> ConstructorsData.put (fold_rev Symtab.update con_pairs (ConstructorsData.get thy))
   161     |> ConstructorsData.map (fold_rev Symtab.update con_pairs)
   162     |> Sign.parent_path
   162     |> Sign.parent_path
   163   end;
   163   end;
   164 
   164 
   165 fun rep_datatype raw_elim raw_induct raw_case_eqns raw_recursor_eqns thy =
   165 fun rep_datatype raw_elim raw_induct raw_case_eqns raw_recursor_eqns thy =
   166   let
   166   let