src/HOL/Tools/Quickcheck/narrowing_generators.ML
changeset 45923 473b744c23f2
parent 45891 d73605c829cc
child 46042 ab32a87ba01a
equal deleted inserted replaced
45922:63cc69265acf 45923:473b744c23f2
   499 val active = Attrib.setup_config_bool @{binding quickcheck_narrowing_active} (K true);
   499 val active = Attrib.setup_config_bool @{binding quickcheck_narrowing_active} (K true);
   500 
   500 
   501 val setup =
   501 val setup =
   502   Code.datatype_interpretation ensure_partial_term_of
   502   Code.datatype_interpretation ensure_partial_term_of
   503   #> Code.datatype_interpretation ensure_partial_term_of_code
   503   #> Code.datatype_interpretation ensure_partial_term_of_code
   504   #> Datatype.interpretation (Quickcheck_Common.ensure_sort_datatype
   504   #> Quickcheck_Common.datatype_interpretation (@{sort narrowing}, instantiate_narrowing_datatype)
   505     (((@{sort typerep}, @{sort term_of}), @{sort narrowing}), instantiate_narrowing_datatype))
       
   506   #> Context.theory_map (Quickcheck.add_tester ("narrowing", (active, test_goals)))
   505   #> Context.theory_map (Quickcheck.add_tester ("narrowing", (active, test_goals)))
   507     
   506     
   508 end;
   507 end;