src/HOL/Tools/Quickcheck/exhaustive_generators.ML
changeset 56241 029246729dc0
parent 55757 9fc71814b8c1
child 56257 589fafcc7cb6
equal deleted inserted replaced
56240:938c6c7e10eb 56241:029246729dc0
   426 
   426 
   427 
   427 
   428 fun mk_bounded_forall_generator_expr ctxt (t, eval_terms) = 
   428 fun mk_bounded_forall_generator_expr ctxt (t, eval_terms) = 
   429   let
   429   let
   430     val frees = Term.add_free_names t []
   430     val frees = Term.add_free_names t []
   431     val dummy_term = @{term "Code_Evaluation.Const (STR ''dummy_pattern'')
   431     val dummy_term = @{term "Code_Evaluation.Const (STR ''Pure.dummy_pattern'')
   432       (Typerep.Typerep (STR ''dummy'') [])"}
   432       (Typerep.Typerep (STR ''dummy'') [])"}
   433     val return = @{term "Some :: term list => term list option"} $
   433     val return = @{term "Some :: term list => term list option"} $
   434       (HOLogic.mk_list @{typ "term"}
   434       (HOLogic.mk_list @{typ "term"}
   435         (replicate (length frees + length eval_terms) dummy_term))
   435         (replicate (length frees + length eval_terms) dummy_term))
   436     val wrap = absdummy @{typ bool}
   436     val wrap = absdummy @{typ bool}