src/Pure/context.ML
changeset 24559 dae0972c0066
parent 24369 0cb1f4d76452
child 26413 003dd6155870
equal deleted inserted replaced
24558:419f7cde7f59 24559:dae0972c0066
    34   val pretty_abbrev_thy: theory -> Pretty.T
    34   val pretty_abbrev_thy: theory -> Pretty.T
    35   val str_of_thy: theory -> string
    35   val str_of_thy: theory -> string
    36   val deref: theory_ref -> theory
    36   val deref: theory_ref -> theory
    37   val check_thy: theory -> theory_ref
    37   val check_thy: theory -> theory_ref
    38   val eq_thy: theory * theory -> bool
    38   val eq_thy: theory * theory -> bool
    39   val thy_ord: theory * theory -> order
       
    40   val subthy: theory * theory -> bool
    39   val subthy: theory * theory -> bool
    41   val joinable: theory * theory -> bool
    40   val joinable: theory * theory -> bool
    42   val merge: theory * theory -> theory
    41   val merge: theory * theory -> theory
    43   val merge_refs: theory_ref * theory_ref -> theory_ref
    42   val merge_refs: theory_ref * theory_ref -> theory_ref
    44   val copy_thy: theory -> theory
    43   val copy_thy: theory -> theory
   264 
   263 
   265 
   264 
   266 (* equality and inclusion *)
   265 (* equality and inclusion *)
   267 
   266 
   268 val eq_thy = eq_id o pairself (#id o identity_of);
   267 val eq_thy = eq_id o pairself (#id o identity_of);
   269 val thy_ord = int_ord o pairself (#1 o #id o identity_of);
       
   270 
   268 
   271 fun proper_subthy
   269 fun proper_subthy
   272     (Theory ({id = (i, _), ...}, _, _, _), Theory ({ids, iids, ...}, _, _, _)) =
   270     (Theory ({id = (i, _), ...}, _, _, _), Theory ({ids, iids, ...}, _, _, _)) =
   273   Inttab.defined ids i orelse Inttab.defined iids i;
   271   Inttab.defined ids i orelse Inttab.defined iids i;
   274 
   272