src/Pure/Proof/proof_checker.ML
changeset 71777 3875815f5967
parent 70843 cc987440d776
child 74228 c22e5bdb207d
equal deleted inserted replaced
71776:5ef7f374e0f8 71777:3875815f5967
   135                 handle THM (s, _, _) => appl_error thy pretty_prf (fst vars) Hs s prf prf'
   135                 handle THM (s, _, _) => appl_error thy pretty_prf (fst vars) Hs s prf prf'
   136               end
   136               end
   137 
   137 
   138           | thm_of _ _ (Hyp t) = Thm.assume (Thm.global_cterm_of thy t)
   138           | thm_of _ _ (Hyp t) = Thm.assume (Thm.global_cterm_of thy t)
   139 
   139 
   140           | thm_of _ _ (OfClass (T, c)) =
   140           | thm_of _ _ (PClass (T, c)) =
   141               if Sign.of_sort thy (T, [c])
   141               if Sign.of_sort thy (T, [c])
   142               then Thm.of_class (Thm.global_ctyp_of thy T, c)
   142               then Thm.of_class (Thm.global_ctyp_of thy T, c)
   143               else
   143               else
   144                 error ("thm_of_proof: bad OfClass proof " ^
   144                 error ("thm_of_proof: bad PClass proof " ^
   145                   Syntax.string_of_term_global thy (Logic.mk_of_class (T, c)))
   145                   Syntax.string_of_term_global thy (Logic.mk_of_class (T, c)))
   146 
   146 
   147           | thm_of _ _ _ = error "thm_of_proof: partial proof term";
   147           | thm_of _ _ _ = error "thm_of_proof: partial proof term";
   148 
   148 
   149       in beta_eta_convert (thm_of ([], prf_names) [] prf) end
   149       in beta_eta_convert (thm_of ([], prf_names) [] prf) end