src/Pure/facts.ML
changeset 61054 add998b3c597
parent 60924 610794dff23c
child 63080 8326aa594273
--- a/src/Pure/facts.ML	Sun Aug 30 17:32:50 2015 +0200
+++ b/src/Pure/facts.ML	Sun Aug 30 17:34:29 2015 +0200
@@ -228,11 +228,12 @@
 
 fun add_static context {strict, index} (b, ths) (Facts {facts, props}) =
   let
+    val ths' = map Thm.trim_context ths;
     val (name, facts') =
       if Binding.is_empty b then ("", facts)
-      else Name_Space.define context strict (b, Static ths) facts;
+      else Name_Space.define context strict (b, Static ths') facts;
     val props' = props
-      |> index ? fold (fn th => Net.insert_term (K false) (Thm.full_prop_of th, th)) ths;
+      |> index ? fold (fn th => Net.insert_term (K false) (Thm.full_prop_of th, th)) ths';
   in (name, make_facts facts' props') end;