src/Pure/Isar/proof_context.ML
changeset 46849 36f392239b6a
parent 46775 6287653e63ec
child 46922 3717f3878714
equal deleted inserted replaced
46848:13eeb06847cb 46849:36f392239b6a
   837 
   837 
   838 local
   838 local
   839 
   839 
   840 fun retrieve_thms pick ctxt (Facts.Fact s) =
   840 fun retrieve_thms pick ctxt (Facts.Fact s) =
   841       let
   841       let
   842         val (_, pos) = Syntax.read_token s;
   842         val pos = Syntax.read_token_pos s;
   843         val prop =
   843         val prop =
   844           Syntax.read_prop (ctxt |> set_mode mode_default |> allow_dummies) s
   844           Syntax.read_prop (ctxt |> set_mode mode_default |> allow_dummies) s
   845           |> singleton (Variable.polymorphic ctxt);
   845           |> singleton (Variable.polymorphic ctxt);
   846         fun err msg = error (msg ^ Position.str_of pos ^ ":\n" ^ Syntax.string_of_term ctxt prop);
   846         fun err msg = error (msg ^ Position.str_of pos ^ ":\n" ^ Syntax.string_of_term ctxt prop);
   847 
   847