equal
deleted
inserted
replaced
488 |
488 |
489 val declare_typ_names = fold_atyps (fn TFree (a, _) => Name.declare a | _ => I); |
489 val declare_typ_names = fold_atyps (fn TFree (a, _) => Name.declare a | _ => I); |
490 |
490 |
491 fun declare_term_names tm = |
491 fun declare_term_names tm = |
492 fold_aterms |
492 fold_aterms |
493 (fn Const (a, _) => Name.declare (NameSpace.base_name a) |
493 (fn Const (a, _) => Name.declare (Long_Name.base_name a) |
494 | Free (a, _) => Name.declare a |
494 | Free (a, _) => Name.declare a |
495 | _ => I) tm #> |
495 | _ => I) tm #> |
496 fold_types declare_typ_names tm; |
496 fold_types declare_typ_names tm; |
497 |
497 |
498 val declare_term_frees = fold_aterms (fn Free (x, _) => Name.declare x | _ => I); |
498 val declare_term_frees = fold_aterms (fn Free (x, _) => Name.declare x | _ => I); |
719 in abs 0 body handle SAME => body end; |
719 in abs 0 body handle SAME => body end; |
720 |
720 |
721 fun lambda v t = |
721 fun lambda v t = |
722 let val x = |
722 let val x = |
723 (case v of |
723 (case v of |
724 Const (x, _) => NameSpace.base_name x |
724 Const (x, _) => Long_Name.base_name x |
725 | Free (x, _) => x |
725 | Free (x, _) => x |
726 | Var ((x, _), _) => x |
726 | Var ((x, _), _) => x |
727 | _ => Name.uu) |
727 | _ => Name.uu) |
728 in Abs (x, fastype_of v, abstract_over (v, t)) end; |
728 in Abs (x, fastype_of v, abstract_over (v, t)) end; |
729 |
729 |