renamed internal function
authorblanchet
Thu, 05 Aug 2010 00:21:11 +0200
changeset 38196 51a1bfef9de2
parent 38195 a8cef06e0480
child 38197 4374005e02f9
renamed internal function
src/HOL/Tools/Nitpick/nitpick_kodkod.ML
--- a/src/HOL/Tools/Nitpick/nitpick_kodkod.ML	Wed Aug 04 23:27:27 2010 +0200
+++ b/src/HOL/Tools/Nitpick/nitpick_kodkod.ML	Thu Aug 05 00:21:11 2010 +0200
@@ -53,9 +53,9 @@
 
 fun pull x xs = x :: filter_out (curry (op =) x) xs
 
-fun is_datatype_good_and_old ({co = false, standard = true, deep = true, ...}
-                              : datatype_spec) = true
-  | is_datatype_good_and_old _ = false
+fun is_datatype_acyclic ({co = false, standard = true, deep = true, ...}
+                         : datatype_spec) = true
+  | is_datatype_acyclic _ = false
 
 fun flip_nums n = index_seq 1 n @ [0] |> map KK.Num
 
@@ -315,7 +315,7 @@
            else
              [KK.TupleSet [],
               if T1 = T2 andalso epsilon > delta andalso
-                 is_datatype_good_and_old (the (datatype_spec dtypes T1)) then
+                 is_datatype_acyclic (the (datatype_spec dtypes T1)) then
                 index_seq delta (epsilon - delta)
                 |> map (fn j =>
                            KK.TupleProduct (KK.TupleSet [KK.Tuple [j + j0]],
@@ -897,7 +897,7 @@
   else
     maps (sym_break_axioms_for_datatype hol_ctxt binarize kk rel_table nfas
                                         dtypes)
-         (dtypes |> filter is_datatype_good_and_old
+         (dtypes |> filter is_datatype_acyclic
                  |> filter (fn {constrs = [_], ...} => false
                              | {card, constrs, ...} =>
                                card >= min_sym_break_card andalso