equal
deleted
inserted
replaced
17 open Proofterm; |
17 open Proofterm; |
18 |
18 |
19 (***** construct a theorem out of a proof term *****) |
19 (***** construct a theorem out of a proof term *****) |
20 |
20 |
21 fun lookup_thm thy = |
21 fun lookup_thm thy = |
22 let val tab = fold_rev (curry Symtab.update) (PureThy.all_thms_of thy) Symtab.empty |
22 let val tab = fold_rev Symtab.curried_update (PureThy.all_thms_of thy) Symtab.empty |
23 in |
23 in |
24 (fn s => case Symtab.lookup (tab, s) of |
24 (fn s => case Symtab.curried_lookup tab s of |
25 NONE => error ("Unknown theorem " ^ quote s) |
25 NONE => error ("Unknown theorem " ^ quote s) |
26 | SOME thm => thm) |
26 | SOME thm => thm) |
27 end; |
27 end; |
28 |
28 |
29 val beta_eta_convert = |
29 val beta_eta_convert = |