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

Feature: Accept some form of type ascriptions on data and codata #15

Open
alexkeizer opened this issue May 23, 2024 · 0 comments
Open

Comments

@alexkeizer
Copy link
Owner

alexkeizer commented May 23, 2024

In regular inductives, we can choose to explicitly give the universe:

inductive Wrap (α : Type 1) : Type 1
--                          ^^^^^^^^
  | mk : α → Wrap α

Currently, we blanket ban any type ascriptions, to prevent users from trying to define inductive families (which are fundamentally not supported).

We should allow a type ascription, and simply check it's of the form Type or Type u, where u may be a variable, an underscore (_), or a concrete universe level.

We could consider allowing arrows, as in Type -> Type -> Type as well, but this might be too confusing since it looks like how we would normally define inductive families.

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

No branches or pull requests

1 participant