src/HOL/Tools/refute.ML
changeset 26423 8408edac8f6b
parent 26328 b2d6f520172c
child 26931 aa226d8405a8
equal deleted inserted replaced
26422:d5883907c514 26423:8408edac8f6b
   454         case Type.lookup typeSubs v of
   454         case Type.lookup typeSubs v of
   455           NONE =>
   455           NONE =>
   456           (* schematic type variable not instantiated *)
   456           (* schematic type variable not instantiated *)
   457           raise REFUTE ("monomorphic_term",
   457           raise REFUTE ("monomorphic_term",
   458             "no substitution for type variable " ^ fst (fst v) ^
   458             "no substitution for type variable " ^ fst (fst v) ^
   459             " in term " ^ Display.raw_string_of_term t)
   459             " in term " ^ Sign.string_of_term CPure.thy t)
   460         | SOME typ =>
   460         | SOME typ =>
   461           typ)) t;
   461           typ)) t;
   462 
   462 
   463 (* ------------------------------------------------------------------------- *)
   463 (* ------------------------------------------------------------------------- *)
   464 (* specialize_type: given a constant 's' of type 'T', which is a subterm of  *)
   464 (* specialize_type: given a constant 's' of type 'T', which is a subterm of  *)