src/Pure/Proof/proof_checker.ML
changeset 56161 300f613060b0
parent 45007 cc86edb97c2c
child 59058 a78612c67ec0
equal deleted inserted replaced
56160:d348378ddf47 56161:300f613060b0
    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;