-
Notifications
You must be signed in to change notification settings - Fork 44
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
Locally Nameless Coq export: allow embed-like functionality that exports before ott commands (instead of after) #81
Comments
Maybe I'm missing something, but why not use
For me, this always makes my |
When I try that with the locally nameless backend, the import shows up after the definition of substitution. |
In that case, this sounds to me like bug specific to the locally nameless backend and Coq exporter. Maybe you can edit the issue name to reflect this? |
Done |
Thanks, I did a pass over that export code a while ago, so I might take a look at it in the near future. From memory, the problem is that there is an OCaml string that accumulates all the locally nameless Coq definitions which is treated differently from other kinds of embeds, etc. |
I think the problem is a bit bigger than just the very top of the file, the locations of any embed block is no longer respected with the LN backend as far as I can determine with my testing. This also introduces problems like no longer being able to define something like |
@sweirich it turns out there is an undocumented
|
That works! Thanks. |
Great. Then I will take the liberty to close this issue and open a new one on the missing documentation of |
This is similar to a related non-issue for LaTeX. However, I don't have a good workaround other than a call to
sed
in my Makefile.I'd like to be able to add Coq imports that I use for meta productions in my grammar. For example, I have a system that is parameterized over an arbitrary lattice and I've specified the properties of this lattice in a separate module. Then I have a grammar element that uses lattice operations.
What I need is a way to import this library
Require Export Qual.grade_sig.
before the grammar definitions.The text was updated successfully, but these errors were encountered: