src/Pure/drule.ML
changeset 16790 be2780f435e1
parent 16787 b6b6e2faaa41
child 16861 7446b4be013b
equal deleted inserted replaced
16789:e8f7a6ec92e5 16790:be2780f435e1
   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