-
Notifications
You must be signed in to change notification settings - Fork 0
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
Checking the behavior of translated code #32
Comments
Hello, so first of all, the For now, the semantics is optimized to make proofs but there are no ways to execute the code on a precise parameter. This is one of our goals at mid-term (a few months) to be able to compare our Python semantics with the behavior of the Python interpreter. |
When you say that the code is optimized to make proofs, do you mean that the code is not yet ready to have properties proven about it, or do you mean that the tests instead have to be in the Example-Proof unit test format? Example of what I mean when I say example-proof unit test format:
When I try to run this particular test, I get the error:
Are you saying that there isn’t currently a solution to make this code run? |
There are no evaluation functions, but there is a (beginning) of definition for the semantics with the
Yes, currently, we do not have a solution to run this example with only |
Note that the |
I am trying to use Coq-of-Python to translate a very basic python program into coq.
However, I am having trouble verifying if the resulting coq code is a faithful translation of the original Python. I am struggling to get unit tests to check the behavior of the new Coq code working.
assert candidate([1.0, 2.0, 3.9, 4.0, 5.0, 2.2], 0.3) == True
Coq-of-Python wants to translate assert statements into:
However, this compiles regardless of if the Constant.bool that it is being compared against is true or false.
I am wondering how one is supposed to verify that the resulting coq program has the correct behavior?
The text was updated successfully, but these errors were encountered: