src/HOL/Tools/Predicate_Compile/code_prolog.ML
changeset 38786 e46e7a9cb622
parent 38735 cb9031a9dccf
child 38793 eba0175d4cd1
equal deleted inserted replaced
38776:95df565aceb7 38786:e46e7a9cb622
   593 
   593 
   594 (* quickcheck generator *)
   594 (* quickcheck generator *)
   595 
   595 
   596 (* FIXME: large copy of Predicate_Compile_Quickcheck - refactor out commons *)
   596 (* FIXME: large copy of Predicate_Compile_Quickcheck - refactor out commons *)
   597 
   597 
   598 fun strip_imp_prems (Const(@{const_name "op -->"}, _) $ A $ B) = A :: strip_imp_prems B
   598 fun strip_imp_prems (Const(@{const_name HOL.implies}, _) $ A $ B) = A :: strip_imp_prems B
   599   | strip_imp_prems _ = [];
   599   | strip_imp_prems _ = [];
   600 
   600 
   601 fun strip_imp_concl (Const(@{const_name "op -->"}, _) $ A $ B) = strip_imp_concl B
   601 fun strip_imp_concl (Const(@{const_name HOL.implies}, _) $ A $ B) = strip_imp_concl B
   602   | strip_imp_concl A = A : term;
   602   | strip_imp_concl A = A : term;
   603 
   603 
   604 fun strip_horn A = (strip_imp_prems A, strip_imp_concl A);
   604 fun strip_horn A = (strip_imp_prems A, strip_imp_concl A);
   605 
   605 
   606 fun quickcheck ctxt report t size =
   606 fun quickcheck ctxt report t size =