src/HOL/Tools/Predicate_Compile/predicate_compile_data.ML
changeset 43329 84472e198515
parent 43277 1fd31f859fc7
child 44338 700008399ee5
equal deleted inserted replaced
43328:10d731b06ed7 43329:84472e198515
   127     val i = length (binder_types (fastype_of f)) - length args
   127     val i = length (binder_types (fastype_of f)) - length args
   128   in funpow i (fn th => th RS meta_fun_cong) th end;
   128   in funpow i (fn th => th RS meta_fun_cong) th end;
   129 
   129 
   130 fun declare_names s xs ctxt =
   130 fun declare_names s xs ctxt =
   131   let
   131   let
   132     val res = Name.names ctxt s xs
   132     val res = Name.invent_names ctxt s xs
   133   in (res, fold Name.declare (map fst res) ctxt) end
   133   in (res, fold Name.declare (map fst res) ctxt) end
   134   
   134   
   135 fun split_all_pairs thy th =
   135 fun split_all_pairs thy th =
   136   let
   136   let
   137     val ctxt = Proof_Context.init_global thy
   137     val ctxt = Proof_Context.init_global thy