Codegen.is_instance: raw match, ignore sort constraints;
authorwenzelm
Mon, 08 Oct 2007 18:13:06 +0200
changeset 24907 bfb2e82b61fe
parent 24906 557a9cd9370c
child 24908 c74ad8782eeb
Codegen.is_instance: raw match, ignore sort constraints;
src/HOL/Tools/recfun_codegen.ML
--- a/src/HOL/Tools/recfun_codegen.ML	Mon Oct 08 18:13:05 2007 +0200
+++ b/src/HOL/Tools/recfun_codegen.ML	Mon Oct 08 18:13:06 2007 +0200
@@ -67,7 +67,7 @@
      NONE => ([], "")
    | SOME thms => 
        let val thms' = del_redundant thy []
-         (filter (fn (thm, _) => is_instance thy T
+         (filter (fn (thm, _) => is_instance T
            (snd (const_of (prop_of thm)))) thms)
        in if null thms' then ([], "")
          else (preprocess thy (map fst thms'),