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
proliferation of Local in files with program logic proofs #73
Comments
Q: Why not |
Turns out
could we somehow make things so that for each file, emacs and makefile call coq from the same working directory? |
emacs changes the working directory to the directory of the file of the current buffer before invoking Coq's So the following works both for compliation from the command line, and within emacs:
|
Are you sure? Module Foo.
Reserved Notation "x --> y" (at level 55).
Fail Check _ --> _. (* unknow interpretation *)
End Foo.
Check _ --> _. (* syntax error happens before Fail can wrap it *) |
This indeed seems better now. The following works too: Module Foo.
Reserved Notation "x --> y" (at level 55).
Notation "x --> y" := (x+y) (at level 55).
Check _ --> _. (* unknow interpretation *)
End Foo.
Notation "x --> y" := (x, y) (at level 1).
Unset Printing Notations.
Check fun f:_->nat => f 1 --> 1. (* syntax error happens before Fail can wrap it *) |
I don't get a syntax error on that last one. And AFAICT behaviour hasn't changed since 8.4 (as far back as I have installed). |
We should probably make a file that we can
Load
to set up the correct parsing/elaboration environment for source code, specs, and program logic proofs.The text was updated successfully, but these errors were encountered: