equal
deleted
inserted
replaced
36 end; |
36 end; |
37 fun replace t = |
37 fun replace t = |
38 case t of |
38 case t of |
39 Free _ => t (*but not existing Vars, lest the names clash*) |
39 Free _ => t (*but not existing Vars, lest the names clash*) |
40 | Bound _ => t |
40 | Bound _ => t |
41 | _ => (case gen_assoc Pattern.aeconv (!pairs, t) of |
41 | _ => (case AList.lookup Pattern.aeconv (!pairs) t of |
42 SOME v => v |
42 SOME v => v |
43 | NONE => insert t) |
43 | NONE => insert t) |
44 (*abstraction of a numeric literal*) |
44 (*abstraction of a numeric literal*) |
45 fun lit (t as Const("0", _)) = t |
45 fun lit (t as Const("0", _)) = t |
46 | lit (t as Const("1", _)) = t |
46 | lit (t as Const("1", _)) = t |