src/Pure/Isar/proof_context.ML
changeset 36542 7cb6b40d19b2
parent 36505 79c1d2bbe5a9
child 36610 bafd82950e24
equal deleted inserted replaced
36541:de1862c4a308 36542:7cb6b40d19b2
   503 
   503 
   504 
   504 
   505 fun read_const_proper ctxt strict = prep_const_proper ctxt strict o token_content;
   505 fun read_const_proper ctxt strict = prep_const_proper ctxt strict o token_content;
   506 
   506 
   507 fun read_const ctxt strict ty text =
   507 fun read_const ctxt strict ty text =
   508   let val (c, pos) = token_content text in
   508   let
       
   509     val (c, pos) = token_content text;
       
   510     val _ = no_skolem false c;
       
   511   in
   509     (case (lookup_skolem ctxt c, Variable.is_const ctxt c) of
   512     (case (lookup_skolem ctxt c, Variable.is_const ctxt c) of
   510       (SOME x, false) =>
   513       (SOME x, false) =>
   511         (Position.report (Markup.name x
   514         (Position.report (Markup.name x
   512             (if can Name.dest_skolem x then Markup.skolem else Markup.free)) pos;
   515             (if can Name.dest_skolem x then Markup.skolem else Markup.free)) pos;
   513           Free (x, infer_type ctxt (x, ty)))
   516           Free (x, infer_type ctxt (x, ty)))