renamed kill_all to kill, in conformance with atp_kill command;
simplified/unified treatment of preferences;
check_thread_manager: CRITICAL due to global ref;
goal addressing via Thm.cprem_of;
reduced NJ basis library stuff to bare minimum;
structure HOL =
struct
type 'a eq = {eq : 'a -> 'a -> bool};
fun eq (A_:'a eq) = #eq A_;
fun eqop A_ a = eq A_ a;
end; (*struct HOL*)
structure List =
struct
fun member A_ x (y :: ys) =
(if HOL.eqop A_ y x then true else member A_ x ys)
| member A_ x [] = false;
end; (*struct List*)
structure Codegen =
struct
fun collect_duplicates A_ xs ys (z :: zs) =
(if List.member A_ z xs
then (if List.member A_ z ys then collect_duplicates A_ xs ys zs
else collect_duplicates A_ xs (z :: ys) zs)
else collect_duplicates A_ (z :: xs) (z :: ys) zs)
| collect_duplicates A_ xs ys [] = xs;
end; (*struct Codegen*)