equal
deleted
inserted
replaced
163 val con_pairs = map (fn c => (#1 (dest_Const c), con_info)) constructors |
163 val con_pairs = map (fn c => (#1 (dest_Const c), con_info)) constructors |
164 |
164 |
165 in |
165 in |
166 thy |
166 thy |
167 |> Theory.add_path (Sign.base_name big_rec_name) |
167 |> Theory.add_path (Sign.base_name big_rec_name) |
168 |> PureThy.add_thmss [(("simps", simps), [Simplifier.simp_add_global])] |> snd |
168 |> PureThy.add_thmss [(("simps", simps), [Attrib.theory Simplifier.simp_add])] |> snd |
169 |> DatatypesData.put (Symtab.update (big_rec_name, dt_info) (DatatypesData.get thy)) |
169 |> DatatypesData.put (Symtab.update (big_rec_name, dt_info) (DatatypesData.get thy)) |
170 |> ConstructorsData.put (fold_rev Symtab.update con_pairs (ConstructorsData.get thy)) |
170 |> ConstructorsData.put (fold_rev Symtab.update con_pairs (ConstructorsData.get thy)) |
171 |> Theory.parent_path |
171 |> Theory.parent_path |
172 end; |
172 end; |
173 |
173 |