use Toplevel.print_state_hook instead of adhoc Proof.atp_hook;
added call_atp: bool ref;
do 'setmp print_mode []', which is more robust than manual ref manipulation;
added subtract_simpset, subtract_claset (supercede delta approximation);
use "../settings.ML";
use_thy "Trie";