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

Added new CEP Symbol Sets #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MSoegtropIMC
Copy link

No description provided.


A possible syntax would be:
- Command **Declare Symbol Set** *ident* **:=** *symbol_set_expr*
- *symbol_set_expr* ::= **Module** *qualid* | **Module Recursive** *qualid* | *reference* | *symbol_set_expr* [**+ * -**] *symbol_set_expr* | **(** *symbol_set_expr* **)**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if someone does Definition Module := ... or Module Recursive. End Recursive.?
I wouldn't be shocked if the second one actually exists somewhere.

Copy link
Author

@MSoegtropIMC MSoegtropIMC Feb 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed the syntax is not very well thought through - mostly because I know little about how such "global syntax" messes with the parser and notation system. IMHO designing good Coq syntax is an art on its own, which I would prefer to leave to those who understand it.

@andres-erbsen
Copy link

See also coq/coq#6144

@herbelin
Copy link
Member

herbelin commented Feb 7, 2024

Maybe lists of constants could (indeed) be assembled into "unfolding hints" and various set-theoretic operations could apply more generally to all kinds of hint databases, including providing automatic inclusion of all constants from a module?

@MSoegtropIMC
Copy link
Author

@herbelin : indeed allowing set operations on auto hint databases would also be a very useful feature. If one can find a common syntax to handle "unfolding databases" and hint databases, I would appreciate it.

But please note that it should be possible to collect all symbols of a module without touching the module itself, say starting some auto collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants