src/Pure/ProofGeneral/proof_general_pgip.ML
changeset 26336 a0e2b706ce73
parent 26109 c69c3559355b
child 26343 0dd2eab7b296
equal deleted inserted replaced
26335:961bbcc9d85b 26336:a0e2b706ce73
   710             let
   710             let
   711                 (* TODO: interim: this is probably not right.
   711                 (* TODO: interim: this is probably not right.
   712                    What we want is mapping onto simple PGIP name/context model. *)
   712                    What we want is mapping onto simple PGIP name/context model. *)
   713                 val ctx = Toplevel.context_of (Toplevel.get_state()) (* NB: raises UNDEF *)
   713                 val ctx = Toplevel.context_of (Toplevel.get_state()) (* NB: raises UNDEF *)
   714                 val thy = Context.theory_of_proof ctx
   714                 val thy = Context.theory_of_proof ctx
   715                 val ths = [PureThy.get_thm thy (PureThy.Name thmname)]
   715                 val ths = [PureThy.get_thm thy (Facts.Named (thmname, NONE))]
   716                 val deps = filter_out (equal "")
   716                 val deps = filter_out (equal "")
   717                                       (Symtab.keys (fold Proofterm.thms_of_proof
   717                                       (Symtab.keys (fold Proofterm.thms_of_proof
   718                                                          (map Thm.proof_of ths) Symtab.empty))
   718                                                          (map Thm.proof_of ths) Symtab.empty))
   719             in
   719             in
   720                 if null deps then ()
   720                 if null deps then ()
   762                                         false (* quote *)
   762                                         false (* quote *)
   763                                         false (* show hyps *)
   763                                         false (* show hyps *)
   764                                         [] (* asms *)
   764                                         [] (* asms *)
   765                                         th))
   765                                         th))
   766 
   766 
   767         fun strings_of_thm (thy, name) = map string_of_thm (get_thms thy (Name name))
   767         fun strings_of_thm (thy, name) = map string_of_thm (get_thms thy (Facts.Named (name, NONE)))
   768 
   768 
   769         val string_of_thy = Output.output o
   769         val string_of_thy = Output.output o
   770                                 Pretty.string_of o (ProofDisplay.pretty_full_theory false)
   770                                 Pretty.string_of o (ProofDisplay.pretty_full_theory false)
   771     in
   771     in
   772         case (thyname, objtype) of
   772         case (thyname, objtype) of