fixed bug in type instantiation of case theorem
authorblanchet
Wed, 05 Sep 2012 09:54:20 +0200
changeset 49140 cb80b6404f8e
parent 49139 e36ce78add78
child 49141 aca966dc18f6
fixed bug in type instantiation of case theorem
src/HOL/Codatatype/Tools/bnf_wrap.ML
--- a/src/HOL/Codatatype/Tools/bnf_wrap.ML	Wed Sep 05 09:31:31 2012 +0200
+++ b/src/HOL/Codatatype/Tools/bnf_wrap.ML	Wed Sep 05 09:54:20 2012 +0200
@@ -293,7 +293,7 @@
                   (Drule.instantiate' (map SOME cTs) (map SOME cxs) case_thm)
               end;
             fun mk_thms k xs goal_case case_thm sel_defs =
-              map2 (mk_thm k xs goal_case case_thm) xs sel_defs;
+              map2 (mk_thm k xs (strip_all_body goal_case) case_thm) xs sel_defs;
           in
             map5 mk_thms ks xss goal_cases case_thms sel_defss
           end;