equal
deleted
inserted
replaced
956 fun inst x t = read_instantiate_sg (the_context()) [(x,t)]; |
956 fun inst x t = read_instantiate_sg (the_context()) [(x,t)]; |
957 |
957 |
958 |
958 |
959 (* vars in left-to-right order *) |
959 (* vars in left-to-right order *) |
960 |
960 |
961 fun tvars_of_terms ts = rev (fold Term.add_tvars ts []); |
961 fun tvars_of_terms ts = rev (Library.foldl Term.add_tvars ([], ts)); |
962 fun vars_of_terms ts = rev (Library.foldl Term.add_vars ([], ts)); |
962 fun vars_of_terms ts = rev (Library.foldl Term.add_vars ([], ts)); |
963 |
963 |
964 fun tvars_of thm = tvars_of_terms [Thm.full_prop_of thm]; |
964 fun tvars_of thm = tvars_of_terms [Thm.full_prop_of thm]; |
965 fun vars_of thm = vars_of_terms [Thm.full_prop_of thm]; |
965 fun vars_of thm = vars_of_terms [Thm.full_prop_of thm]; |
966 |
966 |