changeset 79242 | b0774e7d1949 |
parent 74525 | c960bfcb91db |
child 81219 | 2554f664deac |
--- a/src/Pure/more_pattern.ML Mon Dec 11 12:45:16 2023 +0100 +++ b/src/Pure/more_pattern.ML Mon Dec 11 13:03:10 2023 +0100 @@ -39,7 +39,7 @@ (* rewriting -- simple but fast *) fun match_rew thy tm (tm1, tm2) = - let val rtm = the_default tm2 (Term.rename_abs tm1 tm tm2) in + let val rtm = perhaps (Term.rename_abs tm1 tm) tm2 in SOME (Envir.subst_term (Pattern.match thy (tm1, tm) (Vartab.empty, Vartab.empty)) rtm, rtm) handle Pattern.MATCH => NONE end;