src/HOL/Tools/Quotient/quotient_typ.ML
changeset 45278 7c6c8e950636
parent 44204 3cdc4176638c
child 45279 89a17197cb98
equal deleted inserted replaced
45277:85b0ca9dd82f 45278:7c6c8e950636
   223     val thy = Proof_Context.theory_of ctxt
   223     val thy = Proof_Context.theory_of ctxt
   224 
   224 
   225     fun map_check_aux rty warns =
   225     fun map_check_aux rty warns =
   226       case rty of
   226       case rty of
   227         Type (_, []) => warns
   227         Type (_, []) => warns
   228       | Type (s, _) => if Quotient_Info.maps_defined thy s then warns else s::warns
   228       | Type (s, _) => if is_some (Quotient_Info.maps_lookup thy s) then warns else s :: warns
   229       | _ => warns
   229       | _ => warns
   230 
   230 
   231     val warns = map_check_aux rty []
   231     val warns = map_check_aux rty []
   232   in
   232   in
   233     if null warns then ()
   233     if null warns then ()