equal
deleted
inserted
replaced
242 let |
242 let |
243 val thy = ProofContext.theory_of ctxt; |
243 val thy = ProofContext.theory_of ctxt; |
244 val (vs, cos) = the_spec thy dtco; |
244 val (vs, cos) = the_spec thy dtco; |
245 val ty = Type (dtco, map TFree vs); |
245 val ty = Type (dtco, map TFree vs); |
246 val pretty_typ_bracket = |
246 val pretty_typ_bracket = |
247 Syntax.pretty_typ (Config.put Syntax.pretty_priority (Syntax.max_pri + 1) ctxt); |
247 Syntax.pretty_typ (Config.put pretty_priority (Syntax.max_pri + 1) ctxt); |
248 fun pretty_constr (co, tys) = |
248 fun pretty_constr (co, tys) = |
249 Pretty.block (Pretty.breaks |
249 Pretty.block (Pretty.breaks |
250 (Syntax.pretty_term ctxt (Const (co, tys ---> ty)) :: |
250 (Syntax.pretty_term ctxt (Const (co, tys ---> ty)) :: |
251 map pretty_typ_bracket tys)); |
251 map pretty_typ_bracket tys)); |
252 val pretty_datatype = |
252 val pretty_datatype = |