src/HOL/Mirabelle/Tools/mirabelle_sledgehammer.ML
changeset 42361 23f352990944
parent 42179 24662b614fd4
child 42443 724e612ba248
equal deleted inserted replaced
42360:da8817d01e7c 42361:23f352990944
   409   handle ERROR msg => ("error: " ^ msg, SH_ERROR)
   409   handle ERROR msg => ("error: " ^ msg, SH_ERROR)
   410 
   410 
   411 fun thms_of_name ctxt name =
   411 fun thms_of_name ctxt name =
   412   let
   412   let
   413     val lex = Keyword.get_lexicons
   413     val lex = Keyword.get_lexicons
   414     val get = maps (ProofContext.get_fact ctxt o fst)
   414     val get = maps (Proof_Context.get_fact ctxt o fst)
   415   in
   415   in
   416     Source.of_string name
   416     Source.of_string name
   417     |> Symbol.source
   417     |> Symbol.source
   418     |> Token.source {do_recover=SOME false} lex Position.start
   418     |> Token.source {do_recover=SOME false} lex Position.start
   419     |> Token.source_proper
   419     |> Token.source_proper