equal
deleted
inserted
replaced
287 Thm.standard_proof_of {full = true, expand_name = SOME o expand_name thm_id} thm |
287 Thm.standard_proof_of {full = true, expand_name = SOME o expand_name thm_id} thm |
288 else if Proofterm.export_enabled () then Thm.reconstruct_proof_of thm |
288 else if Proofterm.export_enabled () then Thm.reconstruct_proof_of thm |
289 else MinProof; |
289 else MinProof; |
290 val (prop, SOME proof) = |
290 val (prop, SOME proof) = |
291 standard_prop Name.context (Thm.extra_shyps thm) (Thm.full_prop_of thm) (SOME proof0); |
291 standard_prop Name.context (Thm.extra_shyps thm) (Thm.full_prop_of thm) (SOME proof0); |
292 val _ = Proofterm.commit_proof thy proof; |
292 val _ = |
|
293 if Proofterm.export_proof_boxes_required thy |
|
294 then Proofterm.export_proof_boxes [proof] else (); |
293 in |
295 in |
294 (prop, (deps, (boxes, proof))) |> |
296 (prop, (deps, (boxes, proof))) |> |
295 let |
297 let |
296 open XML.Encode Term_XML.Encode; |
298 open XML.Encode Term_XML.Encode; |
297 fun encode_box {serial, theory_name} = pair int string (serial, theory_name); |
299 fun encode_box {serial, theory_name} = pair int string (serial, theory_name); |