Nominal/nominal_dt_rawfuns.ML
changeset 2542 1f5c8e85c41f
parent 2524 693562f03eee
child 2560 82e37a4595c7
equal deleted inserted replaced
2541:d7269488c4b5 2542:1f5c8e85c41f
    99     val ty = fastype_of t;
    99     val ty = fastype_of t;
   100     val atom_ty = dest_fsetT ty --> @{typ "atom"};
   100     val atom_ty = dest_fsetT ty --> @{typ "atom"};
   101     val fmap_ty = atom_ty --> ty --> @{typ "atom fset"};
   101     val fmap_ty = atom_ty --> ty --> @{typ "atom fset"};
   102     val fset = @{term "fset :: atom fset => atom set"}
   102     val fset = @{term "fset :: atom fset => atom set"}
   103   in
   103   in
   104     fset $ (Const (@{const_name fmap}, fmap_ty) $ Const (@{const_name atom}, atom_ty) $ t)
   104     fset $ (Const (@{const_name map_fset}, fmap_ty) $ Const (@{const_name atom}, atom_ty) $ t)
   105   end
   105   end
   106 
   106 
   107   fun mk_atom_list t =
   107   fun mk_atom_list t =
   108   let
   108   let
   109     val ty = fastype_of t;
   109     val ty = fastype_of t;