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

New vernacular command: theory aliases #685

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

New vernacular command: theory aliases #685

wants to merge 1 commit into from

Conversation

strub
Copy link
Member

@strub strub commented Jan 14, 2025

Syntax this: theory T = Path.To.Theort

Theory aliases allow giving alternate names to theories - mainly
for readability issues. They are purely syntactic sugar and are
fully resolved (desugared) during typing.

The pretty-printer uses them when printing path, using a
longest-then-lastly-introduced strategy.

@strub strub self-assigned this Jan 14, 2025
Syntax this: `theory T = Path.To.Theort`

Theory aliases allow giving alternate names to theories - mainly
for readability issues. They are purely syntactic sugar and are
fully resolved (desugared) during typing.

The pretty-printer uses them when printing path, using a
longest-then-lastly-introduced strategy.
@strub strub changed the title Theory aliases New vernacular command: theory aliases Jan 15, 2025
@strub strub requested review from bgregoir and fdupress January 15, 2025 21:11
@strub
Copy link
Member Author

strub commented Jan 15, 2025

FYI, this is part of the "resolving the cloning-hell" process. Currently, this mechanism is simulated using cloning + theory renaming, which can lead to scenarios where it is no more possible to use the with theory T <- U' idioms some theories in Uas been renamed and are thus missing for fully instantiatingT`.

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.

1 participant