Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Quickcheck in Isabelle check file #31

Open
wimmers opened this issue Jun 4, 2020 · 0 comments
Open

Enable Quickcheck in Isabelle check file #31

wimmers opened this issue Jun 4, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@wimmers
Copy link
Collaborator

wimmers commented Jun 4, 2020

We can write something like this in the check file:
lemma
"Submission.x = x"
quickcheck [expect = no_counterexample]
sorry

Then the submission will be rejected if quickcheck finds a counterexample.

If we just want to deduct something from the score for this kind of error, I do not see a way to do it currently, however.
For that one would have to wrap up quickcheck in a fake tactic that fails if a counterexample is found
or else “proves” the goal with an oracle that is not sorry (“a good sorry”).

@wimmers wimmers added the enhancement New feature or request label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant