Skip to content

VERNAC EXTEND should (by default) follow Import rather than Require #17064

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

Open
JasonGross opened this issue Jan 4, 2023 · 2 comments
Open
Labels
kind: design discussion Discussion about the design of a feature. part: vernac High level command interpretation.

Comments

@JasonGross
Copy link
Member

Require Import Coq.derive.Derive.
Require Equations.Prop.Equations.
Derive foo SuchThat (foo = true) as foo_correct.
(* Error: Syntax error: [ident] or 'for' expected (in [command]). *)

Originally posted by @JasonGross in mattam82/Coq-Equations#515

This is plausibly related to #10146, maybe even to #12575

It was pointed out on Coq call that we may want Require Extraction to be enough to use extraction, so it seems plausible that syntax extensions should be allowed to declare their extensions to be superglobal (i.e., to follow Require), but by default I think it's better to have the vernac syntax extensions follow Import

@JasonGross JasonGross added the part: vernac High level command interpretation. label Jan 4, 2023
@SkySkimmer
Copy link
Contributor

This is plausibly related to #10146, maybe even to #12575

It is not, there is no backtracking involved here

@JasonGross
Copy link
Member Author

By related, I meant that it seems impossible to me to fix this issue without also fixing #12575 and probably #10146. Is the backtracking codepath not shared with module closing?

@SkySkimmer SkySkimmer added the kind: design discussion Discussion about the design of a feature. label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: design discussion Discussion about the design of a feature. part: vernac High level command interpretation.
Projects
None yet
Development

No branches or pull requests

2 participants