sort cases on the proper key
authorblanchet
Mon, 21 Jun 2010 14:07:00 +0200
changeset 37482 6849464ab10e
parent 37481 bd80d84b904d
child 37483 4de0b0c38bdf
child 37489 44e42d392c6e
sort cases on the proper key
src/HOL/Tools/Nitpick/nitpick_hol.ML
--- a/src/HOL/Tools/Nitpick/nitpick_hol.ML	Mon Jun 21 13:35:10 2010 +0200
+++ b/src/HOL/Tools/Nitpick/nitpick_hol.ML	Mon Jun 21 14:07:00 2010 +0200
@@ -1523,7 +1523,7 @@
                   discriminate_value hol_ctxt x (Bound 0)))
       |> AList.group (op aconv)
       |> map (apsnd (List.foldl s_disj @{const False}))
-      |> sort (int_ord o pairself (size_of_term o fst))
+      |> sort (int_ord o pairself (size_of_term o snd))
       |> rev
   in
     if res_T = bool_T then