src/HOL/Tools/Quickcheck/random_generators.ML
changeset 63180 ddfd021884b4
parent 63064 2f18172214c8
child 63239 d562c9948dee
equal deleted inserted replaced
63179:231e261fd6bc 63180:ddfd021884b4
   264     thy
   264     thy
   265     |> Class.instantiation (tycos, vs, @{sort random})
   265     |> Class.instantiation (tycos, vs, @{sort random})
   266     |> random_aux_specification prfx random_auxN auxs_eqs
   266     |> random_aux_specification prfx random_auxN auxs_eqs
   267     |> `(fn lthy => map (Syntax.check_term lthy) random_defs)
   267     |> `(fn lthy => map (Syntax.check_term lthy) random_defs)
   268     |-> (fn random_defs' => fold_map (fn random_def =>
   268     |-> (fn random_defs' => fold_map (fn random_def =>
   269           Specification.definition NONE []
   269           Specification.definition NONE [] []
   270             ((Binding.concealed Binding.empty, []), random_def)) random_defs')
   270             ((Binding.concealed Binding.empty, []), random_def)) random_defs')
   271     |> snd
   271     |> snd
   272     |> Class.prove_instantiation_exit (fn ctxt => Class.intro_classes_tac ctxt [])
   272     |> Class.prove_instantiation_exit (fn ctxt => Class.intro_classes_tac ctxt [])
   273   end;
   273   end;
   274 
   274