src/Pure/Proof/proofchecker.ML
changeset 30146 a77fc0209723
parent 29277 29dd1c516337
child 35845 e5980f0ad025
equal deleted inserted replaced
30145:09817540ccae 30146:a77fc0209723
    54           in thm_of_atom thm Ts end
    54           in thm_of_atom thm Ts end
    55 
    55 
    56       | thm_of _ _ (PAxm (name, _, SOME Ts)) =
    56       | thm_of _ _ (PAxm (name, _, SOME Ts)) =
    57           thm_of_atom (Thm.axiom thy name) Ts
    57           thm_of_atom (Thm.axiom thy name) Ts
    58 
    58 
    59       | thm_of _ Hs (PBound i) = List.nth (Hs, i)
    59       | thm_of _ Hs (PBound i) = nth Hs i
    60 
    60 
    61       | thm_of (vs, names) Hs (Abst (s, SOME T, prf)) =
    61       | thm_of (vs, names) Hs (Abst (s, SOME T, prf)) =
    62           let
    62           let
    63             val ([x], names') = Name.variants [s] names;
    63             val ([x], names') = Name.variants [s] names;
    64             val thm = thm_of ((x, T) :: vs, names') Hs prf
    64             val thm = thm_of ((x, T) :: vs, names') Hs prf