src/Pure/ProofGeneral/proof_general_pgip.ML
changeset 32144 183c1010ac14
parent 32091 30e2ffbba718
child 32738 15bb09ca0378
equal deleted inserted replaced
32143:6e4eb80e4a8c 32144:183c1010ac14
   653         fun idvalue strings =
   653         fun idvalue strings =
   654             issue_pgip (Idvalue { thyname=thyname, objtype=objtype, name=name,
   654             issue_pgip (Idvalue { thyname=thyname, objtype=objtype, name=name,
   655                                   text=[XML.Elem("pgml",[],
   655                                   text=[XML.Elem("pgml",[],
   656                                                  maps YXML.parse_body strings)] })
   656                                                  maps YXML.parse_body strings)] })
   657 
   657 
   658         fun string_of_thm th = Pretty.string_of (Display.pretty_thm_raw
   658         fun strings_of_thm (thy, name) =
   659             (Syntax.pp_global (Thm.theory_of_thm th))
   659           map (Display.string_of_thm_global thy) (PureThy.get_thms thy name)
   660             {quote = false, show_hyps = false, show_status = true} [] th)
       
   661 
       
   662         fun strings_of_thm (thy, name) = map string_of_thm (PureThy.get_thms thy name)
       
   663 
   660 
   664         val string_of_thy = Pretty.string_of o ProofDisplay.pretty_full_theory false
   661         val string_of_thy = Pretty.string_of o ProofDisplay.pretty_full_theory false
   665     in
   662     in
   666         case (thyname, objtype) of
   663         case (thyname, objtype) of
   667             (_, ObjTheory) => idvalue [string_of_thy (ThyInfo.get_theory name)]
   664             (_, ObjTheory) => idvalue [string_of_thy (ThyInfo.get_theory name)]