equal
deleted
inserted
replaced
592 val immed_thms_of_thy = filter_out NameSpace.is_qualified o thms_of_thy |
592 val immed_thms_of_thy = filter_out NameSpace.is_qualified o thms_of_thy |
593 fun thy_prefix s = case space_explode NameSpace.separator s of |
593 fun thy_prefix s = case space_explode NameSpace.separator s of |
594 x::_::_ => SOME x (* String.find? *) |
594 x::_::_ => SOME x (* String.find? *) |
595 | _ => NONE |
595 | _ => NONE |
596 fun subthys_of_thy s = |
596 fun subthys_of_thy s = |
597 foldl (fn (NONE,xs) => xs | (SOME x,xs) => insert op= x xs) [] |
597 List.foldl (fn (NONE,xs) => xs | (SOME x,xs) => insert op= x xs) [] |
598 (map thy_prefix (thms_of_thy s)) |
598 (map thy_prefix (thms_of_thy s)) |
599 fun subthms_of_thy thy = |
599 fun subthms_of_thy thy = |
600 (case thy_prefix thy of |
600 (case thy_prefix thy of |
601 NONE => immed_thms_of_thy thy |
601 NONE => immed_thms_of_thy thy |
602 | SOME prf => filter (String.isPrefix (unprefix (prf ^ NameSpace.separator) thy)) |
602 | SOME prf => filter (String.isPrefix (unprefix (prf ^ NameSpace.separator) thy)) |