src/Pure/Isar/proof_display.ML
changeset 24920 2a45e400fdad
parent 22872 d7189dc8939c
child 26336 a0e2b706ce73
equal deleted inserted replaced
24919:ad3a8569759c 24920:2a45e400fdad
    41     Pretty.quote (Pretty.big_list "proof context:" (ProofContext.pretty_context ctxt))
    41     Pretty.quote (Pretty.big_list "proof context:" (ProofContext.pretty_context ctxt))
    42   else Pretty.str "<context>");
    42   else Pretty.str "<context>");
    43 
    43 
    44 fun pprint pretty thy = Pretty.pprint o Pretty.quote o pretty (ProofContext.init thy);
    44 fun pprint pretty thy = Pretty.pprint o Pretty.quote o pretty (ProofContext.init thy);
    45 
    45 
    46 val pprint_typ = pprint ProofContext.pretty_typ;
    46 val pprint_typ = pprint Syntax.pretty_typ;
    47 val pprint_term = pprint ProofContext.pretty_term;
    47 val pprint_term = pprint Syntax.pretty_term;
    48 fun pprint_ctyp cT = pprint_typ (Thm.theory_of_ctyp cT) (Thm.typ_of cT);
    48 fun pprint_ctyp cT = pprint_typ (Thm.theory_of_ctyp cT) (Thm.typ_of cT);
    49 fun pprint_cterm ct = pprint_term (Thm.theory_of_cterm ct) (Thm.term_of ct);
    49 fun pprint_cterm ct = pprint_term (Thm.theory_of_cterm ct) (Thm.term_of ct);
    50 val pprint_thm = Pretty.pprint o ProofContext.pretty_thm_legacy;
    50 val pprint_thm = Pretty.pprint o ProofContext.pretty_thm_legacy;
    51 
    51 
    52 
    52 
   134 
   134 
   135 local
   135 local
   136 
   136 
   137 fun pretty_var ctxt (x, T) =
   137 fun pretty_var ctxt (x, T) =
   138   Pretty.block [Pretty.str x, Pretty.str " ::", Pretty.brk 1,
   138   Pretty.block [Pretty.str x, Pretty.str " ::", Pretty.brk 1,
   139     Pretty.quote (ProofContext.pretty_typ ctxt T)];
   139     Pretty.quote (Syntax.pretty_typ ctxt T)];
   140 
   140 
   141 fun pretty_vars ctxt kind vs = Pretty.big_list kind (map (pretty_var ctxt) vs);
   141 fun pretty_vars ctxt kind vs = Pretty.big_list kind (map (pretty_var ctxt) vs);
   142 
   142 
   143 in
   143 in
   144 
   144