src/Pure/Proof/proof_checker.ML
changeset 70843 cc987440d776
parent 70838 e381e2624077
child 71777 3875815f5967
equal deleted inserted replaced
70842:c5caf81aa523 70843:cc987440d776
    70 
    70 
    71 fun thm_of_proof thy =
    71 fun thm_of_proof thy =
    72   let val lookup = lookup_thm thy in
    72   let val lookup = lookup_thm thy in
    73     fn prf =>
    73     fn prf =>
    74       let
    74       let
    75         val prf_names = Proofterm.fold_proof_terms Term.declare_term_frees (K I) prf Name.context;
    75         val prf_names = Proofterm.fold_proof_terms Term.declare_term_frees prf Name.context;
    76 
    76 
    77         fun thm_of_atom thm Ts =
    77         fun thm_of_atom thm Ts =
    78           let
    78           let
    79             val tvars = Term.add_tvars (Thm.full_prop_of thm) [] |> rev;
    79             val tvars = Term.add_tvars (Thm.full_prop_of thm) [] |> rev;
    80             val (fmap, thm') = Thm.varifyT_global' [] thm;
    80             val (fmap, thm') = Thm.varifyT_global' [] thm;