equal
deleted
inserted
replaced
103 "declaration of map information")) |
103 "declaration of map information")) |
104 |
104 |
105 fun print_mapsinfo ctxt = |
105 fun print_mapsinfo ctxt = |
106 let |
106 let |
107 fun prt_map (ty_name, {mapfun, relmap}) = |
107 fun prt_map (ty_name, {mapfun, relmap}) = |
108 Pretty.block (Library.separate (Pretty.brk 2) |
108 Pretty.block (separate (Pretty.brk 2) |
109 (map Pretty.str |
109 (map Pretty.str |
110 ["type:", ty_name, |
110 ["type:", ty_name, |
111 "map:", mapfun, |
111 "map:", mapfun, |
112 "relation map:", relmap])) |
112 "relation map:", relmap])) |
113 in |
113 in |
114 MapsData.get (ProofContext.theory_of ctxt) |
114 MapsData.get (ProofContext.theory_of ctxt) |
115 |> Symtab.dest |
115 |> Symtab.dest |
150 map snd (Symtab.dest (QuotData.get (ProofContext.theory_of lthy))) |
150 map snd (Symtab.dest (QuotData.get (ProofContext.theory_of lthy))) |
151 |
151 |
152 fun print_quotinfo ctxt = |
152 fun print_quotinfo ctxt = |
153 let |
153 let |
154 fun prt_quot {qtyp, rtyp, equiv_rel, equiv_thm} = |
154 fun prt_quot {qtyp, rtyp, equiv_rel, equiv_thm} = |
155 Pretty.block (Library.separate (Pretty.brk 2) |
155 Pretty.block (separate (Pretty.brk 2) |
156 [Pretty.str "quotient type:", |
156 [Pretty.str "quotient type:", |
157 Syntax.pretty_typ ctxt qtyp, |
157 Syntax.pretty_typ ctxt qtyp, |
158 Pretty.str "raw type:", |
158 Pretty.str "raw type:", |
159 Syntax.pretty_typ ctxt rtyp, |
159 Syntax.pretty_typ ctxt rtyp, |
160 Pretty.str "relation:", |
160 Pretty.str "relation:", |