src/HOL/Tools/Quickcheck/narrowing_generators.ML
changeset 43329 84472e198515
parent 43317 f9283eb3a4bf
child 43379 8c4b383e5143
--- a/src/HOL/Tools/Quickcheck/narrowing_generators.ML	Wed Jun 08 22:16:21 2011 +0200
+++ b/src/HOL/Tools/Quickcheck/narrowing_generators.ML	Thu Jun 09 20:22:22 2011 +0200
@@ -67,7 +67,7 @@
 
 fun mk_partial_term_of_eq thy ty (i, (c, (_, tys))) =
   let
-    val frees = map Free (Name.names Name.context "a" (map (K @{typ narrowing_term}) tys))
+    val frees = map Free (Name.invent_names Name.context "a" (map (K @{typ narrowing_term}) tys))
     val narrowing_term = @{term "Quickcheck_Narrowing.Ctr"} $ HOLogic.mk_number @{typ code_int} i
       $ (HOLogic.mk_list @{typ narrowing_term} (rev frees))
     val rhs = fold (fn u => fn t => @{term "Code_Evaluation.App"} $ t $ u)