src/HOL/Tools/BNF/bnf_fp_def_sugar.ML
changeset 56765 644f0d4820a1
parent 56657 558afd429255
child 56767 9b311dbd0f55
--- a/src/HOL/Tools/BNF/bnf_fp_def_sugar.ML	Sun Apr 27 19:32:55 2014 +0200
+++ b/src/HOL/Tools/BNF/bnf_fp_def_sugar.ML	Mon Apr 28 00:54:30 2014 +0200
@@ -1179,8 +1179,6 @@
               fun mk_rel_inject_thm ((ctr_def', cxIn), (_, cyIn)) =
                 mk_rel_thm (unfold_thms lthy @{thms eq_sym_Unity_conv}) [ctr_def'] cxIn cyIn;
 
-              val rel_inject_thms = map mk_rel_inject_thm (op ~~ rel_infos);
-
               fun mk_half_rel_distinct_thm ((xctr_def', cxIn), (yctr_def', cyIn)) =
                 mk_rel_thm (fn thm => thm RS @{thm eq_False[THEN iffD1]}) [xctr_def', yctr_def']
                   cxIn cyIn;
@@ -1189,6 +1187,7 @@
                 flip_rels lthy live thm
                 RS (rel_flip RS sym RS @{thm arg_cong[of _ _ Not]} RS iffD2);
 
+              val rel_inject_thms = map mk_rel_inject_thm (op ~~ rel_infos);
               val half_rel_distinct_thmss =
                 map (map mk_half_rel_distinct_thm) (mk_half_pairss rel_infos);
               val other_half_rel_distinct_thmss =