src/Pure/context.ML
changeset 27341 97e2ccba3b64
parent 26957 e3f04fdd994d
child 28122 3d099ce624e7
equal deleted inserted replaced
27340:3de9f20f4e28 27341:97e2ccba3b64
    27   val exists_name: string -> theory -> bool
    27   val exists_name: string -> theory -> bool
    28   val names_of: theory -> string list
    28   val names_of: theory -> string list
    29   val pretty_thy: theory -> Pretty.T
    29   val pretty_thy: theory -> Pretty.T
    30   val string_of_thy: theory -> string
    30   val string_of_thy: theory -> string
    31   val pprint_thy: theory -> pprint_args -> unit
    31   val pprint_thy: theory -> pprint_args -> unit
       
    32   val pprint_thy_ref: theory_ref -> pprint_args -> unit
    32   val pretty_abbrev_thy: theory -> Pretty.T
    33   val pretty_abbrev_thy: theory -> Pretty.T
    33   val str_of_thy: theory -> string
    34   val str_of_thy: theory -> string
    34   val deref: theory_ref -> theory
    35   val deref: theory_ref -> theory
    35   val check_thy: theory -> theory_ref
    36   val check_thy: theory -> theory_ref
    36   val eq_thy: theory * theory -> bool
    37   val eq_thy: theory * theory -> bool
   240   let val thy_ref = TheoryRef (the_self thy) in
   241   let val thy_ref = TheoryRef (the_self thy) in
   241     if is_stale thy then error ("Stale theory encountered:\n" ^ string_of_thy thy)
   242     if is_stale thy then error ("Stale theory encountered:\n" ^ string_of_thy thy)
   242     else thy_ref
   243     else thy_ref
   243   end;
   244   end;
   244 
   245 
       
   246 val pprint_thy_ref = Pretty.pprint o pretty_thy o deref;
       
   247 
   245 
   248 
   246 (* consistency *)
   249 (* consistency *)
   247 
   250 
   248 fun check_ins id ids =
   251 fun check_ins id ids =
   249   if draft_id id orelse Inttab.defined ids (#1 id) then ids
   252   if draft_id id orelse Inttab.defined ids (#1 id) then ids