equal
deleted
inserted
replaced
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 |