src/ZF/Tools/inductive_package.ML
changeset 79336 032a31db4c6f
parent 78036 2594319ad9ee
child 80636 4041e7c8059d
equal deleted inserted replaced
79335:6d167422bcb0 79336:032a31db4c6f
   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)