equal
deleted
inserted
replaced
107 val fix_frees: term list -> context -> context |
107 val fix_frees: term list -> context -> context |
108 val bind_skolem: context -> string list -> term -> term |
108 val bind_skolem: context -> string list -> term -> term |
109 val get_case: context -> string -> string option list -> RuleCases.T |
109 val get_case: context -> string -> string option list -> RuleCases.T |
110 val add_cases: (string * RuleCases.T) list -> context -> context |
110 val add_cases: (string * RuleCases.T) list -> context -> context |
111 val apply_case: RuleCases.T -> context -> context * ((indexname * term option) list * term list) |
111 val apply_case: RuleCases.T -> context -> context * ((indexname * term option) list * term list) |
112 val show_hyps: bool ref |
|
113 val pretty_term: context -> term -> Pretty.T |
112 val pretty_term: context -> term -> Pretty.T |
114 val pretty_typ: context -> typ -> Pretty.T |
113 val pretty_typ: context -> typ -> Pretty.T |
115 val pretty_sort: context -> sort -> Pretty.T |
114 val pretty_sort: context -> sort -> Pretty.T |
116 val pretty_thm: context -> thm -> Pretty.T |
115 val pretty_thm: context -> thm -> Pretty.T |
117 val pretty_thms: context -> thm list -> Pretty.T |
116 val pretty_thms: context -> thm list -> Pretty.T |
648 val pretty_typ = Sign.pretty_typ o sign_of; |
647 val pretty_typ = Sign.pretty_typ o sign_of; |
649 val pretty_sort = Sign.pretty_sort o sign_of; |
648 val pretty_sort = Sign.pretty_sort o sign_of; |
650 |
649 |
651 val string_of_term = Pretty.string_of oo pretty_term; |
650 val string_of_term = Pretty.string_of oo pretty_term; |
652 |
651 |
653 val show_hyps = ref false; |
|
654 |
|
655 fun pretty_thm ctxt thm = |
652 fun pretty_thm ctxt thm = |
656 if ! show_hyps then setmp Display.show_hyps true (fn () => |
653 if ! Display.show_hyps then |
657 Display.pretty_thm_aux (pretty_sort ctxt, pretty_term ctxt) false thm) () |
654 Display.pretty_thm_aux (pretty_sort ctxt, pretty_term ctxt) false thm |
658 else pretty_term ctxt (#prop (Thm.rep_thm thm)); |
655 else pretty_term ctxt (#prop (Thm.rep_thm thm)); |
659 |
656 |
660 fun pretty_thms ctxt [th] = pretty_thm ctxt th |
657 fun pretty_thms ctxt [th] = pretty_thm ctxt th |
661 | pretty_thms ctxt ths = Pretty.blk (0, Pretty.fbreaks (map (pretty_thm ctxt) ths)); |
658 | pretty_thms ctxt ths = Pretty.blk (0, Pretty.fbreaks (map (pretty_thm ctxt) ths)); |
662 |
659 |