equal
deleted
inserted
replaced
166 val dummy = if !Ind_Syntax.trace then |
166 val dummy = if !Ind_Syntax.trace then |
167 writeln (cat_lines (map (Syntax.string_of_term ctxt0 o #2) axpairs)) |
167 writeln (cat_lines (map (Syntax.string_of_term ctxt0 o #2) axpairs)) |
168 else () |
168 else () |
169 |
169 |
170 (*add definitions of the inductive sets*) |
170 (*add definitions of the inductive sets*) |
171 val (_, thy1) = |
171 val thy1 = |
172 thy0 |
172 thy0 |
173 |> Sign.add_path big_rec_base_name |
173 |> Sign.add_path big_rec_base_name |
174 |> Global_Theory.add_defs false (map (Thm.no_attributes o apfst Binding.name) axpairs); |
174 |> fold (snd oo Global_Theory.add_def o apfst Binding.name) axpairs; |
175 |
175 |
176 |
176 |
177 (*fetch fp definitions from the theory*) |
177 (*fetch fp definitions from the theory*) |
178 val big_rec_def::part_rec_defs = |
178 val big_rec_def::part_rec_defs = |
179 map (Misc_Legacy.get_def thy1) |
179 map (Misc_Legacy.get_def thy1) |