src/ZF/Tools/inductive_package.ML
changeset 35989 3418cdf1855e
parent 35409 5c5bb83f2bae
child 36541 de1862c4a308
equal deleted inserted replaced
35988:76ca601c941e 35989:3418cdf1855e
   154 
   154 
   155   (*Big_rec... is the union of the mutually recursive sets*)
   155   (*Big_rec... is the union of the mutually recursive sets*)
   156   val big_rec_tm = list_comb(Const(big_rec_name,recT), rec_params);
   156   val big_rec_tm = list_comb(Const(big_rec_name,recT), rec_params);
   157 
   157 
   158   (*The individual sets must already be declared*)
   158   (*The individual sets must already be declared*)
   159   val axpairs = map Primitive_Defs.mk_defpair
   159   val axpairs = map OldGoals.mk_defpair
   160         ((big_rec_tm, fp_rhs) ::
   160         ((big_rec_tm, fp_rhs) ::
   161          (case parts of
   161          (case parts of
   162              [_] => []                        (*no mutual recursion*)
   162              [_] => []                        (*no mutual recursion*)
   163            | _ => rec_tms ~~          (*define the sets as Parts*)
   163            | _ => rec_tms ~~          (*define the sets as Parts*)
   164                   map (subst_atomic [(Free(X',iT),big_rec_tm)]) parts));
   164                   map (subst_atomic [(Free(X',iT),big_rec_tm)]) parts));