src/HOL/Tools/old_primrec.ML
changeset 33037 b22e44496dc2
parent 32863 5e8cef567042
child 33038 8f9594c31de4
     1.1 --- a/src/HOL/Tools/old_primrec.ML	Tue Oct 20 13:37:56 2009 +0200
     1.2 +++ b/src/HOL/Tools/old_primrec.ML	Tue Oct 20 16:13:01 2009 +0200
     1.3 @@ -226,7 +226,7 @@
     1.4        (case Symtab.lookup dt_info tname of
     1.5            NONE => primrec_err (quote tname ^ " is not a datatype")
     1.6          | SOME dt =>
     1.7 -            if tnames' subset (map (#1 o snd) (#descr dt)) then
     1.8 +            if gen_subset (op =) (tnames', map (#1 o snd) (#descr dt)) then
     1.9                (tname, dt)::(find_dts dt_info tnames' tnames)
    1.10              else find_dts dt_info tnames' tnames);
    1.11