src/Pure/axclass.ML
changeset 11101 014e7b5c77ba
parent 10507 ea5de7c64c23
child 11353 7f6eff7bc97a
--- a/src/Pure/axclass.ML	Mon Feb 12 20:44:02 2001 +0100
+++ b/src/Pure/axclass.ML	Mon Feb 12 20:45:12 2001 +0100
@@ -465,13 +465,15 @@
 
 val axclassP =
   OuterSyntax.command "axclass" "define axiomatic type class" K.thy_decl
-    (((P.name -- Scan.optional (P.$$$ "<" |-- P.!!! (P.list1 P.xname)) []) --| P.marg_comment)
+    (((P.name -- Scan.optional ((P.$$$ "\\<subseteq>" || P.$$$ "<") |--
+        P.!!! (P.list1 P.xname)) []) --| P.marg_comment)
       -- Scan.repeat (P.spec_name --| P.marg_comment)
       >> (fn (cls, axs) => Toplevel.theory (#1 o add_axclass cls axs)));
 
 val instanceP =
   OuterSyntax.command "instance" "prove type arity or subclass relation" K.thy_goal
-    ((P.xname -- (P.$$$ "<" |-- P.xname) -- P.marg_comment >> instance_subclass_proof ||
+    ((P.xname -- ((P.$$$ "\\<subseteq>" || P.$$$ "<") |-- P.xname)
+        -- P.marg_comment >> instance_subclass_proof ||
       (P.xname -- (P.$$$ "::" |-- P.simple_arity) >> P.triple2) -- P.marg_comment
         >> instance_arity_proof)
       >> (Toplevel.print oo Toplevel.theory_to_proof));