major cleanup of tsig datastructures and extend/merge operations; fixes old bugs in classes/arities code; proper treatment of nonterminals and syntax-only types;
use "../settings.ML";no_document use_thy "While_Combinator";use_thy "simp";use_thy "WFrec";use_thy "Partial";