src/Pure/Tools/find_theorems.ML
changeset 42358 b47d41d9f4b5
parent 42012 2c3fe3cbebae
child 42360 da8817d01e7c
equal deleted inserted replaced
42357:3305f573294e 42358:b47d41d9f4b5
   379   let
   379   let
   380     (* FIXME global name space!? *)
   380     (* FIXME global name space!? *)
   381     val space = Facts.space_of (Global_Theory.facts_of (ProofContext.theory_of ctxt));
   381     val space = Facts.space_of (Global_Theory.facts_of (ProofContext.theory_of ctxt));
   382 
   382 
   383     val shorten =
   383     val shorten =
   384       Name_Space.extern_flags
   384       Name_Space.extern
   385         {long_names = false, short_names = false, unique_names = false} space;
   385         (ctxt
       
   386           |> Config.put Name_Space.long_names false
       
   387           |> Config.put Name_Space.short_names false
       
   388           |> Config.put Name_Space.unique_names false) space;
   386 
   389 
   387     fun nicer (Facts.Named ((x, _), i)) (Facts.Named ((y, _), j)) =
   390     fun nicer (Facts.Named ((x, _), i)) (Facts.Named ((y, _), j)) =
   388           nicer_name (shorten x, i) (shorten y, j)
   391           nicer_name (shorten x, i) (shorten y, j)
   389       | nicer (Facts.Fact _) (Facts.Named _) = true
   392       | nicer (Facts.Fact _) (Facts.Named _) = true
   390       | nicer (Facts.Named _) (Facts.Fact _) = false;
   393       | nicer (Facts.Named _) (Facts.Fact _) = false;