src/Pure/more_thm.ML
changeset 71011 2c96e48027eb
parent 71006 41685289b8eb
child 71018 d32ed8927a42
equal deleted inserted replaced
71010:be689b7d81fd 71011:2c96e48027eb
   111   val no_attributes: 'a -> 'a * 'b list
   111   val no_attributes: 'a -> 'a * 'b list
   112   val simple_fact: 'a -> ('a * 'b list) list
   112   val simple_fact: 'a -> ('a * 'b list) list
   113   val tag: string * string -> attribute
   113   val tag: string * string -> attribute
   114   val untag: string -> attribute
   114   val untag: string -> attribute
   115   val kind: string -> attribute
   115   val kind: string -> attribute
   116   val expose_proofs: theory -> thm list -> unit
       
   117   val reconstruct_proof_of: thm -> Proofterm.proof
   116   val reconstruct_proof_of: thm -> Proofterm.proof
   118   val standard_proof_of: {full: bool, expand_name: Proofterm.thm_header -> string option} ->
   117   val standard_proof_of: {full: bool, expand_name: Proofterm.thm_header -> string option} ->
   119     thm -> Proofterm.proof
   118     thm -> Proofterm.proof
   120   val register_proofs: thm list lazy -> theory -> theory
   119   val register_proofs: thm list lazy -> theory -> theory
   121   val consolidate_theory: theory -> unit
   120   val consolidate_theory: theory -> unit
   653 
   652 
   654 
   653 
   655 
   654 
   656 (** proof terms **)
   655 (** proof terms **)
   657 
   656 
   658 fun expose_proofs thy thms =
       
   659   if Proofterm.export_proof_boxes_required thy then
       
   660     Proofterm.export_proof_boxes (map Thm.proof_of thms)
       
   661   else ();
       
   662 
       
   663 fun reconstruct_proof_of thm =
   657 fun reconstruct_proof_of thm =
   664   Proofterm.reconstruct_proof (Thm.theory_of_thm thm) (Thm.prop_of thm) (Thm.proof_of thm);
   658   Proofterm.reconstruct_proof (Thm.theory_of_thm thm) (Thm.prop_of thm) (Thm.proof_of thm);
   665 
   659 
   666 fun standard_proof_of {full, expand_name} thm =
   660 fun standard_proof_of {full, expand_name} thm =
   667   let val thy = Thm.theory_of_thm thm in
   661   let val thy = Thm.theory_of_thm thm in