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

HB command for aliases #471

Open
CohenCyril opened this issue Dec 11, 2024 · 0 comments
Open

HB command for aliases #471

CohenCyril opened this issue Dec 11, 2024 · 0 comments
Labels
easy difficulty Very easy good first issue Good for newcomers low priority Low priority

Comments

@CohenCyril
Copy link
Member

Currently we have to do e.g.

Definition foo (T : Type) : Type := T

or even

Definition foo (T : A.type) : Type := T

forgetting the Type ascription in the second case results in a series of non-forgetful-inheritance warnings/errors which are hard to debug.
Additionally, people usually start with re-equipping foo with some structure already available on T before parting from it.

We should provide a new command: #[ensures(A)] HB.alias Definition foo := T to do that and make sure it is amenable to HB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy difficulty Very easy good first issue Good for newcomers low priority Low priority
Projects
None yet
Development

No branches or pull requests

1 participant