added store_thms etc. (formerly in Thy/thm_database.ML);
added bind_thm(s) (formerly in old_goals.ML);
adapted to Context.thread_data interface;
removed obsolete get/set_context;
renamed ML_Context.>> to Context.>> (again);
theory ToyList
imports PreList
begin
datatype 'a list = Nil ("[]")
| Cons 'a "'a list" (infixr "#" 65)
consts app :: "'a list => 'a list => 'a list" (infixr "@" 65)
rev :: "'a list => 'a list"
primrec
"[] @ ys = ys"
"(x # xs) @ ys = x # (xs @ ys)"
primrec
"rev [] = []"
"rev (x # xs) = (rev xs) @ (x # [])"