# HG changeset patch # User wenzelm # Date 1191859986 -7200 # Node ID bfb2e82b61fece6e635be49d4822168df5ef1527 # Parent 557a9cd9370cb179a788227b85f9728f341fd68a Codegen.is_instance: raw match, ignore sort constraints; diff -r 557a9cd9370c -r bfb2e82b61fe 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'),