src/HOL/Tools/Ctr_Sugar/ctr_sugar.ML
changeset 58234 265aea1e9985
parent 58227 d91f7a80f412
child 58256 08c0f0d4b9f4
equal deleted inserted replaced
58233:108f9ab5466d 58234:265aea1e9985
   391     val (unsorted_As, B) =
   391     val (unsorted_As, B) =
   392       no_defs_lthy
   392       no_defs_lthy
   393       |> variant_tfrees (map (fst o dest_TFree_or_TVar) As0)
   393       |> variant_tfrees (map (fst o dest_TFree_or_TVar) As0)
   394       ||> the_single o fst o mk_TFrees 1;
   394       ||> the_single o fst o mk_TFrees 1;
   395 
   395 
   396     val As = map2 (resort_tfree o snd o dest_TFree_or_TVar) As0 unsorted_As;
   396     val As = map2 (resort_tfree_or_tvar o snd o dest_TFree_or_TVar) As0 unsorted_As;
   397 
   397 
   398     val fcT = Type (fcT_name, As);
   398     val fcT = Type (fcT_name, As);
   399     val ctrs = map (mk_ctr As) ctrs0;
   399     val ctrs = map (mk_ctr As) ctrs0;
   400     val ctr_Tss = map (binder_types o fastype_of) ctrs;
   400     val ctr_Tss = map (binder_types o fastype_of) ctrs;
   401 
   401