src/ZF/Tools/inductive_package.ML
changeset 18358 0a733e11021a
parent 17985 d5d576b72371
child 18377 0e1d025d57b3
equal deleted inserted replaced
18357:c5030cdbf8da 18358:0a733e11021a
   174               List.app (writeln o Sign.string_of_term sign o #2) axpairs
   174               List.app (writeln o Sign.string_of_term sign o #2) axpairs
   175           else ()
   175           else ()
   176 
   176 
   177   (*add definitions of the inductive sets*)
   177   (*add definitions of the inductive sets*)
   178   val thy1 = thy |> Theory.add_path big_rec_base_name
   178   val thy1 = thy |> Theory.add_path big_rec_base_name
   179                  |> (#1 o PureThy.add_defs_i false (map Thm.no_attributes axpairs))
   179                  |> (snd o PureThy.add_defs_i false (map Thm.no_attributes axpairs))
   180 
   180 
   181 
   181 
   182   (*fetch fp definitions from the theory*)
   182   (*fetch fp definitions from the theory*)
   183   val big_rec_def::part_rec_defs =
   183   val big_rec_def::part_rec_defs =
   184     map (get_def thy1)
   184     map (get_def thy1)