src/Pure/Proof/reconstruct.ML
changeset 70436 251f1fb44ccd
parent 70435 52fbcf7a61f8
child 70443 a21a96eda033
equal deleted inserted replaced
70435:52fbcf7a61f8 70436:251f1fb44ccd
   377 
   377 
   378 (* cleanup for output etc. *)
   378 (* cleanup for output etc. *)
   379 
   379 
   380 fun clean_proof_of ctxt full thm =
   380 fun clean_proof_of ctxt full thm =
   381   let
   381   let
   382     val {prop, ...} =
   382     val (_, prop) =
   383       Logic.unconstrainT (Thm.shyps_of thm)
   383       Logic.unconstrainT (Thm.shyps_of thm)
   384         (Logic.list_implies (Thm.hyps_of thm, Thm.prop_of thm));
   384         (Logic.list_implies (Thm.hyps_of thm, Thm.prop_of thm));
   385   in
   385   in
   386     Proofterm.proof_of (Proofterm.strip_thm (Thm.proof_body_of thm))
   386     Proofterm.proof_of (Proofterm.strip_thm (Thm.proof_body_of thm))
   387     |> reconstruct_proof ctxt prop
   387     |> reconstruct_proof ctxt prop