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