src/HOL/Tools/TFL/thry.ML
changeset 59640 a6d29266f01c
parent 59621 291934bac95e
equal deleted inserted replaced
59639:f596ed647018 59640:a6d29266f01c
    45 
    45 
    46 (*---------------------------------------------------------------------------
    46 (*---------------------------------------------------------------------------
    47  * Typing
    47  * Typing
    48  *---------------------------------------------------------------------------*)
    48  *---------------------------------------------------------------------------*)
    49 
    49 
    50 fun typecheck thry t =
    50 fun typecheck thy t =
    51   Thm.global_cterm_of thry t
    51   Thm.global_cterm_of thy t
    52     handle TYPE (msg, _, _) => raise THRY_ERR "typecheck" msg
    52     handle TYPE (msg, _, _) => raise THRY_ERR "typecheck" msg
    53       | TERM (msg, _) => raise THRY_ERR "typecheck" msg;
    53       | TERM (msg, _) => raise THRY_ERR "typecheck" msg;
    54 
    54 
    55 
    55 
    56 (*---------------------------------------------------------------------------
    56 (*---------------------------------------------------------------------------