equal
deleted
inserted
replaced
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 |