compile -- fix typo introduced in 07a8145aaeba
authorpanny
Fri, 11 Oct 2013 23:15:30 +0200
changeset 54099 0b58c15ad284
parent 54098 07a8145aaeba
child 54100 6fefbaeccb63
compile -- fix typo introduced in 07a8145aaeba
src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML
--- a/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Fri Oct 11 20:47:37 2013 +0200
+++ b/src/HOL/BNF/Tools/bnf_fp_rec_sugar.ML	Fri Oct 11 23:15:30 2013 +0200
@@ -976,11 +976,8 @@
                 fun prove_code_ctr {ctr, sels, ...} =
                   if not (exists (equal ctr o fst) ctr_alist) then NONE else
                     let
-                      val prems =
-                        (find_first (equal ctr o #ctr) disc_eqns,
-                         find_first (equal ctr o #ctr) sel_eqns)
-                        |>> Option.map #prems ||> Option.map #prems
-                        |> the o merge_options;
+                      val prems = find_first (equal ctr o #ctr) disc_eqns
+                        |> Option.map #prems |> the_default [];
                       val t =
                         filter (equal ctr o #ctr) sel_eqns
                         |> fst o finds ((op =) o apsnd #sel) sels