src/Tools/adhoc_overloading.ML
changeset 55237 1e341728bae9
parent 54468 f6ffe53387ef
child 55954 a29aefc88c8d
equal deleted inserted replaced
55236:8d61b0aa7a0d 55237:1e341728bae9
   170     fun proc t =
   170     fun proc t =
   171       Term.map_types (K dummyT) t
   171       Term.map_types (K dummyT) t
   172       |> get_overloaded ctxt
   172       |> get_overloaded ctxt
   173       |> Option.map (Const o rpair (Term.type_of t));
   173       |> Option.map (Const o rpair (Term.type_of t));
   174   in
   174   in
   175     Pattern.rewrite_term (Proof_Context.theory_of ctxt) [] [proc]
   175     Pattern.rewrite_term_top (Proof_Context.theory_of ctxt) [] [proc]
   176   end;
   176   end;
   177 
   177 
   178 fun check ctxt =
   178 fun check ctxt =
   179   map (fn t => Term.map_aterms (insert_variants ctxt t) t);
   179   map (fn t => Term.map_aterms (insert_variants ctxt t) t);
   180 
   180