src/HOL/Tools/Sledgehammer/sledgehammer_fact.ML
changeset 60252 2c468c062589
parent 59970 e9f73d87d904
child 60448 78f3c67bc35e
--- a/src/HOL/Tools/Sledgehammer/sledgehammer_fact.ML	Sun May 03 18:14:11 2015 +0200
+++ b/src/HOL/Tools/Sledgehammer/sledgehammer_fact.ML	Sun May 03 22:15:29 2015 +0200
@@ -55,6 +55,8 @@
    del : (Facts.ref * Token.src list) list,
    only : bool}
 
+val local_thisN = Long_Name.localN ^ Long_Name.separator ^ Auto_Bind.thisN
+
 (* gracefully handle huge background theories *)
 val max_facts_for_duplicates = 50000
 val max_facts_for_complex_check = 25000
@@ -499,7 +501,7 @@
                else
                  let
                    fun get_name () =
-                     if name0 = "" then
+                     if name0 = "" orelse name0 = local_thisN then
                        backquote_thm ctxt th
                      else
                        let val short_name = Facts.extern ctxt facts name0 in