src/Pure/Thy/export_theory.ML
changeset 70984 5e98925f86ed
parent 70983 52a62342c9ce
child 70990 e5e34bd28257
equal deleted inserted replaced
70983:52a62342c9ce 70984:5e98925f86ed
   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);