equal
deleted
inserted
replaced
188 let |
188 let |
189 val thy = ProofContext.theory_of ctxt; |
189 val thy = ProofContext.theory_of ctxt; |
190 val ct = Thm.cterm_of thy t; |
190 val ct = Thm.cterm_of thy t; |
191 val (_, t') = (Logic.dest_equals o Thm.prop_of o normalization_conv) ct; |
191 val (_, t') = (Logic.dest_equals o Thm.prop_of o normalization_conv) ct; |
192 val ty = Term.type_of t'; |
192 val ty = Term.type_of t'; |
193 val p = Library.setmp print_mode (modes @ ! print_mode) (fn () => |
193 val p = PrintMode.with_modes modes (fn () => |
194 Pretty.block [Pretty.quote (ProofContext.pretty_term ctxt t'), Pretty.fbrk, |
194 Pretty.block [Pretty.quote (ProofContext.pretty_term ctxt t'), Pretty.fbrk, |
195 Pretty.str "::", Pretty.brk 1, Pretty.quote (ProofContext.pretty_typ ctxt ty)]) (); |
195 Pretty.str "::", Pretty.brk 1, Pretty.quote (ProofContext.pretty_typ ctxt ty)]) (); |
196 in Pretty.writeln p end; |
196 in Pretty.writeln p end; |
197 |
197 |
198 fun norm_print_term_e (modes, raw_t) state = |
198 fun norm_print_term_e (modes, raw_t) state = |