added local_standard;
authorwenzelm
Wed, 31 Oct 2001 21:59:25 +0100
changeset 12005 291593391010
parent 12004 1703de633aaf
child 12006 72fd225a5aa2
added local_standard;
src/Pure/drule.ML
--- a/src/Pure/drule.ML	Wed Oct 31 21:59:07 2001 +0100
+++ b/src/Pure/drule.ML	Wed Oct 31 21:59:25 2001 +0100
@@ -99,6 +99,7 @@
   val has_internal: tag list -> bool
   val impose_hyps: cterm list -> thm -> thm
   val close_derivation: thm -> thm
+  val local_standard: thm -> thm
   val compose_single: thm * int * thm -> thm
   val add_rules: thm list -> thm list -> thm list
   val del_rules: thm list -> thm list -> thm list
@@ -365,6 +366,10 @@
 
 val standard = close_derivation o standard';
 
+fun local_standard th =
+  th |> strip_shyps_warning |> zero_var_indexes
+  |> Thm.compress |> close_derivation;
+
 
 (*Convert all Vars in a theorem to Frees.  Also return a function for
   reversing that operation.  DOES NOT WORK FOR TYPE VARIABLES.