be liberal about missing types;
authorwenzelm
Tue, 07 May 2002 14:28:34 +0200
changeset 13110 ca8cd110f769
parent 13109 39bcf279f518
child 13111 2d6782e71702
be liberal about missing types;
src/HOL/Tools/numeral_syntax.ML
--- a/src/HOL/Tools/numeral_syntax.ML	Tue May 07 14:28:34 2002 +0200
+++ b/src/HOL/Tools/numeral_syntax.ML	Tue May 07 14:28:34 2002 +0200
@@ -69,6 +69,9 @@
         if not (! show_types) andalso can Term.dest_Type T then t'
         else Syntax.const Syntax.constrainC $ t' $ Syntax.term_of_typ show_sorts T
       end
+  | numeral_tr' _ (*"number_of"*) T (t :: ts) =
+      if T = dummyT then Syntax.const "_Numeral" $ Syntax.free (dest_bin_str t)
+      else raise Match
   | numeral_tr' _ (*"number_of"*) _ _ = raise Match;