equal
deleted
inserted
replaced
14 struct |
14 struct |
15 |
15 |
16 (***** construct a theorem out of a proof term *****) |
16 (***** construct a theorem out of a proof term *****) |
17 |
17 |
18 fun lookup_thm thy = |
18 fun lookup_thm thy = |
19 let val tab = fold_rev Symtab.update (Global_Theory.all_thms_of thy) Symtab.empty in |
19 let val tab = fold_rev Symtab.update (Global_Theory.all_thms_of thy true) Symtab.empty in |
20 fn s => |
20 fn s => |
21 (case Symtab.lookup tab s of |
21 (case Symtab.lookup tab s of |
22 NONE => error ("Unknown theorem " ^ quote s) |
22 NONE => error ("Unknown theorem " ^ quote s) |
23 | SOME thm => thm) |
23 | SOME thm => thm) |
24 end; |
24 end; |