src/Pure/Proof/proof_rewrite_rules.ML
changeset 70458 9e2173eb23eb
parent 70449 6e34025981be
child 70493 a9053fa30909
equal deleted inserted replaced
70457:a8b5d668bf13 70458:9e2173eb23eb
   357       Proofterm.reconstruct_proof thy prop |>
   357       Proofterm.reconstruct_proof thy prop |>
   358       Proofterm.expand_proof thy [("", NONE)] |>
   358       Proofterm.expand_proof thy [("", NONE)] |>
   359       Same.commit (Proofterm.map_proof_same Same.same Same.same hyp)
   359       Same.commit (Proofterm.map_proof_same Same.same Same.same hyp)
   360   in
   360   in
   361     map2 reconstruct
   361     map2 reconstruct
   362       (Proofterm.of_sort_proof thy (OfClass o apfst Type.strip_sorts) (subst T, S))
   362       (Proofterm.of_sort_proof (Sign.classes_of thy) (Thm.classrel_proof thy) (Thm.arity_proof thy)
       
   363         (OfClass o apfst Type.strip_sorts) (subst T, S))
   363       (Logic.mk_of_sort (T, S))
   364       (Logic.mk_of_sort (T, S))
   364   end;
   365   end;
   365 
   366 
   366 fun expand_of_class thy Ts hs (OfClass (T, c)) =
   367 fun expand_of_class thy Ts hs (OfClass (T, c)) =
   367       mk_of_sort_proof thy hs (T, [c]) |>
   368       mk_of_sort_proof thy hs (T, [c]) |>