equal
deleted
inserted
replaced
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 = |