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

Support dependent types in variable #1220

Open
ice1000 opened this issue Dec 15, 2024 · 0 comments · May be fixed by #1226
Open

Support dependent types in variable #1220

ice1000 opened this issue Dec 15, 2024 · 0 comments · May be fixed by #1226

Comments

@ice1000
Copy link
Member

ice1000 commented Dec 15, 2024

Right now, variable A : B cannot have inter-dependencies.

Would be nice to support

variable A : Type
variable a : A

and using a automatically introduces A.

Note that this needs to be recursive, so

variable A : Type
variable k : K
variable n : G k
variable xs : F A n

and using xs will cause everything else to be introduced.

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

Successfully merging a pull request may close this issue.

2 participants